Ant Posted April 12, 2012 Report Share Posted April 12, 2012 If I stylize something like this(see below), does HTML NOT have a standard appropriate line height for X font size? I ask because if I don't want to stylize text with any heading tags and I want to stylize it with a P tag but then change the font size the spacing between lines is always too close. My guess is I'm breaking the rules by doing it like that. My thought is P is like a default text tag, it's not bold etc so I use it then add styles to adjust it per the situation. The problem is stylizing it with JUST font-size screws up the line height. <p><span style="font-size: 18pt; line-height: 150%;">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam semper luctus urna, in iaculis lectus lacinia sed. Vivamus porttitor diam nunc, vel auctor leo. Sed volutpat lacus sed nulla convallis eu tempus quam vulputate. </span></p> Do I always need to define the line height whenever I use the font-size variable? Even if I create a class and choose font size, color etc do i need to define a line-height because just font-size:20px does not know how much line height to place? Thanks, A. Quote Link to comment Share on other sites More sharing options...
falkencreative Posted April 13, 2012 Report Share Posted April 13, 2012 I don't think that font size and line-height are linked in any way. I think they are only proportional if you use the default browser text sizes, and the minute you adjust the font size you might need to adjust the line height as well. Quote Link to comment Share on other sites More sharing options...
Ant Posted April 13, 2012 Author Report Share Posted April 13, 2012 Thanks Ben. A. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.