• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

emunah
#1 Posted : Thursday, April 3, 2008 11:59:55 AM(UTC)
emunah

Rank: Member

Joined: 2/25/2008(UTC)
Posts: 111

Can anyone tell me the css id for changing the line height on the category side menu? I want the lines to be closer together
Cliff
#2 Posted : Thursday, April 3, 2008 5:56:46 PM(UTC)
Cliff

Rank: Member

Joined: 5/24/2004(UTC)
Posts: 4,147

Something like .categorymenu li { line-height: 1.1em; }.
MitchA
#3 Posted : Thursday, April 3, 2008 6:10:03 PM(UTC)
MitchA

Rank: Member

Joined: 3/3/2006(UTC)
Posts: 1,737

Cliff, the "em" ties this to the height of the font, correct? So if the font size changes, the space also changes?
Optimists invent airplanes,
Pessimists buy parachutes.
Cliff
#4 Posted : Thursday, April 3, 2008 6:20:02 PM(UTC)
Cliff

Rank: Member

Joined: 5/24/2004(UTC)
Posts: 4,147

Yes, as it should be in most cases. A number will be multiplied with the font size. A percentage would be a percentage of the font size. I don't recommend using fixed pixel dimensions unless absolutely necessary.

Also, I should mention that using LI in this case may not work for you if you have a lot of nested options, as lists often have. So setting the line-height on the containing element, .categorymenu, might be the best way to go. Again, it really depends on the rest of your CSS.
emunah
#5 Posted : Friday, April 4, 2008 9:59:26 AM(UTC)
emunah

Rank: Member

Joined: 2/25/2008(UTC)
Posts: 111

Neither of those worked, thanks anyway
Cliff
#6 Posted : Friday, April 4, 2008 12:13:10 PM(UTC)
Cliff

Rank: Member

Joined: 5/24/2004(UTC)
Posts: 4,147

Can you verify that is the class for that menu you're working with and did you adjust the value? Is line-height set elsewhere?
Cliff
#7 Posted : Friday, April 4, 2008 3:22:36 PM(UTC)
Cliff

Rank: Member

Joined: 5/24/2004(UTC)
Posts: 4,147

Afterthought: since I can't see what you're doing, this may not be a line-height issue but a padding/margin issue on your list items, so check there as well.
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012