| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Designers are strange :)
|
Full height DIV -- CSS
Hey guys. I just had a PSD - xHTML job to do, and there's something that is really annoying me! I have two (2), DIVs. A left one and a right one. They're both of different heights and both have a background colour of white. The annoying thing is, because they are different heights, the smaller one shows the background colour of grey (grey is the colour of the whole template), so I've got grey boxes all over the place. I've tried putting the height at 100%, but that does bugger all. Google hasn't helped either. Heres the CSS Code. The left div has the content div in it, because of the last revision, it isn't needed but I can't be arsed to remove it. Code:
All comments are helpful. ** I have also tried putting a DIV around both these DIVs with a white background, but that didn't work either! If it works, it's valid.
|
|
|
|
|
|
#2 (permalink) |
|
Senior Member
|
Why exactly do you have a gray background? I don't totally understand what you're going for. If you want both columns to extend down the full length of the page, try faux columns. |
|
|
|
#4 (permalink) |
|
i'm done, son
Join Date: Jan 2005
Posts: 12,262
|
This sounds incredibly simple. Can you post an image of what you're trying to create? Are you trying to create a single white column the full height of the page? Why not apply a background image to the body? What's with the negative margin on #right? |
|
|
|
#6 (permalink) |
|
rock me
Join Date: Apr 2007
Location: Midlands
Posts: 41
|
You could put left and right in a container div. Add a footer div below left and right but within the container. CSS from there should be quite simple. There are many workarounds but I always go with the footer one as its pretty failsafe for me, across different browsers/platforms. |
|
![]() |