View Full Version : Fill Empty Space On Right

Sky Chief
02-27-2007, 12:27 AM
I want to be able to create a div layer.

Start it at 850 pixels - set it to 100% (width and height) and fill it with black.

When I do this, it only expands to a height of the first window. If the user scrolls down, the layer doesn't expand as I expected it would.

What is the best answer?


02-27-2007, 12:43 AM
I believe your in the wrong section?

Sky Chief
02-27-2007, 12:46 AM
I believe your in the wrong section?
I put it here because I am guessing that you need to put some type of pixel shim.

This is something that I have done in tables, but would like to make the jump to layers.

If there is a better forum, let me know which one, I will post there

Karen S. Garvin
02-27-2007, 04:59 AM
Hi, this is a CSS question, so you'd do best to check that forum. You might find something already there that addresses this kind of issue (it's an ongoing problem for browsers).

Using divs and CSS should let you get away from the pixel shim trick all together.

02-27-2007, 06:23 AM
So you want to set the width to 850px then you want it to expand to 100%? It sounds like you just want to have left and right margins.