View Full Version : Problems with CSS: Padding

Mar 24th, 2007, 06:57 PM
I am making a homepage, in which i have made a few table with 3 rows, each with one cell:

I would like to set margins for the middle cell:

it works fine for margins to the top and bottom with padding
but if I wan't to set margins for left and right, it makes a margin of x pixels at the sides of the whole table and not the text of one of the cells within it.

Any suggestions?

Mar 24th, 2007, 08:52 PM
Use (X)HTML and CSS to style your page rather than using tables, which are meant for tabular data not for layout! They are much easier to control, cleaner, and will look better for SE's and people that know a little about code!

Plus it's just good practise ;)