?
Solved

css spacing in menu items

Posted on 2011-03-24
2
Medium Priority
?
389 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 2000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
Suggested Courses
Course of the Month11 days, 4 hours left to enroll

770 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