#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2003
    Location
    Guelph
    Posts
    16
    Rep Power
    0

    CSS - Inherited attributes


    This is probably a pretty basic question, but I haven't seen it mentioned in any of the CSS tutorials I've read.

    If I have

    table.base td
    {
    width: 50%;
    border: 1px solid black;
    }

    and this is my base style that I want for all of my tables tds. Now I want to make multiple children table tds styles that all include the previous styles included in table.base. So instead of writing

    table.child1 td
    {
    width: 50%;
    border: 1px solid black;
    background-color: #999999;
    }

    I only need to add the background-color.

    Thanks,
    Anthony
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2003
    Posts
    4
    Rep Power
    0

    Try background-color:#CC0033;


    try background-color:#CC0033;
    Find the syntax in a.test10:hover


    .test10{font-family:Verdana;font-size:10px;color:#33FF66; font-weight:800; text-decoration:none;}

    a.test10:hover{font-family:Verdana;font-size:10px;color:white; font-weight:800;background-color:#CC0033;text-decoration:underline;}

    .blu01{font-family:arial; font-size:12px;color:#3331BB;background-color:#CC0033;font-weight:600}

    .blu12{font-family:tahoma; font-size:12px;color:#3331BB;text-decoration:none;}

IMN logo majestic logo threadwatch logo seochat tools logo