How can I get to this:
-------------------------------
| | |
| | |
| | |
| | |
| | |
| | |
-------------------------------
<- #fff | #ddd ->
I’ve got a fixed width centered div, two columns. The left one has a white background, the right one’s background is grey. So far so good.
Now I want the background colors extend to the page margin. As sketched above. Is this somehow possible?
Thanks for your help!
If I understand correctly what you seek, you do not want the background the same color as the div’s, but you want it to align with the “joint” not matter the width of the window even though the content div’s are part of a centered, fixed width container. The following solution seems to work thought not tested in all browsers (took me a few hours to solve).
HTML:
CSS: