I have a page where I have two div elements with different relative and fixed positioning.
<div class="outer1">
</div>
<div class="outer2">
</div>
and css
.outer1{
width:50%;
height:500px;
background:red;
position:relative;
}
.outer2{
width:50%;
background:blue;
height:200px;
position:fixed;
}
But the problem is that the actual width of both div elements is different. I gave the width as 50% for both elements, then why is there a difference in help.pase.pack.
source
share