Absolute Div inside Absolute Div?

liunx

Guest
Hi all,
I am playing with css at the moment and have a design requiring an absolutely positioned Div inside another absolutely positioned Div... is this possible? or does one have to have a relative div inside an absolute div etc - surely not?

See a simple example: when i do put the abs div inside an abs div the page has errors and looses formating:
<!-- m --><a class="postlink" href="http://www.primaryform.com/test/test.html">http://www.primaryform.com/test/test.html</a><!-- m -->

when however i place a relative div inside an abs div its fine:
<!-- m --><a class="postlink" href="http://www.primaryform.com/test/test_working.html">http://www.primaryform.com/test/test_working.html</a><!-- m -->

Does anyone have any suggestions as to how i can use an abs div inside an abs div?

Many thanks for any help, its greatly appreciated:)
PS i hope this wasnt answered in a prev post - didnt see it when i searched...

BruceBoth should probably be relatively positioned. With absolute positioning, terms like "within" don't exist. It just paints the div exactly where you tell it to regardless of the other stuff on the page.ok thanks anthony... i see your point... will do

cheers
bruce
 
Back
Top