#1
  1. No Profile Picture
    wibble
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2001
    Location
    UK
    Posts
    161
    Rep Power
    14

    cellpadding, cellspacing - with CSS?


    I have a page where the bulk is now contained within a single table cell. (in order to allow my to align the footer with the lowest part of the page)

    mozilla places a small transparent border around the whole cell unless I put 'cellpadding="0" cellspacing="0" border="0"' in my table tag. I was wanting to do this via my stylesheet instead. is it possible?

    (IE does not suffer the same problem)

    I've tried assigning

    border-collapse: collapse;
    margin: 0 0 0 0;
    border: 0 0 0 0;
    padding: 0 0 0 0;

    to table, tr, & td within the stylesheet with no joy.

    comments welcomed

    cheers
    Jon
  2. #2
  3. Retired
    Devshed Supreme Being (6500+ posts)

    Join Date
    Feb 2002
    Location
    Finland
    Posts
    9,143
    Rep Power
    2493
    You can do the padding like:

    padding: 0px;

    Unfortunately I don't think that you can do spacing through CSS -> though I would lokve someone to prove me wrong on this

    Br

    Jamie

    Cheers,
    Jamie

    >_ skiFFie ? | Twitter

    __________________

    Let the might of your compassion arise to bring a quick end
    to the flowing stream of the blood and tears .....
    Please hear my anguished words of truth.

    __________________
  4. #3
  5. No Profile Picture
    wibble
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2001
    Location
    UK
    Posts
    161
    Rep Power
    14
    The challenge is there for knowledgeable css folks.

    Who is going to rise above the rest?



    cheers
  6. #4
  7. No Profile Picture
    Senior Citizen
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jan 2001
    Location
    leftcoast
    Posts
    2,019
    Rep Power
    16
    Nice teaser.

    See if this helps.
  8. #5
  9. No Profile Picture
    wibble
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2001
    Location
    UK
    Posts
    161
    Rep Power
    14
    heh - you got me

    adios to the rescue again. thanks for the link - I'll take a look later tonight at home.

IMN logo majestic logo threadwatch logo seochat tools logo