views:

26

answers:

2

Hi,
I have a table in my HTML yet I only want vertical spacing as it doesn't look right with the 25px horizontally. I can see no attribute in HTML to do this so is it possible?
Thanks in Advance,
Dean

EDIT: I have a table with cellspacing all the way around of 25px. I would only like vertical cellspacing of 25px.

+2  A: 

Just add this in the < head > section, just after the head tag opening of your page: This should do the work:

<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>
iamserious
+2  A: 

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

Robert
+1 This is most appropriate
naikus