View Full Version : Layers?
12-17-2006, 01:03 AM
I have a page with an image on it. I also have a vertical menu bar that I would like to place over the image. After correctly positioning the menu, it all but disappeared behind the image. I've tried everything, but nothing seems to work. Any suggestions
12-17-2006, 01:07 AM
Maybe a silly question, but did you try with the z-index CSS property? Let's see your problem.
12-17-2006, 01:25 AM
The page is here -
I'm not sure about the z-axis because I would have to add #masthead, wouldn't I? As you can see some of the menu is showing through, though, it doesn't work properly.
12-17-2006, 01:47 AM
It displays in my browser.
You need to clarify what you mean by not working properly. How it is intended to work?
If not working properly refers to the vibration effect you see on hover then that is because you have the text shifting over so far on hover that it no longer is being hovered by the cursor. So it returns to its original position only to find that your mouse is hovering again so in effect you get a sideways ping-pong of text.
Try to have the text move only slightly over.
Also you failed validation.
12-17-2006, 02:26 AM
Alright, I finally see your problem. The menu goes behind the picture, but it doesn't follow the edge of the image either as you shrink the window.
In your case I would prefer doing absolute positioning for your menu. Did you consider that?
1. Put back in your #wrapper which you already have the style for. It has position: relative so that's fine. It should be nested directly within the body element of course.
2. Try to set for your #navcontainer
font-family: georgia, serif;
Your menu will go on top of the image and it will also follow the right edge when shrinking the window.
This will definitely alter other things on your page, but this is just a matter of adjusting parameters. Actually, there is no need to slice the image anymore.
12-17-2006, 02:35 AM
That's it koyama, it works. Many thanks.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.