Jump to content
xisto Community
kevinparsons

Frontpage Layers Problem css or overlapping or something problem

Recommended Posts

I am building my site with front page and I have it set up so that it stays centered and adjusts depending on the resolution you look at it (css or something like that?) and I need to overlap some flash with other elements, but when I try using layers the site gets all out of place because my page moves but my layers stay exactly in the same spot throughout the different resolutions. Does anyone know how to make the layers move with the site or if theres an easier way to get things overlapped?Thanks :rolleyes:

Share this post


Link to post
Share on other sites

The LAYER tag only uses absolute positioning so you aren't gonna be able to make it move with the rest of the content.As long as LAYER hasn?t the position attribute, if you want to use something that works like LAYER, and you want a relative positioning, try ILAYER instead.<LAYER TOP="20" LEFT="20" WIDTH="250" Z-INDEX="3"> <img src="alvarez1.jpg"></LAYER>Another option is using DIV and use relative positon, something like this, I think.<DIV STYLE="position: absolute; top:20px; left:20px; width:100px; z-index=1;"> <img src="image.jpg"></DIV>Layers are complicated, hope you?ll find the way to do it :rolleyes:

Share this post


Link to post
Share on other sites

Reason i can think of why they arent moving is probably because you dont have the position as "relative". Having it relative will move based on the size of the window. Having it absolute will mean, whatever the location was given will stay at that location no matter what.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.