This Message Forum is no longer in use

Please use the new Bravenet Help Forums FOUND HERE

General Forum
This Forum is Locked
Author
Comment
Problems with z-index..

I put a background on the header section only....and I already have an image, top left fixed, as my body background...

The body bg image I would like in the forefront.

I used z-index:-1; for the header bg....

and used z-index:1; for the body bg....

I added that to the style sheet...
ex: background-image: url("blah");
z-index :1;

did same to header bg, but z-index:-1;

That didn't put the body bg over the header bg.....

Then I added it to the bg codes, ex: url("http://mybgpic.gif" z-index:1);....that whacked my whole site up lol..

Anyone have any help? thanks in advance,
kendra

btw, i took the code out for now..

Re: Problems with z-index..

Backgrounds are attached behind the content of whatever part of the page you have the background attached to. The z-index determines the layering of the content and not of the background.





Content with body.gif background goes here.

Re: Problems with z-index..

Thanks for that! Makes sense now!!

I tried it, and it worked great as to going behind the header background, but it covered up the navigation....ohhh, a thought just occured to me, maybe I should give the navigation a z-index......

lol i know just enough to make me dangerous as they say....

Thanks so much for your help

Re: Problems with z-index..

nvm, I decided not to use it on that page...i like it better with just the header background...thanks