sanfly Posted November 8, 2006 Share Posted November 8, 2006 Hi GuysIt has been my understanding that to use layers (z-index) with css, it is necessary to use absolute positioning. Can anyone confirm this for me?If this is the case, I have a problem I hope someone can help me work around. I need to use layers for a flash menu I am making, but the menu needs to be centered in the middle of the page, regardless of the screen resolution. Does anyone have a solution? Quote Link to comment https://forums.phpfreaks.com/topic/26618-centering-and-layers-with-css/ Share on other sites More sharing options...
jcombs_31 Posted November 9, 2006 Share Posted November 9, 2006 You can position it relative, doesn't have to be absolute. To center it, use align: 0 auto;0 can be changed for your top and bottom margins. Quote Link to comment https://forums.phpfreaks.com/topic/26618-centering-and-layers-with-css/#findComment-122112 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.