Jump to content


Photo
- - - - -

How to change line height in one widget without changing it in them all


Best Answer catrina , 14 February 2013 - 04:47 PM

In this code:

 
li {line-height 40px;}

...you need to be more specific like this:

 

 
#nav_menu-2 li {line-height 40px;}
Go to the full post


  • Please log in to reply
2 replies to this topic

#1 reidthis

reidthis

    Member

  • Members
  • 17 posts
  • Country: Country Flag

Posted 14 February 2013 - 03:31 PM

Hello,

 

I have a question that has been bugging me for the better part of a week. I would like to change the line-height in my main navigation box on my page here : www.philosophymuse.com/highlights (the main one is the one on the top right with the 5 big blue links). I know how to change the line-height for the text in all the widgets, and I know how to customize somethings in that particular widget, ex. 

 

 

#nav_menu-2 {border-bottom-right-radius: 20px; padding-top: 50px; padding-bottom: 50px; font-size: 25px; background-color:  
#C2C2C2; }
 
but when I put the line-height change here, it does nothing!
 
When I do this:
 
li { line-height 40px} it changes it for all the widgets. 
 
Can anyone help me figure out how to change such things for just one widget???
 
Thanks so much!!!!!!!!!!!!!!!
 
-R


#2 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 14 February 2013 - 04:47 PM   Best Answer

In this code:

Please Login or Register to see this Hidden Content

...you need to be more specific like this:

 

Please Login or Register to see this Hidden Content



#3 reidthis

reidthis

    Member

  • Members
  • 17 posts
  • Country: Country Flag

Posted 14 February 2013 - 05:00 PM

Thank you!!!