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.
In future, please post a URL instead.
--
Yucca,
http://www.cs.tut.fi/~jkorpela/