Page is a not externally linkable
- Browsers
-- Opera Browser Usage and Support
---- Positioning problem in Opera 6


papabaer - 12:05 am on May 25, 2002 (gmt 0)


I know you aleady know that "position:absolute" takes your <div> out of the normal page flow (the effect is similar to creating a new "body" element).

What results of changing the "position" to relative, depends on where your code for the <div> is placed withing your document; a relatively positioned element bases its coordinates on the nearest "normal flow" element that precedes it.

This could be the <body> or a heading or any number of normal page flow elements. If there are three "position:absolute" elements preceding the "position:relative" element, and no other "normal page flow" elements, the relative positioning gets its coords based on the body.

If you have a banner image at the top of your page and then three "position:absolute" elements followed by your "position:relative" <div>, the relative coordinates are now based off of the bottom position of the banner image.

Can you post a larger code snippet?

- papabaer


Thread source:: http://www.webmasterworld.com/opera_browser/290.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com