Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-13-2012, 07:29 PM   PM User | #1
sixrfan
Regular Coder

 
Join Date: Aug 2009
Posts: 395
Thanks: 116
Thanked 0 Times in 0 Posts
sixrfan has a little shameless behaviour in the past
dropdown menu issues

if you look at the source code of this site this site there should be a dropdown list of offices below the Contact Us button in the top nav. however i cant get them to appear. i realize that I have a display:none on the .sub-menu if you use firebug, you'll notice that when you take that off, the items do appear, but not in the form of a dropdown.

so how do i get them to appear direction below Contact Us when someone hovers over Contact Us.

to give some background, this is a wordpress theme that was built before 3.0 so i've had to do tinkering to get wordpress 3.0 menus to appear, but obviously not formatted correctly.

please advise. thanks in advance!
sixrfan is offline   Reply With Quote
Old 11-13-2012, 10:18 PM   PM User | #2
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
Hello sixrfan,
You are not being specific enough in your CSS. You need to style the dropped ul differently than the ul menu the user sees before he mouses over anything.

I didn't look very hard for a hover attribute that changes your .sub-menu from display: none; to block or something visible. Your use of !important would likely override it anyway.

You use absolute positioning .sub-menu but you don't position it.
Your CSS has
Code:
#menu li {
/...
    display: inline;
.../
This makes all li's inline, even though you don't want your ul li ul li inline.



Look at this simple CSS only dropdown menu for ideas.
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

Last edited by Excavator; 11-13-2012 at 11:52 PM.. Reason: re-arranged a sentence
Excavator is offline   Reply With Quote
Users who have thanked Excavator for this post:
sixrfan (11-13-2012)
Old 11-13-2012, 11:12 PM   PM User | #3
sixrfan
Regular Coder

 
Join Date: Aug 2009
Posts: 395
Thanks: 116
Thanked 0 Times in 0 Posts
sixrfan has a little shameless behaviour in the past
got it. thanks!
sixrfan is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 02:31 PM.


Advertisement
Log in to turn off these ads.