I have a page with a heading and two columns below it. These two columns are positioned absolutely so that they can expand their background colors to the bottom of the page. Here are the limitations:
- I want the left edge of the right column to start where the right edge of the left column ends.
- The text in the left column changes with some ajax requests. It needs to expand, so I cannot use a fixed width in the left column.
- The right column width does not matter. Its height should at least fill the page vertically 100% from the bottom. If the content goes below the bottom of the page, the background should expand with it.
The idea is that the user will visit this main page and it will look βfullβ, since it occupies almost the entire page horizontally in all three columns, and should display the entire page vertically. When they scroll down, the left column may end , and the right column can continue.
I accomplished this with javascript.
$("#right").css('left', $("#left").width()+'px');
I do not want to use javascript. Can I redo this page with these restrictions only using CSS3?
http://jsfiddle.net/m3ta/BJFME/2/
source share