Solved

css spacing in menu items

Posted on 2011-03-24
2
383 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
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

746 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now