I need help (background question)

SevenLast

New Member
Hello,

Sorry for the "Noobie" question, but:

I need help with 2 layered backgrounds. Are they possible? I'm wanting a vertically repeating image on my background, but I also want an all over pattern in png over that layer.

I have an idea on how to do it, but haven't had a chance to do it. Please let me know if this is a way to do it.

By setting the 1st layer background as a vertical repeat pattern and then setting an AP DIV over the bg with the png repeat. Just setting that div's margins to always be to the ede of the screen.

Does that make sense? lol please help u guys!
 

SevenLast

New Member
Awesome! Thanks for the quick reply RonaldRoe. So relative or static divs can be stacked as well? I was under the impression that only AP Divs were. ...?
 

CaldwellYSR

Member
Anytime you put a div down it sits on top of whatever it's nested inside. So if it's inside the body it will sit on top of the body. This will work just fine for your case. The other way to make divs overlap without making them absolute positioned is to use z-index in your css. something with z-index: 2 will sit higher than something with z-index 1. So they can layer over each other.
 
Top