The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS line height issue Reply To: line height issue

Alex Zaworski

Hey there,

The issue you’re having is that line-height is also set on the <p> tags inside of the <div>.

You’ve been trying to fight a specificity problem, when in reality you have an inheritance problem.

I don’t know of a way to get the effect you’re after purely through inline styles on the <div>. The preferred method would be to target things with classes, if possible.

If you definitely can’t go that route you’ll have to add inline styles to all of the <p> tags.