homepage Welcome to WebmasterWorld Guest from 54.167.75.155
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: not2easy

CSS Forum

    
drop down menu and relatively positioned element
billybonds




msg:1220886
 11:37 pm on Feb 7, 2005 (gmt 0)

hi,

I've run into a bit of a problem... I'm trying to set up a drop down menu in my navigation bar.

it works except for the fact that it hides behind a relatively positioned element

can I use z-index to fix this?

I'd really appreciate some help on this!

thanks,

Jim.

<No URLs, thanks. See TOS [WebmasterWorld.com] and CSS Forum Charter [WebmasterWorld.com]>

[edited by: SuzyUK at 8:58 am (utc) on Feb. 8, 2005]

 

lZakl




msg:1220887
 12:35 am on Feb 8, 2005 (gmt 0)

I didn't look through your source extensively, but I am sure that you can easily work z-index into your style2_main.css

z-index: 5

Simply by adding that last line to each element you want indexed. Remember that the element with the higher # is in the FRONT of stack.

And you said the menu is in back of something that is Relatively positioned, but I think it must be absolute for z-index to work. Like I said ... I THINK.. hehe Hope this helps.

-- Zak

billybonds




msg:1220888
 9:25 am on Feb 8, 2005 (gmt 0)

Thanks ZAK

That got it!

I had tried using Z-index and position: absolute; but clearly not in the right places - I tried again after reading your post and what did it was to position the element absolutely and add the z-index to all related CSS (probably all was not necessary but what the heck!)

Jim.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved