JSFiddle - React, Tailwind, and code Playground
by DarcyAn
HTML
<div class="class-a">
<p>
I'm a.line-height: 300%;
</p>
</div>
<div class="class-b">
<p>
I'm b. line-height: 3;
</p>
</div>
CSS
.class-a {
font-size: 30px;
line-height: 300%;
background: pink;
}
.class-a>p {
font-size: 16px;
}
.class-b {
font-size: 30px;
line-height: 3;
background: yellow;
}
.class-b>p {
font-size: 16px;
}