nested divs should have 2 diff css styles
Posted
by Jean
on Stack Overflow
See other posts from Stack Overflow
or by Jean
Published on 2010-04-14T07:55:42Z
Indexed on
2010/04/14
8:03 UTC
Read the original article
Hit count: 237
css
Hello,
I have 2 nested divs, both have
#x{
width:400;
height:400px;
background-color:#fff;
color:#000
}
#y{
width:200;
height:200px;
background-color:#000;
color:#ccc;
}
<div id="y"><div id="x">Here lies a x value</div></div>
I want the #x and #y to have individual css properties, but that is not the case, #x overrides the #y values
Any help appreciated.
Thanks Jean
© Stack Overflow or respective owner