I have a Div Alignment issue in internet explorer 9(not in ie9.It may be in latest browsers)
I have two divs.First one should be in fixed width and Second one should re-size according to the screen resolution change.
I wrote the below code
<html>
<body>
<div>
<div style = "float:left;width:240px;background-color:blue; height:100px">
</div>
<div style = "float:left;width:100%;background-color:red;height:100px">
</div>
</div>
</body>
</html>
However the out put came like screen shot 1.
I have to arrange the two dives side by side as like the screen shot 2.
Any help on this issue is Appreciated.
Thanks.
Screen Shot 1

Screen Shot 2

Try this: http://jsfiddle.net/4c5bc/1/
apply a margin-left to the 2nd div and remove it’s float.