View Single Post
Old 01-24-2020, 09:27 PM   #8
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by JSWolf View Post
@hobnail, when you have classes together like in your CSS, Calibre will not remove any of the unused classes.

Code:
h1 {
  font-size: 1.44em;
  font-weight: bold;
  hyphens: none;
  margin-bottom: 0;
  margin-top: 1em;
  page-break-after: avoid;
  page-break-inside: avoid;
  text-align: center;
  text-indent: 0;
}
h2 {
  font-size: 1.3em;
  font-weight: bold;
  hyphens: none;
  margin-bottom: 0;
  margin-top: 1em;
  page-break-after: avoid;
  page-break-inside: avoid;
  text-align: center;
  text-indent: 0;
}
h3 {
  font-size: 1.12em;
  font-weight: bold;
  hyphens: none;
  margin-bottom: 0;
  margin-top: 1em;
  page-break-after: avoid;
  page-break-inside: avoid;
  text-align: center;
  text-indent: 0;
}
h4 {
  font-size: 1em;
  font-weight: bold;
  hyphens: none;
  margin-bottom: 0;
  margin-top: 1em;
  page-break-after: avoid;
  page-break-inside: avoid;
  text-align: center;
  text-indent: 0;
}
That is much nicer code.
I so disagree with that. What you have means there means that if you want to change the overall style of the headers, say from centred to on the right, you have to do it in four places instead of one. Ugly, inefficient, a pain to maintain and prone to error.
davidfor is offline   Reply With Quote