html - Background color for div over div -
html - Background color for div over div -
i have 2 containers within container..i need set background-color of left-container , right-container below code not working...
fiddle
http://jsfiddle.net/4ug4j/ html
<div id="container"> <div id="left-container"> </div> <div id="right-container"> </div> </div> css html,body{ height:100%; width:100%; margin:2; } #container{ height:75%; background-color:yellow } #left-container{ width:23%; background-color:red; float:left; border:1px solid #254117; } #right-container{ width:75%; background-color:green; float:left; }
it work, have no content, causing element's height zero.
html css
Comments
Post a Comment