View Full Version : covering certain things w. pictures


okie_ding_ding
05-28-2003, 12:57 AM
i want my background to cover evrything under it. any way to do this?

Charrey
05-28-2003, 03:38 AM
I don't really get what you're trying to do, but you could use divs.

One should be for the stuff under the background, one should be for the background, and the third should be for the stuff over the background if that is necessary.

Use the z-index code to place the divs where you want. The highest the number after the z-index code is the top layer and the lowest is the bottom layer.
Also, put width="100%" height="100%" in the div your background will be in, since I assume you want it to cover the entire screen.


Here's an example, using three divs..the third of which would be ontop.

<div id="bottomdiv" style="position:absolute; z-index:1">
<div id="middlediv" width="100% height="100%" style="position: absolute; z-index:2">
<div id="topdiv" style="position: absolute; z-index:3">