Archived topic
How to set line height for one block only?
1 reply · Started by Felix on December 24, 2020
Viewing posts 1–2 of 2
Hi Team-GP,
I hooked following code/text to generate_before_content in Blogposts. Somehow the line-height of 1 is not being displayed in the front end. Any ideas how to fix it?
Thank you and Merry Chrismas
<!-- wp:paragraph -->
<p><span style="line-height: 1; font-size: 0.75em; font-family: helvetica; color:#f4b429"><em>Jung von Welt</em> finanziert sich mit der Unterstützung seiner Leser. Unser Inhalt enthält Empfehlungslinks zu den Webseiten unserer Partner und wir erhalten ggf. eine Kommission. <a href="/werbung" target="_blank" rel="noreferrer noopener"><span style="text-decoration: underline;">Mehr Info</span></a></span></p>
<!-- /wp:paragraph -->
Hi there,
Try adding the style to the <p> tag and not the <span> tag.
And make sure to give 1 a unit like 1em.
This archived topic is closed to new replies.