View Single Post
Old 02-07-2024, 05:57 AM   #4
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,997
Karma: 147448039
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 paperwhite13 View Post
Do you mean it doesn’t need to exist at all or should it be placed elsewhere?
The text-indent is the only code that's to be kept.


Quote:
Do you have an example? (Not the code, but an actual, newer title from a major publisher, so we can look it up and inspect it ourselves.)
As you can see, there is a lot of code bloat in the original CSS.

Here is the original CSS
Code:
img#cover_image:only-of-type { /*overrides the previous setting, but only in newer systems that support CSS3 */
    height: 99vh;
}
body.cover {
	margin-top: 0px;
	margin-left: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	text-align: center;
	background-color:#000000;
}
a{
	text-decoration: underline;
	display: inline;
}
div.cover {
	text-align: center;
}
/* added styles by EK*/
li {
	list-style-type:none;
}
p.TNI {
	font-size:0.92em;
	font-style:normal;
	font-weight:normal;
	margin-bottom:0em;
	margin-left:0em;
	margin-right:0em;
	margin-top:0em;
	text-align:justify;
	text-decoration:none;
	text-indent:0em;
}
p.LINESPACE {
	font-weight: normal;
	font-style: normal;
	font-size: 100%;
}
li.TOC {
	font-size:0.92em;
	font-style:normal;
	font-weight:normal;
	margin-bottom:0em;
	margin-left:0em;
	margin-right:0em;
	margin-top:0em;
	text-align:center;
	text-decoration:none;
	text-indent:0em;
}
figure.IMG {
	display: block;
	margin-bottom: 1em;
	margin-top: 1em;
	text-indent: 0em;
	margin-right: 0em;
	margin-left: 0em;
	text-align: center;
}
img.img90 {
	width:90%;
}
img.img40 {
	width:40%;
}
body {
	line-height: 1.25;
}
p.ACH {
	font-size:1.333em;
	font-style:normal;
	font-weight:normal;
	margin-bottom:1em;
	margin-left:0em;
	margin-right:0em;
	margin-top:5em;
	text-align:center;
	text-decoration:none;
	text-indent:0em;
}
p.ACL {
	font-size:0.833em;
	font-style:normal;
	font-weight:normal;
	margin-bottom:0em;
	margin-left:0em;
	margin-right:0em;
	margin-top:0em;
	text-align:center;
	text-decoration:none;
	text-indent:0em;
}

p.ACL2 {
	font-size:0.833em;
	font-style:normal;
	font-weight:normal;
	margin-bottom:0.8em;
	margin-left:0em;
	margin-right:0em;
	margin-top:0em;
	text-align:center;
	text-decoration:none;
	text-indent:0em;
}
p.ACUL {
	font-size:0.75em;
	font-style:normal;
	font-weight:normal;
	margin-bottom:0.50em;
	margin-left:0em;
	margin-right:0em;
	margin-top:0em;
	text-align:center;
	text-decoration:none;
	text-indent:0em;
}

h1.CN {
	font-size:1.8em;
	font-style:normal;
	font-weight:normal;
	margin-bottom:2em;
	margin-left:0em;
	margin-right:0em;
	margin-top:5em;
	text-align:center;
	text-decoration:none;
	text-indent:0em;
}
p.CO {
	font-size:0.917em;
	font-style:normal;
	font-weight:normal;
	margin-bottom:0em;
	margin-left:0em;
	margin-right:0em;
	margin-top:120px;
	text-align:justify;
	text-decoration:none;
	text-indent:0em;
}
p.COMP {
	font-size:0.833em;
	font-style:normal;
	font-weight:normal;
	margin-bottom:0em;
	margin-left:2.4em;
	margin-right:2.4em;
	margin-top:0em;
	text-align:left;
	text-decoration:none;
	text-indent:0.6em;
}
p.COMPF {
	font-size:0.833em;
	font-style:normal;
	font-weight:normal;
	margin-bottom:0em;
	margin-left:2.4em;
	margin-right:2.4em;
	margin-top:16px;
	text-align:left;
	text-decoration:none;
	text-indent:0.6em;
}
p.COMPL {
	font-size:0.833em;
	font-style:normal;
	font-weight:normal;
	margin-bottom:16px;
	margin-left:2.4em;
	margin-right:2.4em;
	margin-top:0em;
	text-align:left;
	text-decoration:none;
	text-indent:0.6em;
}
p.CRT {
	font-size:0.75em;
	font-style:normal;
	font-weight:normal;
	margin-bottom:0em;
	margin-left:0em;
	margin-right:0em;
	margin-top:1em;
	text-align:center;
	text-decoration:none;
	text-indent:0em;
}
p.CUST {
	font-size:1.167em;
	font-style:normal;
	font-weight:normal;
	margin-bottom:1em;
	margin-left:0em;
	margin-right:0em;
	margin-top:1em;
	text-align:center;
	text-decoration:none;
	text-indent:0em;
}
p.CUSTF {
	font-size:1.167em;
	font-style:normal;
	font-weight:normal;
	margin-bottom:0em;
	margin-left:1.2em;
	margin-right:1.2em;
	margin-top:16px;
	text-align:center;
	text-decoration:none;
	text-indent:0em;
}
p.CUSTL {
	font-size:1.167em;
	font-style:normal;
	font-weight:normal;
	margin-bottom:16px;
	margin-left:1.2em;
	margin-right:1.2em;
	margin-top:0em;
	text-align:center;
	text-decoration:none;
	text-indent:0em;
}
p.DISP {
	font-size:0.917em;
	font-style:italic;
	font-weight:normal;
	margin-bottom:16px;
	margin-left:1.2em;
	margin-right:1.2em;
	margin-top:16px;
	text-align:left;
	text-decoration:none;
	text-indent:0em;
}
p.EPI {
	font-size:0.833em;
	font-style:normal;
	font-weight:normal;
	margin-bottom:0em;
	margin-left:0em;
	margin-right:0em;
	margin-top:0em;
	text-align:center;
	text-decoration:none;
	text-indent:0em;
}
p.EPIF {
	font-size:0.917em;
	font-style:normal;
	font-weight:normal;
	margin-bottom:0em;
	margin-left:0em;
	margin-right:0em;
	margin-top:7em;
	text-align:center;
	text-decoration:none;
	text-indent:0em;
}
p.EPISC {
	font-size:0.75em;
	font-style:normal;
	font-weight:normal;
	margin-bottom:0em;
	margin-left:0em;
	margin-right:0em;
	margin-top:0em;
	text-align:center;
	text-decoration:none;
	text-indent:0em;
}
p.EX1 {
	font-family:serif;
	font-size:0.917em;
	font-style:normal;
	font-weight:normal;
	margin-bottom:16px;
	margin-left:2.4em;
	margin-right:2.4em;
	margin-top:16px;
	text-align:center;
	text-decoration:none;
	text-indent:0em;
}
p.SB1 {
	font-size:0.917em;
	font-style:normal;
	font-weight:normal;
	margin-bottom:0em;
	margin-left:0em;
	margin-right:0em;
	margin-top:0em;
	text-align:justify;
	text-decoration:none;
	text-indent:0em;
}
p.TMG {
	font-size:0.917em;
	font-style:normal;
	font-weight:normal;
	margin-bottom:8px;
	margin-left:2.4em;
	margin-right:2.4em;
	margin-top:8px;
	text-align:left;
	text-decoration:none;
	text-indent:0em;
}
p.TMGF {
	font-size:0.917em;
	font-style:normal;
	font-weight:normal;
	margin-bottom:8px;
	margin-left:2.4em;
	margin-right:2.4em;
	margin-top:8px;
	text-align:left;
	text-decoration:none;
	text-indent:0em;
}
p.TMGL {
	font-size:0.917em;
	font-style:normal;
	font-weight:normal;
	margin-bottom:8px;
	margin-left:3.6em;
	margin-right:3.6em;
	margin-top:8px;
	text-align:left;
	text-decoration:none;
	text-indent:0em;
}
p.TX {
	font-size:0.917em;
	font-style:normal;
	font-weight:normal;
	margin-bottom:0em;
	margin-left:0em;
	margin-right:0em;
	margin-top:0em;
	text-align:justify;
	text-decoration:none;
	text-indent:1.2em;
}
span.eSANS_Arial_MT_Std_Regular_11 {
	font-style:normal;
	font-weight:normal;
}
span.eSANS_Bernhard_Modern_Std_Roman_11 {
	font-style:normal;
	font-weight:normal;
}
span.eSANS_Helvetica_Neue_LT_Std_55_Roman_SC_11 {
	font-family:serif;
	font-size:85%;
	font-style:normal;
	font-weight:normal;
}
p.ATA {
	font-size:0.917em;
	font-style:normal;
	font-weight:normal;
	margin-bottom:0em;
	margin-left:0em;
	margin-right:0em;
	margin-top:0em;
	text-align:justify;
	text-decoration:none;
	text-indent:0em;
}
h1.ATAH {
	font-size:1.5em;
	font-style:normal;
	font-weight:normal;
	margin-bottom:2em;
	margin-left:0em;
	margin-right:0em;
	margin-top:5em;
	text-align:center;
	text-decoration:none;
	text-indent:0em;
}
ul {
    padding-left: 0em;
    margin-left: 0em;
}
small {
    font-size: 85%;
}
blockquote {
    margin: 0em 0em 0em 0em;
}
sup {
    vertical-align: super;
    font-size: 0.65em;
    vertical-align: 35%;
}
sub {
    vertical-align: sub;
    font-size: 0.65em;
    vertical-align: -21%;
}
ol.toc {
    padding-top : 0em;
    padding-right: 0em;
    padding-bottom : 0em;
    padding-left : 0em;
    margin-top : 0em;
    margin-right : 0em;
    margin-bottom : 0em;
    margin-left : 0em;
    list-style-type : none;
}
hr.transition {
	background: url('../images/asterisks.jpg') no-repeat center;
	height: 1em;
	border: none;
	margin: 1em 0em 0.5em 0em;
}
ol.none
{
	list-style-type:none;
}

li.TOC-BOT {
	font-size:0.92em;
	font-style:normal;
	font-weight:normal;
	margin-bottom:1em;
	margin-left:0em;
	margin-right:0em;
	margin-top:0em;
	text-align:center;
	text-decoration:none;
	text-indent:0em;
}

h1.FMH {
	font-size:1.5em;
	font-style:normal;
	font-weight:normal;
	margin-bottom:2em;
	margin-left:0em;
	margin-right:0em;
	margin-top:5em;
	text-align:center;
	text-decoration:none;
	text-indent:0em;
}

p.ASCH {
	font-size:1.333em;
	font-style:normal;
	font-weight:normal;
	margin-bottom:1em;
	margin-left:0em;
	margin-right:0em;
	margin-top:2em;
	text-align:center;
	text-decoration:none;
	text-indent:0em;
}

p.CRT-TOP {
	font-size:0.75em;
	font-style:normal;
	font-weight:normal;
	margin-bottom:0em;
	margin-left:0em;
	margin-right:0em;
	margin-top:5em;
	text-align:center;
	text-decoration:none;
	text-indent:0em;
}

p.CRT1 {
	font-size:0.75em;
	font-style:normal;
	font-weight:normal;
	margin-bottom:0em;
	margin-left:2em;
	margin-right:0em;
	margin-top:0em;
	text-align:left;
	text-decoration:none;
	text-indent:-1em;
}

p.CRT11 {
	font-size:0.75em;
	font-style:normal;
	font-weight:normal;
	margin-bottom:0em;
	margin-left:2em;
	margin-right:0em;
	margin-top:1em;
	text-align:left;
	text-decoration:none;
	text-indent:-1em;
}

p.EPIFS {
	font-size:0.917em;
	font-style:normal;
	font-weight:normal;
	margin-bottom:0em;
	margin-left:0em;
	margin-right:0em;
	margin-top:1em;
	text-align:center;
	text-decoration:none;
	text-indent:0em;
}


p.fut_tit {
	display: block;
	text-align: center;
	text-indent: 0em;
	margin-top: 0em;
	margin-bottom: 0em;
	margin-left: 0em;
	margin-right: 0em;
}
p.fut_toc {
	font-weight: normal;
	font-style: normal;
	font-size: 0.90em;
	text-decoration: none;
	font-variant: normal;
	text-indent: 0em;
	text-align: center;
	margin: 0em 0em 0em 0em;
}
p.fut_toc1 {
	font-weight: normal;
	font-style: normal;
	font-size: 0.90em;
	text-decoration: none;
	font-variant: normal;
	text-indent: 0em;
	text-align: center;
	margin: 0em 0em 1.50em 0em;
}
p.fut_logo {
	font-weight: normal;
	font-style: normal;
	font-size: 1.31em;
	text-decoration: none;
	font-variant: normal;
	text-indent: 0em;
	text-align: center;
	margin: 1.20em 0em 1.20em 0em;
}


img.epub {
	display: inline;
	width: 7em;
}
img.epub1 {
	display: inline;
	width: 2.35em;
}

img.sign-up {
	display: none;
}
img.fb {
	display: none;
}
@media amzn-kf8 {
	img.epub {
		display: none;
	}
img.epub1 {
	display: none;
}
	img.sign-up {
		width: 3.5em;
		display: inline;
	}
	img.fb {
		width: 1em;
		display: inline;
	}
}
@media amzn-mobi {
	img.epub {
		display: none;
	}

img.epub1 {
	display: none;
}
	img.sign-up {
		width: 3.5em;
		display: inline;
	}
	img.fb {
		width: 1em;
		display: inline;
	}
	sup {
		vertical-align: super;
		font-size: 0.65em;
	}
	sub {
		vertical-align: sub;
		font-size: 0.65em;
	}
}
Here is the edited CSS
Code:
blockquote {
  margin-top: 0.8em;
  margin-right: 1.5em;
  margin-bottom: 0.8em;
  margin-left: 1.5em;
}
body {
  widows: 1;
  orphans: 1;
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;
  text-align: justify;
}
h2, .IMG {
  text-align: center;
  text-indent: 0;
  margin-top: 0.8em;
  margin-bottom: 0.8em;
}
hr {
  margin-top: 0.9em;
  margin-right: 40%;
  margin-bottom: 0.9em;
  margin-left: 40%;
  border-top: 2px solid;
}
img {
  max-height: 100%;
  max-width: 100%;
}
p {
  margin-top: 0;
  margin-bottom: 0;
  widows: 1;
  orphans: 1;
  text-indent: 1.2em;
}
.cover {
  text-align: center;
  text-indent: 0;
  height: 100%;
}
.smaller {
  font-size: 85%;
}
.TMG, .TMGL {
  font-family: sans-serif;
  margin-bottom: 8px;
  margin-top: 8px;
  text-indent: 0;
}
img.epub1 {
  display: inline;
  width: 2.35em;
}
img.fb {
  display: none;
}
img.img40 {
  width: 40%;
}
p.CO {
  text-indent: 0;
}
p.COMP {
  text-indent: 0.6em;
}
p.CRT {
  font-size: small;
  margin-top: 0.8em;
  text-align: center;
  text-indent: 0;
}
p.CRT1 {
  font-size: small;
  margin-left: 2em;
  text-indent: -1em;
}
p.CRT11 {
  font-size: small;
  margin-left: 2em;
  margin-top: 0.8em;
  text-indent: -1em;
}
p.CUST {
  font-size: 1.167em;
  text-align: center;
  text-indent: 0;
}
p.DISP {
  font-style: italic;
  text-indent: 0;
}
p.EPI {
  font-size: small;
  text-align: center;
  text-indent: 0;
}
p.EPIF {
  margin-top: 3em;
  text-align: center;
  text-indent: 0;
}
p.EPIFS {
  margin-top: 1em;
  text-align: center;
  text-indent: 0;
}
p.EPISC {
  font-size: 0.8333em;
  text-align: center;
  text-indent: 0;
}
p.EX1 {
  text-align: center;
  text-indent: 0;
}
p.fut_logo {
  text-indent: 0;
  text-align: center;
  margin-top: 0.8em;
}
JSWolf is offline   Reply With Quote