Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
05-28-2007, 02:30 AM #1
- Join Date
- May 2007
- Thanked 0 Times in 0 Posts
Synching background image with auto content height
So im having an issue with some divs that prefer only to have a set height rather than an auto or percentage.
Basically I have some content that changes the overall height of the container in the Main Content frame. The left and right border divs when height=auto, basically disappear and alter throw the positioning off.
If i'm defining a background image in divs on either side of a main content frame, can i get the border divs to grow or shorten when the main content frame height is changed by the content in there?
It just seems to my amateur mind that if the heights were set to "auto" any frame would be able to define the height of the page and the other would grow along with it. Maybe I'm just missing something.
I have included the divs in question below.
margin: 0pt auto;
05-28-2007, 03:45 AM #2
- Join Date
- Dec 2004
- In a place far, far away...
- Thanked 1,043 Times in 1,019 Posts
You need to clear your floats however height:auto; doesn't work the way you think it does. To make the columns appear like they are the same height as #main_content you will need to use the faux columns technique.
For clearing your floats read this http://www.positioniseverything.net/easyclearing.html