View Single Post
Old 11-30-2023, 06:08 PM   #14
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 80,077
Karma: 147983159
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by AS7 View Post
Code:
.block_ {
display: block;
font-size: 2em;
letter-spacing: 0.5pt;
line-height: 1.1;
text-align: center;
margin: 40pt 0 0;
padding: 0;
}
There are some problems with the CSS. YOu do not want ot use line-height at all as it makes some Readers such as Kobo not work properly with the line height setting. Also, you want to spell out the margins in full as some B&N nook Readers do not like the margin shorthand. Also, if you are using a center, you also need a text indent of 0. And finally, you do not use pt in margins. You use ems. And finally, the padding of 0 is not needed.

Code:
.block_ {
display: block;
font-size: 2em;
letter-spacing: 0.5pt;
text-align: center;
text-indent: 0;
margin-top: 2em;
margin-right; 0;
margin-bottom: 2em;
margin-left: 0;
}
JSWolf is offline   Reply With Quote