View Single Post
Old 05-03-2019, 04:26 AM   #29
patrik
Guru
patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.
 
Posts: 683
Karma: 4568205
Join Date: Jan 2010
Location: Sweden
Device: Kobo Forma
Quote:
Originally Posted by JSWolf View Post
Do not use line-height for anything. You do not need it and it's best to use the default line height. It's best to be as minimal as you can with the CSS and line-hight is one thing that doesn't need to be there. Also, display: block does nothing so it can go. Use top and bottom margins like this...

Code:
h3 {
  margin-top: 1em;
  margin-bottom: 1.5em;
  text-align: center;
}
.line2 {
  font-weight: bold;
  text-align: center;
}
It's very useful to actually read the earlier posts to understand what the wished outcome is. (Your example does not give that.)

How about you read the posts, and then make an example, without line-height or display:block which gives that outcome.

Can you do that?
patrik is offline   Reply With Quote