I’ve been goofing with it for a full day and multiple Google searches haven’t helped.
My desired layout is a menu section on the left, then content on the right. The content will contain multiple “float: left;” classes for thumbnails. Then a section with text under the thumbnails (not captions, but a paragraph with text). The problem is that I want this text underneath the thumbnails, but not underneath the menu section.
Here is some simplified code showing the problem I am having:
I want the “info” div underneath the individual “item” divs, but not all the way underneath the “menu” div. I have tried several things but nothing works. What do I need to do?
Thank you! I only have one problem after making the changes. I have a footer on the page (I should have included a footer in the sample code, sorry I didn’t). With the changes you suggested, the footer doesn’t appear below the menu section; instead it overlaps it.
Here is some code (based on the above, with the footer added) to show what I am talking about:
Because the menu is now absolute positioned, it is no longer in the flow of the website, and it’s height doesn’t count.
To solve this, you can give Content a min-height, that is the minimum height it should have to make the position of the footer look good.
Min-height isn’t supported in IE6, but using this little trick I recently learned you can make it work.
#content {
height: auto !important;
height: 300px;
min-height: 300px;
}
Here min-height and height need to have the same value.