Hi the following is my code:-
<div style="height:50px;background:#F75D59;">
<div style="position:relative;font:bold 20px arial;color:white;float:left;left:50px">GOOGLE </div>
<div style="position:relative;float:left;left:200px;">
<input type="text";text size="50px">
<input type="button" title="search">
</div>
<div style="position:relative;float:left;left:500px;color:white"> mythili mydhili </div>
<div style="position:relative;float:left;left:500px;">
<input type="button" color="#ff0000"value="1">
<input type="button" button size="10px" value="+share">
<img src="a.png"height="20px";width="20px">
</div>
</div>
The problem with the above code is when the browser gets re sized the parent div, I mean the top most div is getting re sized according to the browsers width. But the child div's are not getting re positioned accordingly. so when the browser is re sized the page looks awkward. So how to resolve this?