I am trying to resize a div based on screen size. I am using this
Code:
.Menu {
position:absolute;
background-color: #FFD600;
float:left;
top:0px;
left:0px;
height:100px;
width:100%;
width: expression(document.compatMode=='CSS1Compat'? (document.Menu.offsetWidth-81)+'px' : body.(offsetWidth-81)+'px');
}
Leave a comment: