View Single Post
Old 08-23-2022, 01:32 PM   #71
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: 79,796
Karma: 146391129
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 DNSB View Post
I grabbed the sample of The Standoff by Scott Blade from Amazon and looked at it's code. Perhaps you should have included the p entry between the @fontface and p.subsq entries? I'm still curious as how that gives you indents on every paragraph? While the margin-top in the subsequent paragraphs style would give a space between paragraphs since there is no text indent specified, I can't see your indent and paragraph space complaint. While I prefer an indent and no space, space and no indent is a valid choice. As for removing unused or undefined code, Delete unused stylesheet selectors and cssUndefinedClasses do a decent job of cleanup.

Spoiler:
Code:
p {
    margin-bottom: 0px;
    text-indent: 0px;
    margin-top: 0px;
    text-align: justify;
}
The code I replace the body, p and p.subsq with is below:
Code:
body {
  display: block;
  font-size: 1em;
  margin: 0 0 0 0;
  padding: 0 0 0 0;
  text-indent: 0;
  widows: 1;
  orphans: 1;
}

p {
  margin: 0 0 0 0;
  padding: 0.1em 0 0 0;
  margin-block-end: 0em;
  }

p.subsq {
  text-indent: 1.25em;
}


I must thank you for bring yet another variant of Vellum stylesheets to my attention.

Edit: And just perhaps if we wish to continue this discussion, it should be moved to a new thread in a more relevant forum.
The original code is as you say. But I've edited it to put in indents and remove paragraph spaces.
JSWolf is offline   Reply With Quote