Results 1 to 3 of 3

Thread: More tricky CSS table questions [resolved]

  1. #1

    Thread Starter
    Member filburt1's Avatar
    Join Date
    Aug 1999
    Posts
    6,935

    More tricky CSS table questions [resolved]

    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?
    Last edited by filburt1; Nov 20th, 2001 at 08:46 PM.

  2. #2
    Fanatic Member Blade's Avatar
    Join Date
    Jan 1999
    Location
    Stoke-on-Trent, UK
    Posts
    527
    you can use:

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

    Code:
    TD {padding: 2px 10px}
    Blade

  3. #3

    Thread Starter
    Member filburt1's Avatar
    Join Date
    Aug 1999
    Posts
    6,935
    Bee-utiful, thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width