HighDots Forums  

Need help padding table rows

HTML Writing HTML for the Web (comp.infosystems.www.authoring.html)


Discuss Need help padding table rows in the HTML forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
SergioQ
 
Posts: n/a

Default Need help padding table rows - 12-26-2007 , 03:03 PM






Hello All,

I would like to "pad" the rows of my table. Cellpadding and
Cellspacing aren't an option cause they affect both the horizontal as
well as vertical axis.


So I used to do essentially a row with nothing more than one  
in
it.


Then I realized thta if I removed the   my padding got smaller,
and I could use 2 or 3 and get more precise.


So my question is, is this row:


<tr><td></td></tr>


Or could not having the &nbsp; in there cause a problem?


Thanks ahead, as always.


Reply With Quote
  #2  
Old   
Jonathan N. Little
 
Posts: n/a

Default Re: Need help padding table rows - 12-26-2007 , 03:06 PM






SergioQ wrote:
Quote:
Hello All,

I would like to "pad" the rows of my table. Cellpadding and
Cellspacing aren't an option cause they affect both the horizontal as
well as vertical axis.


So I used to do essentially a row with nothing more than one &nbsp;
in
it.


Then I realized thta if I removed the &nbsp; my padding got smaller,
and I could use 2 or 3 and get more precise.


So my question is, is this row:


tr><td></td></tr


Or could not having the &nbsp; in there cause a problem?

Answered in comp.infosystems.www.authoring.stylesheets

td { padding-left: 1em; padding-right: 1em; }

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com


Reply With Quote
  #3  
Old   
Harlan Messinger
 
Posts: n/a

Default Re: Need help padding table rows - 12-26-2007 , 04:13 PM



Jonathan N. Little wrote:
Quote:
SergioQ wrote:
Hello All,

I would like to "pad" the rows of my table. Cellpadding and
Cellspacing aren't an option cause they affect both the horizontal as
well as vertical axis.


So I used to do essentially a row with nothing more than one &nbsp;
in
it.


Then I realized thta if I removed the &nbsp; my padding got smaller,
and I could use 2 or 3 and get more precise.


So my question is, is this row:


tr><td></td></tr


Or could not having the &nbsp; in there cause a problem?


Answered in comp.infosystems.www.authoring.stylesheets

td { padding-left: 1em; padding-right: 1em; }

Well, no, he wanted spacing between rows:

td { padding-top: 1em; padding-bottom: 1em; }

or some such thing.


Reply With Quote
  #4  
Old   
Ben C
 
Posts: n/a

Default Re: Need help padding table rows - 12-26-2007 , 05:11 PM



On 2007-12-26, Harlan Messinger <hmessinger.removethis (AT) comcast (DOT) net> wrote:
Quote:
Jonathan N. Little wrote:
SergioQ wrote:
Hello All,

I would like to "pad" the rows of my table. Cellpadding and
Cellspacing aren't an option cause they affect both the horizontal as
well as vertical axis.
[...]

Answered in comp.infosystems.www.authoring.stylesheets

td { padding-left: 1em; padding-right: 1em; }

Well, no, he wanted spacing between rows:

td { padding-top: 1em; padding-bottom: 1em; }

or some such thing.
Or table { border-spacing: 0 1em }

(where supported)


Reply With Quote
  #5  
Old   
Jonathan N. Little
 
Posts: n/a

Default Re: Need help padding table rows - 12-26-2007 , 08:32 PM



Ben C wrote:

Quote:
Or table { border-spacing: 0 1em }

(where supported)
Aw hell we know where it is not supported... My New Year's resolution is
to treat IE with a New Jersey attitude: "Jist fa-getta bout it!"

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.