PDA

Click to See Complete Forum and Search --> : More tricky CSS table questions [resolved]


filburt1
Nov 20th, 2001, 07:35 PM
I want to change the cell padding for some cells but have different values for horizontal and vertical pads. For example, I want a 10 pixel margin on each side of the cell but only a 2 pixel margin above and below the cell.

Since pure HTML can't do it that I know of, any CSS tricks I don't know about?

Blade
Nov 20th, 2001, 07:42 PM
you can use:



TD {padding-top: 2px; padding-bottom: 2px;
padding-left: 10px; padding-right: 10px;}



or



TD {padding: 2px 10px}



Blade

filburt1
Nov 20th, 2001, 07:46 PM
Bee-utiful, thanks. :)