SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Evangelist
    Join Date
    Apr 2003
    Location
    lisboa
    Posts
    423
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    formating table with css

    hi
    i'v2 2 questions:
    where exactly can i find a list of all css atributes i can use?
    the other question is concrete:
    is there a way of expressing the cellspacing/cellpadding
    attributes of <table> in css?
    thanks

  2. #2
    011521 dbalsdon's Avatar
    Join Date
    Feb 2003
    Location
    North Of Scotland
    Posts
    444
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    1. http://www.w3schools.com/css

    2. yep, border-spacing is the equiv of cellspacing.. although its only supported by netscape 6 and mozilla, for now
    Daniel Balsdon
    My Site

  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)
    Quote Originally Posted by rfl
    is there a way of expressing the cellspacing/cellpadding
    attributes of <table> in css?
    thanks
    cellpadding in CSS:
    Code:
    table td {
      padding: 5px;
      /*modify to your needs*/
    }
    cellspacing in CSS:
    Code:
    table {
      border-spacing: 2px;
    }
    As has been said before though, this will not work in IE/Windows. If you need cellspacing=0 though, this CSS has worked for me:
    Code:
    table {
      border-collapse: collapse;
      borer-spacing: 0px; /*added this in, just in case*/
    }

  4. #4
    SitePoint Evangelist
    Join Date
    Apr 2003
    Location
    lisboa
    Posts
    423
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks to both!
    i knew w3schools but i guess its not enough for having a complete list of possibilities...
    thanks again


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
  •