I have a div that is nested quite deep in div tags. I want to divide this div into a left and right column.. sounds easy, but so far I'm pulling out my hair to get it to work.
Since the div is nested within several others, I run into these problems.
1. If I set it to float:left and float:right, the parent layer no longer has a height.. and so the background image disappears
2. If I set them to relative positions, then the right column begins where the left ends, rather than them being side by side.
Hers are links to temporary pages.. all CSS is contained in the head tag, and I have added simple background colors and text to help identify div's.
(setup with floating.. left and right columns work, but no parent height)
(setup without floating.. parent has a height and the footer works correcntly, but right column appears underneath the left column)
I don't want to have to set the height of the div that contains the columns manually.. this is the setup I've been working with and it works until the user changes the text size in their browser options. I would like to use this style for many pages, all with content of different lengths in the left and right columns, and have the parent div adjust height accofdingly.
Thank you in advance for your help.
Since the div is nested within several others, I run into these problems.
1. If I set it to float:left and float:right, the parent layer no longer has a height.. and so the background image disappears
2. If I set them to relative positions, then the right column begins where the left ends, rather than them being side by side.
Hers are links to temporary pages.. all CSS is contained in the head tag, and I have added simple background colors and text to help identify div's.
(setup with floating.. left and right columns work, but no parent height)
(setup without floating.. parent has a height and the footer works correcntly, but right column appears underneath the left column)
I don't want to have to set the height of the div that contains the columns manually.. this is the setup I've been working with and it works until the user changes the text size in their browser options. I would like to use this style for many pages, all with content of different lengths in the left and right columns, and have the parent div adjust height accofdingly.
Thank you in advance for your help.