SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    Prolific Blogger silver trophy Technosailor's Avatar
    Join Date
    Jun 2001
    Location
    Before These Crowded Streets
    Posts
    9,446
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    CSS and Table Borders

    How can I define table cell borders in CSS. Evidently the "bordercolor" attribute in HTML does not validate with the W3C.

    Thanks.
    Sketch
    Aaron Brazell
    Technosailor



  2. #2
    SitePoint Enthusiast spleenboy's Avatar
    Join Date
    Nov 2000
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    consulting the book

    According to my CSS Pocket Reference, border-color is the way to go. (The reference doesn't address W3C standards, though.) border-color is supported by all major browsers except N4, which only partially supports it. With border-color, you can supply the color for the entire element, or the color on each individual side by listing them separately (i.e. red green blue purple), although N4 and Opera 3.6 don't support multi colors.

    p {border-color: puke-green;}
    s-p-l-e-e-n-d-i-f-e-r-o-u-s

  3. #3
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    it looks like you're spelling border-color wrong sketch. There needs to be a hyphen there.
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes

  4. #4
    SitePoint Enthusiast spleenboy's Avatar
    Join Date
    Nov 2000
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    mmm.

    <offtopic>Creole, your logo reminds me of Mac and Cheese.</offtopic>
    s-p-l-e-e-n-d-i-f-e-r-o-u-s


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
  •