[Help] HTML/CSS

Rufai

Supreme Member
Joined
May 23, 2020
Messages
1,363
Reaction score
1,177
I'm using this code to add affiliate disclaimer to my blog posts, but the line height is way bigger.
How can I reduce the line height?
I'm using Ad inserter plugin
IMG_20211201_114342_019.jpg
Code:
<font size ="1"; color ="red" ><i> This site is reader-supported. When you buy through links on our site, we may earn an affiliate commission. Please read our <a href="/disclaimer">Disclaimer</a> for more information. </i></font>


Thanks
 
Try

Code:
<font style="line-height:1.1em; font-size:1.1em;color:red;"><i> This site is reader-supported. When you buy through links on our site, we may earn an affiliate commission. Please read our <a href="/disclaimer">Disclaimer</a> for more information. </i></font>
 
Try

Code:
<font style="line-height:1.1em; font-size:1.1em;color:red;"><i> This site is reader-supported. When you buy through links on our site, we may earn an affiliate commission. Please read our <a href="/disclaimer">Disclaimer</a> for more information. </i></font>
Thanks @Gogol for the help.
IMG_20211201_123401_688.jpg
It worked but when I tried to reduce the font size to 0.5em, the line height increased as it was before.
I also tried reducing the line height too but it didn't change.
 
Thanks @Gogol for the help.
View attachment 193721
It worked but when I tried to reduce the font size to 0.5em, the line height increased as it was before.
I also tried reducing the line height too but it didn't change.
Just decrease the line-height as well. As a rule of thumb, the line height should be same or more than the font size. :)
So it becomes something like:
Code:
<font style="line-height:0.5em; font-size:0.5em;color:red;"><i> This site is reader-supported. When you buy through links on our site, we may earn an affiliate commission. Please read our <a href="/disclaimer">Disclaimer</a> for more information. </i></font>
 
Just decrease the line-height as well. As a rule of thumb, the line height should be same or more than the font size. :)
So it becomes something like:
Code:
<font style="line-height:0.5em; font-size:0.5em;color:red;"><i> This site is reader-supported. When you buy through links on our site, we may earn an affiliate commission. Please read our <a href="/disclaimer">Disclaimer</a> for more information. </i></font>
I think the issue is from the plugin or my site settings. I'll just leave it like this.
IMG_20211201_131453_812.jpg
Thanks again for the help @Gogol
 
Just decrease the line-height as well. As a rule of thumb, the line height should be same or more than the font size. :)

I think the issue is from the plugin or my site settings. I'll just leave it like this.
View attachment 193723
Thanks again for the help @Gogol
Hmm this is quite unusual because the inline rules should have overridden the other rules. If I could see the site, I could probably pinpoint what needs to change.

If you need help (for free ofcourse), you are welcome to PM me. :)
 
Hmm this is quite unusual because the inline rules should have overridden the other rules. If I could see the site, I could probably pinpoint what needs to change.

If you need help (for free ofcourse), you are welcome to PM me. :)
Thanks. PMed you
 
Back
Top