fix the position of a div inside body
<body>
<div id="container">
<div id="inside">
</div>
</div>
<div id="special-div">
</div>
<body>
I need to have my special-div outside container for some js considerations
#inside{
margin:auto;
width:760px;
}
#special-div{
position:relative;
top:200px;
left:300px
}
With the above CSS,the position of the special-div changes with change in
browser size change? So,how do i fix the position of the special-div
irrespective of the browser size?
No comments:
Post a Comment