Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Sub menu goes under main text elements
Old 08-08-2010, 09:20 AM Sub menu goes under main text elements
Junior Talker

Posts: 2
Trades: 0
Hello, everyone!

This is my first post here. I'm a newbie in web design and programming. I'd like some help. Please refer to this page:

http://www.hotelcamilapagadian.com/index2.html

Basically, I've added sub menus to the menu line and it works fine for Rooms submenu but the other sub menus seemed to go under the main text, making them unclickable/unselectable by the user.

How do I make these submenus stay in the "foreground"?

Please feel free to examine the page source and I think the relevant css settings are in style.css. (I use firefox and it allows me to view the full contents of style.css by clicking it on the Page Source. My safari browser doesn't seem to allow that. Not sure with IE and Chrome.)

Help much appreciated!

jeff
kingjepoy is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-08-2010, 05:52 PM Re: Sub menu goes under main text elements
racer x's Avatar
Ultra Talker

Posts: 457
Name: Randy
Location: Northern Wisconsin
Trades: 0
You can ad a z index to the list items:

#header .nav li { display:inline; float:left; position:relative; z-index:100; }

You are new? That is a pretty nice design. You may want to move all that javascript into its own file. It is good practice to keep the page clean.
racer x is offline
Reply With Quote
View Public Profile Visit racer x's homepage!
 
Old 08-08-2010, 11:25 PM Re: Sub menu goes under main text elements
Junior Talker

Posts: 2
Trades: 0
Quote:
Originally Posted by racer x View Post
You can ad a z index to the list items:

#header .nav li { display:inline; float:left; position:relative; z-index:100; }
That worked like a charm! Thanks a hundred!

Quote:
Originally Posted by racer x View Post
You are new? That is a pretty nice design. You may want to move all that javascript into its own file. It is good practice to keep the page clean.
I'm quite happy you like my design! I already had some programming background (mostly VB) so it was a matter of learning new languages (html, css, javascript, php, etc.) and a lot of help from google searches. Thank you for the tip on on saving the javascript file to its own file. I was actually planning to do that before I put this file into "production" mode.

Thanks so much!
kingjepoy is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Sub menu goes under main text elements
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.79719 seconds with 12 queries