It appears that absolute positioning in Opera 9 is broken.
Putting an absolutely positioned item within a relatively positioned div doesn’t work as it should….
The following code should place the image 10px from the top of the div, but due to the bug in Opera, it doesn’t!
<div style=”position: relative;”>
<img src=”someimage.jpg” style=”position: absolute; top: 10px;”>
</div>
The solution?
Nest the image inside another div, thus…
<div style=”position: relative;”>
<div style=”position: absolute; top: 10px;”>
<img src=”someimage.jpg”>
</div>
</div>
Problem solved. ![]()

No comments
Comments feed for this article
Trackback link
http://undulattice.f2s.com/2007/08/03/absolute-positioning-in-opera/trackback/