Need to override cascade style

Posted by WillingLearner on Stack Overflow See other posts from Stack Overflow or by WillingLearner
Published on 2010-12-29T08:25:28Z Indexed on 2010/12/29 8:54 UTC
Read the original article Hit count: 156

Filed under:
|

i have a style :

.window .div {
    border:medium solid #000000;
    height:150px;
    background-color: #0099FF;
    }

and then i have another style:

 #NewDiv {
    font:Arial, Helvetica, sans-serif;
    font-size: 24px;
    height: 20px;
    border-bottom-width: medium;
    border-bottom-style: solid;
    border-bottom-color: #000000;
        }

I need to put a #NewDiv div tag inside of window .div, BUT... #NewDiv must retain its own styling while sitting inside of window .div div tags. How do I do this?

Currently when I try, #NewDiv takes on the same styling as window .div when i place it inside of it and i dont want that at all. Any suggestions?

© Stack Overflow or respective owner

Related posts about css

Related posts about css-selectors