Reputation: 1273
I'm working on this following project. Project Here
Everything works fine but after clicking on the button Click to expand
, the sub-menu (Link 1, Link 2, ...
) is displayed at the far left of the button instead of having the same CSS propertyleft
Kindly help me know how I can solve this problem. Sorry I am not a native English speaker.
Upvotes: 1
Views: 26
Reputation: 122155
You can fix this if you add left: 0
to .dropdown ul
DEMO
If you want to position ul
relatively to .dropdown
you can use position: relative
on .dropdown
DEMO
Upvotes: 2