Achieving a properly aligned sidebar in a DIV layout
Posted
by Pieter
on Stack Overflow
See other posts from Stack Overflow
or by Pieter
Published on 2010-04-17T11:37:52Z
Indexed on
2010/04/17
11:43 UTC
Read the original article
Hit count: 357
I'm experimenting with DIVs to align my page's contents: http://labs.pieterdedecker.be/test/test.htm
As you can see, there's something wrong with the sidebar. I got the sidebar DIV to be aligned to the right of the page by doing float: right
, but when the text in the sidebar stops the main area takes over the width that should be used by the sidebar.
How do I fix this?
© Stack Overflow or respective owner