Okay, I am attempting to make my first-ever layout, (all by myself!! I'm so proud.) but, seeing as this is my first real attempt, I've run into some problems. My latest seems pretty simple, yet I can't seem to find a solution...
Currently I have made divs as a css layout for my content, and have a fixed background.
The problem: I would like it if my content didn't go over the top part of the background; the moon and the brushes/text I plan to add. Now I don't know anything about images and stuff, but my first thought was to cut the image, and make the top part on another layer, so it's not part of the background anymore, and the layers I already have will scroll under it, and not over. But in the css layout I'm using, apparently all layers are on the same... what would I call it, plane?
I don't know if I'm at all on the right track with this, so I'd appreciate your thoughts and suggestions. Thanks.
Now I don't know anything about images and stuff, but my first thought was to cut the image, and make the top part on another layer, so it's not part of the background anymore, and the layers I already have will scroll under it, and not over. But in the css layout I'm using, apparently all layers are on the same... what would I call it, plane?
That's one way to try it. First, you could move the divs holding your content down a little bit using "top" since they're absolutely positioned:
Code:
#menu, #content {
top: 100px;
}
And then you could place an image on the top of the screen using position:fixed, z-index, and slightly overlapping the content. I don't know if this is the way I would do it if I was coding this from scratch, but I think it could work for you.
Yeah, I was just about to do that. I don't think it'll make my image stay put, though. Can I absolute position an image in my css...? (I REALLY need to catch up on this stuff again... -sweatdrop-)
__________________
I want patience, and I want it now!
Lol yes, sorry, I haven't had problems with that, but the other image won't stay put... Well there isn't one on the page I've linked to, I haven't overwritten it yet, but I'd like my content to scroll under the top part, and the easiest way to do that seems to be to place an image at the top that would be stacked above the others using z-index, but I can't seem to get the image I want to use to stay put; since it's part of the body, it wants to scroll with it...
__________________
I want patience, and I want it now!
Here's an idea... could I, in fact, instead of just having a fixed background, divide the background up into several images and position them with z-index... So that the parts that I want to still be the background would be behind my content still.. and the one image that I want the content to scroll under would be stacked correspondingly..?
__________________
I want patience, and I want it now!
Here's an idea... could I, in fact, instead of just having a fixed background, divide the background up into several images and position them with z-index... So that the parts that I want to still be the background would be behind my content still.. and the one image that I want the content to scroll under would be stacked correspondingly..?
I dunno... it's an idea but there seems like there should be a simpler way. I'll see if I can drum up an example for you.
BTW... keep in mind that Internet Explorer chokes on fixed positioning, so without lots of extra markup it's not going to be pretty.
Care to expand on that? I've used fixed positioning here and there. Seems OK in IE.
Are you sure? Try this in Firefox or Opera, and you'll see what it's supposed to do. I am using IE on a Virtual PC, so maybe I'm mistaken, but I thought IE6 didn't support fixed positioning.