Welcome to WebmasterWorld Guest from 54.163.129.96

Forum Moderators: not2easy

Message Too Old, No Replies

Adjusting margins for dropdown menu list

     
10:12 pm on Oct 5, 2011 (gmt 0)

New User

5+ Year Member

joined:Oct 5, 2011
posts: 2
votes: 0


I'm working on a dropdown menu - can anyone tell me how to get a 1em margin between the main menu list items and the topmost dropdown items? I have 1em margins between each dropdown list item = no problem... just can't figure out how to get the same margin between the main menu items and the topmost items that drop down. I tried margin-top and the cursor is not always able to jump the gap to reach the dropdown links, even with just a 0.5em space.
11:34 pm on Oct 5, 2011 (gmt 0)

Senior Member

WebmasterWorld Senior Member 5+ Year Member Top Contributors Of The Month

joined:Sept 14, 2011
posts:750
votes: 24


use padding
4:30 pm on Oct 6, 2011 (gmt 0)

New User

5+ Year Member

joined:Oct 5, 2011
posts: 2
votes: 0


thanks...would you be willing to give an example as code? It's easier for me to learn that way.
4:00 pm on Oct 7, 2011 (gmt 0)

Senior Member

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Nov 28, 2004
posts:7999
votes: 0


Guessing you have a mix of Javascript and CSS . . . best to give us a code snippet to see what you're working with (no huge dumps please, try to provide just the relevant bits with anonymous links - use example.com.)