HighDots Forums  

Re: Adding padding to tables

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Re: Adding padding to tables in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jukka K. Korpela
 
Posts: n/a

Default Re: Adding padding to tables - 08-05-2003 , 03:30 PM






vejitasweeps (AT) hotmail (DOT) com (Saiyan Vejita) wrote:

Quote:
Is there a way to add padding to a table via CSS?
You're actually asking how to put margins between the cells. The answer is
that this can be handled using the border-spacing property, but this
property is not supported e.g. by IE 6.

Quote:
I can use <table CELLSPACING=[n]>, but it's a rather coarse way of
doing so.
Indeed, but it's mostly more practical at present.

Quote:
I would prefer to add more padding to the left and right of the
main table content, but keep the top and bottom with zero space
between it and the colored border.
Put the table inside a <div> element, assign the border to the <div> and
not the <table>, and use padding properties for <div> or margin properties
for <table> to achieve the desired effect.

Quote:
Begin HTML Code
In future, please post a URL instead.

--
Yucca, http://www.cs.tut.fi/~jkorpela/


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.