Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Right Aligned Nested Div Goes Off
January 8, 2008, 3:42 pm
rate this thread
I have a div inside of the div:
<div id='container' style='position:relative;width:500px;'>
<div id='right' style='position:absolute;width:50%;right:
with that CSS above, 'right' div is aligned to right of the page, not
container, even though it is nested. It gets fixed when I set
container to have position:absolute. What CSS properties should I be
looking at in this case?
Note: example above is not the test-case but just an explanation.
'container' is nested within other HTML tags in real code.
Thank you for ideas.