thanks, tried that but doesn't seem to work. as soon as I add the 'float' it throws things into disarray I forgot to add that there is a footer underneath it all.
Main Topics
Browse All TopicsHello experts.
I have a page layout with a header and two columns under it - 'main' on the left and 'sidebar' on the right. the height of the columns are variable. The sidebar contains a mix of elements such as tables and text sectioned by <div> tags. Somehow when the 'main' column is longer. The 'sidebar' stretches to the same length. How can I change this so that sidebar does not stretch to the same length and fits snuggly around the <div> elements it holds. thanks
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Yes and no. On the header-blue your clearing all floats around it whereas if you put the clear:both on a br tag then its going to clear only around that tag. It may work in some browsers buy may not in others. The way i have done it, is the correct style. You should have to use br to clear floats. Plus it adds to more code on your page.
Cheers.
Business Accounts
Answer for Membership
by: l_mcnamaraPosted on 2009-04-07 at 03:35:02ID: 24085697
Hi,
right; ht:auto; dth:auto; argin-righ t:whatever you want here;
t should work.
remove what you have and add these to .layout #sidebar:
clear:both;
float:
heig
wi
m
padding-left:10px;
tha
If not let me know, as it will have something to do with your main container which wraps the div's and their contents, and also positioning of the elements.