Solved

css spacing in menu items

Posted on 2011-03-24
2
388 Views
Last Modified: 2012-05-11
Can anyone explain to me how to tighten up the line spacing in the menu found on
http://www.burbankcommunityymca.org. The PROGRAMS dropdown menu then SPORTS & RECREATION and the item i am referring to is Basketball Camps, clinic and Personal Coaching
0
Comment
Question by:WillAyers
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 2

Expert Comment

by:wrightsonm
ID: 35211316
your link does not work.
0
 
LVL 17

Accepted Solution

by:
mreuring earned 500 total points
ID: 35211421
After a quick google I tried this link instead: http://www.burbankymca.org/

Assuming that's the correct link (your menu path seems to line up...) I suggest the attached CSS snippet. Instead of relying on line-height to create the spacing between elements I suggest using padding, a little line-height was needed for the menu-item in question though.
div#menu ul ul a span {
    display: block;
    font-size: 11px;
    line-height: 15px;
    padding: 5px 15px 7px;
}

Open in new window

0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question