1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

changing colors

Discussion in 'CSS' started by JEET, Jan 10, 2006.

  1. #1
    Hi,
    I am calling an external style sheet using
    <link rel="stylesheet"...>
    I have tables on the webpage and I want to specify the colors in the stylesheet instead of inside the webpage itself .
    Border-color and background-color .
    How is that done ?

    Regards
    jeet
     
    JEET, Jan 10, 2006 IP
  2. tommie

    tommie Guest

    Messages:
    114
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    {
    background-color:#000000;
    border-color:#000000;
    }
     
    tommie, Jan 11, 2006 IP
  3. JEET

    JEET Notable Member

    Messages:
    3,825
    Likes Received:
    502
    Best Answers:
    19
    Trophy Points:
    265
    #3
    Hi,
    Thanks for that .
    I thought it would be something different for tables .
    Like table-color etc..
    Regards
    jeet
     
    JEET, Jan 11, 2006 IP
  4. Djohn

    Djohn Peon

    Messages:
    75
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Have a look at the CSS reference page at W3Schools.com
    Every tag you need for CSS.
     
    Djohn, Jan 11, 2006 IP
  5. tommie

    tommie Guest

    Messages:
    114
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    you could also use stuff like
    td, tr, a, etc.. in your css to select certain elements in your page, for example

    td
    { background-color:#000000; border-color:#000000; }
    will give all the tds in your site that. But the link what Djohn you gave is probably best to find out the best way to use css. Good luck
     
    tommie, Jan 11, 2006 IP