homepage Welcome to WebmasterWorld Guest from 54.211.180.175
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: not2easy

CSS Forum

    
Adjusting margins for dropdown menu list
camasb




msg:4371269
 10:12 pm on Oct 5, 2011 (gmt 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.

 

seoskunk




msg:4371297
 11:34 pm on Oct 5, 2011 (gmt 0)

use padding

camasb




msg:4371573
 4:30 pm on Oct 6, 2011 (gmt 0)

thanks...would you be willing to give an example as code? It's easier for me to learn that way.

rocknbil




msg:4371968
 4:00 pm on Oct 7, 2011 (gmt 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.)

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved