Reply to Right Aligned Nested Div Goes Off

Your name:

Reply:


Posted by vunet on 01/08/08 15:42

Hello,
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:
0px;'>right</div>
container
</div>

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.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация