Default value

Discussion in 'CSS' started by 9reenNinj@, May 4, 2005.

  1. #1
    if you have this in a external CSS file :

    td
    {
    FONT-SIZE: 7.25pt;
    COLOR: #008060;
    FONT-FAMILY: 'verdana';
    BACKGROUND-COLOR: #e9eeea;
    TEXT-ALIGN: left
    }

    td.normalTd
    {
    }

    Is there a way to set all the attributes changed in the first "default" class back to their default value in normalTD ?
     
    9reenNinj@, May 4, 2005 IP
  2. CompressedAir

    CompressedAir Peon

    Messages:
    56
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Not sure what you are asking; but if you mean to override the previous settings in the td tag, you could do:
    td.normalTd
    {
    font-size: auto; (or whatever your default value is)
    color: whatever your default color is
    BACKGROUND-COLOR: whatever your default color is;
    text-align: right; (or whatever your default value is)
    }
    Code (markup):
     
    CompressedAir, May 9, 2005 IP
  3. 9reenNinj@

    9reenNinj@ Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    My question was if there was a way to do this without repeating all the changed attributes.
     
    9reenNinj@, May 23, 2005 IP