Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to style table with only vertical cell spacing?

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.

like image 369
Dean Avatar asked Aug 12 '10 10:08

Dean


1 Answers

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.

like image 153
Robert Avatar answered Oct 11 '22 03:10

Robert