Web Design Forum: navigation help - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

navigation help with my drop down navigation

#1 User is online   collie 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 77
  • Joined: 08-June 11
  • Reputation: 1
  • Gender:Male
  • Experience:Nothing
  • Area of Expertise:Web Developer

Posted 15 January 2012 - 03:03 AM

hi,

http://davidcolligan...ain/index3.html

im having a problem with drop down nav, its only on the bikes and accessories section, when u hover bikes you cnt really tell, but when u hover accessories u can see it looks weird, im wanting it so that the box that the drop down is in sits nicly under each heading, and the text fits inside nice and looks right,

any help would be much appreciated

thanx collie
0

#2 User is online   collie 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 77
  • Joined: 08-June 11
  • Reputation: 1
  • Gender:Male
  • Experience:Nothing
  • Area of Expertise:Web Developer

Posted 15 January 2012 - 01:27 PM

also when you view this on internet explorer, the drop down nav just disapears, you are not able to go onto it :(
0

#3 User is online   Renaissance-Design 

  • Available for custom WordPress work
  • View blog
  • Group: Moderators
  • Posts: 3,594
  • Joined: 12-August 10
  • Reputation: 559
  • Gender:Male
  • Location:South Wales
  • Experience:Web Guru
  • Area of Expertise:Designer/Coder

Posted 15 January 2012 - 01:38 PM

They're aligning themselves to the left of their parent <li> - it's the parent <li> that's the problem. Take a look in Firebug (or your browser's equivalent dev tools or add this:

.nav>ul>li { outline: 1px solid red; }


and you'll see what I mean. (BTW, "outline" is a good rule for testing as it doesn't add width and height to the element like border does.)

As far as the IE problem goes, you need to make sure the menu's top value is equal to the height of the parent element - any gap will mean you lose the hover as your cursor passes over the gap. Try changing:

.nav ul ul { top: 30px; }


to:


.nav ul ul { top: 100%; }

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users