SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Zealot
    Join Date
    Nov 2002
    Posts
    194
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question cellspacing with CSS?

    is there a way to control the cellspacing of tables with CSS?

    right now I have cellspacing="0" on most of my tables and it would be great to be able to get rid of that and jsut use a little bit of CSS instead. I think I read about something like this, and it said it didn't work in IE or netscape... is there one that does?

  2. #2
    Ceci n'est pas Zoef Zoef's Avatar
    Join Date
    Nov 2002
    Location
    Malta
    Posts
    1,111
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Unfortunately this is indeed the only way to do this cross-browser. And no, I don't remember excactly which browsers.

    Rik
    English tea - Italian coffee - Maltese wine - Belgian beer - French Cognac

  3. #3
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    You can use this:
    Code:
    table {
      cell-spacing: 0px;
      border-spacing: 0px;
    }

  4. #4
    SitePoint Zealot
    Join Date
    Nov 2002
    Posts
    194
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hm.. it's working in netscape and opera but sadly not in IE. thanks anyways!

  5. #5
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    That's funny; border-spacing has worked in IE5+/Windows for me in addition to Mozilla and Opera. However, I also use it in combination with a border and "border-collapse: collapse;". Try that and see how it works.


Bookmarks

Posting Permissions

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