Okay, I'm just now trying to teach myself CSS...so please bear with me. Sorry if this has been covered before.
I have made a layout..well part of one in PS7. The main image has two areas in it where I want content to go, thus I was Divs to go there...
What I dont know is, once I place this image on my site..my divs go below that image...I.e. the spacing defined in the CSS goes from the image not from the top of the page. How can I make it ignore the image and go over them.
Gee, I hope this made sense.
I COULD use the image as the pages background..then the divs would show over it..however..I need to use a diff img (tiled) as the bkg so this won't work.
Check out my page (click on WWW in my sig) and look at my header, it overlaps my content box... Is that kinda what you are going for? If so, you are talking about Z index...
I'm pretty confused. I know it's easy stuff, I just havn't figured this stuff out yet.
Here is the short, easy to understand version of what I'm trying to do.
First: Place an Image.
Second: Have Div Box1es for Nav and Content that go OVER the first image.
EDIT://
Now that I think about it, I believe the way I would have to do it would be to instead of using an Image tage, use another div, with the image as the bkg, then the others divs should go over it.
Then the image: <img src="image.jpg" class="first" />
Then the div's for navagaion/content:
.content {
z-index: 1;
...whatever else...
}
.nav {
z-index: 2;
...whatever else...
}
Then for the img.first, set the positioning and whatever else you want... I think I got that correct, if not, it should be a start for you on finding what you need... With my site, I set the z-index for my header as 5, so it is above everything else, so all you need to do is do the opposite, have it set at 0 so it is the absolute bottom...
Yah I got it working, but I'm having one hell of a time trying to get everything lined up. FIrefox it's perfect...but in IE it's always farked up. I hear I should just get it worked in Firefox..then go from there...
IE is farked.
EDIT://
Okay I went and changed some stuff, the positioning seems to be working in IE and Firefox, but I can't get the Z-index to work.
My img div is first..I set it's z-index to 0 but the other divs are still showing below it.
The header is the one that I want on bottom. I tried adding in z-index: 0 to it..and even put the other 2 divs at z-index: 1 or 2 or even 5 but it wouldnt work.. Setting header to z-index: -1 however made it vanish..so I know it was partially working..just can't get the other divs above for some reason.
Hah. Omg. Duh. I think I just figured it out..or partially.
I noticed it when reading my own post.. I don't have my other 2 divs set with a position...thus it ignores z-index.
EDIT:
Yah, it is working right now..course in IE6 the position is still a little off...when I move the right div..the left one moves over a little and shouldnt..guess I will get it workign in Firefox then go from there.
And thanks for the help, you're actually how I solved my problem..even though I found it on my own..it woulda taken forever had we not been messing with it.
And actually, you told me how to do the z-index...which was the right solution =D
Shame about the overflow divs, and shame that colored scrollies dont work in anything but IE too...but ah well.