I am facing an issue with the sizing of two div elements on my page, one with relative positioning and the other with fixed positioning.
<div class="outer1">
</div>
<div class="outer2">
</div>
Here is the CSS:
.outer1{
width:50%;
height:500px;
background:red;
position:relative;
}
.outer2{
width:50%;
background:blue;
height:200px;
position:fixed;
}
Even though I have set the width of both div elements to 50%, there seems to be a difference in their actual widths. Can someone please explain why this is happening?