In every browser I\'ve used, except ie8, an absolutely positioned element can be positioned according to the closest parent with relative positioning.
The below code
That's becuase you're not using the document type. And IE working in the "quircks" mode.
Try this doctype: