Howdy_McGee
Howdy_McGee

Reputation: 10643

JavaScript Drop Down Moving Over Links

I got this problem when Im trying to create a javascript dropdown. It keeps moving over my "prices" link but I took off all the padding and margins in the UL. Suggestions?

http://jsfiddle.net/fSXHj/

Upvotes: 0

Views: 124

Answers (1)

SoWeLie
SoWeLie

Reputation: 1391

This is because your hidden ul that is being displayed is widening the outer ul due to its own width. You need to position your hidden ul as absolute.

Check it out:

http://jsfiddle.net/fSXHj/1/

Upvotes: 2

Related Questions