SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: CSS tables

  1. #1
    SitePoint Enthusiast MeGa's Avatar
    Join Date
    Jul 2003
    Location
    Miami, FL
    Posts
    90
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    CSS tables

    because i tried to make a HTML 4.1 transitional strict site, i got a problem


    i am not very good at CSS, i tried to make a CSS equivalent attribute to bordercolor="", so for i got style="border-collapse: collapse; border: 1px solid #555555;"

    problem:
    i don't see any borders from the cells inside, online the border of the table itself. how can i solve this?

    thanks
    MeGa
    Be the Best, but don't Believe it.

  2. #2
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    You have to style it like so:
    Code:
    table {
      border-collapse: collapse;
      border: 1px solid #555555;
    }
    table td {
      border: 1px solid #555555;
    }
    Putting a style on the table will style only the table itself, and not the cells inside.

  3. #3
    SitePoint Member 1o9's Avatar
    Join Date
    Oct 2003
    Location
    Vancouver, BC, Canada
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by vgarcia
    You have to style it like so:
    Code:
    table {
      border-collapse: collapse;
      border: 1px solid #555555;
    }
    table td {
      border: 1px solid #555555;
    }
    Putting a style on the table will style only the table itself, and not the cells inside.
    He's right, it's a pain in the **** but that's CSS for ya!

  4. #4
    SitePoint Enthusiast MeGa's Avatar
    Join Date
    Jul 2003
    Location
    Miami, FL
    Posts
    90
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    errrggg. i have this stupid bull**** of taking out some functions of some languajes (this case HTML 4.01) just to complicate the live of the ppl to use it.

    errggg. anyways, thanks a lot dudes
    MeGa
    Be the Best, but don't Believe it.


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
  •