...

View Full Version : Layers?



michael180
12-17-2006, 12: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

koyama
12-17-2006, 12:07 AM
Maybe a silly question, but did you try with the z-index CSS property? Let's see your problem.

michael180
12-17-2006, 12:25 AM
Hi koyama,
The page is here -
http://moderntimes.com/tmp
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.

Thanks,

trigger_tre
12-17-2006, 12: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.

-trigger

koyama
12-17-2006, 01: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
#navcontainer
{
position: absolute;
top: 0;
right: 0;
font-family: georgia, serif;
font-size: 13px;
text-align: center;
text-transform: 0;
}
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.

michael180
12-17-2006, 01:35 AM
That's it koyama, it works. Many thanks.
Michael



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum