Each popular link you have also encloses its text in a
spanelement, like this:
<a><span class="wpp-post-title">link text here</span></a>
The class wpp-post-title has 3 css styles: font-size, font-weight, line-height, which are applied after the
<a>style which you’re trying to change.
So, you can remove the span element from the links or remove the styles from the wpp-post-title class or style the wpp-post-title instead of the
Hi, thanks. That’s what I was looking for.
Also, can you help me remove the line-height?
I’ve tried adding line-height:normal and line-height:1em
But it doesn’t go away.
Line height isn’t something that you can really make go away, it’s similar to font-size in that way. Text has to have a font-size and, in a similar way, it has a line-height.
So, in this situation, you should choose a line-height that makes sense (i.e. looks good). Try putting in different values to see what works for you.
Here’s some info you might find useful: http://www.w3schools.com/cssref/pr_dim_line-height.asp
When I try changing the line-height of the class
both work for me.
(I’m using firebug, by the way, to make those changes on the fly and see them work.)
It doesn’t work when I add -2em?? And I’m using Firebug too.
Does it not work when you try to change the css files or when you’re using Firebug?
- The topic ‘Not able to change font-size’ is closed to new replies.