How to create a table with a vertical distance between cells?

I have a table in my HTML, but I only want a vertical spacing, since it does not look right with 25px horizontally. I do not see any attribute in HTML to do this, is this possible?
Thanks Advance,
Dean

EDIT: I have a table with cells located around 25px. I would like a vertical cell measuring 25 pixels.

+6
html html-table
source share
3 answers

the cellpadding attribute, which, I assume, you say, will only take a number and use it as pixels between the cell wall and the content. You will have to come up with a workaround, depending on your layout, which you can use instead of <div> , or if there are no borders around the cells, you can add style='padding-bottom:25px' to it to create the same effect.

+4
source share

Just add this to <head>, immediately after opening the title of your page: This should do the job:

 <style type="text/css"> td { margin: 25px 0px; } /* tells the table to have 25 px on top and bottom, zero px on left and right */ </style> 
+4
source share

I discovered this:

 border-bottom: 25px solid transparent; 

Remember that IE6 has a transparency issue .

+1
source share

All Articles