View Single Post
Old 09-03-2020, 10:57 AM   #4
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,361
Karma: 20212223
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
I concur 100% !

There is no real reason to use <div> tags when defining a normal paragraph - just use a paragraph tag:

Code:
Change:
<div id="box3_539" class="para-normal-local4"><span class="char-normal-local2">yadda yadda yadda.</span></div>

<div id="box3_540" class="para-normal-local4"><span style="font-family: 'Times New Roman', 
TimesNewRomanPSMT, Times, serif; font-size: 0.77419em; line-height:1.2;">yadda yadda yadda.</span></div>

To:
CSS: 
p {font-family: serif}

HTML:
<p id="box3_539">yadda yadda yadda</p>
<p id="box3_540">yadda yadda yadda</p>
You could even lose the id tags unless there is some very compelling reason that you need to identify each paragraph independently??

Having all those inline styling, and classes saying "this is a normal paragraph" (instead of just using a normal paragraph tag) really bloats up your code and makes it much more complex than it needs to be.

It is much easier to have your styling in a centralized location (like a style sheet) where you can make changes to a single location and have it apply to your entire book...instead of having to update every paragraph every time.

There are definitely good arguments saying you shouldn't define the font, font-size, line-height, paragraph indents, etc. and you should leave that up to the users/readers to select in their own app/device...but that is your choice.

A couple good regex search and replace can fix your entire book very quickly.
Turtle91 is offline   Reply With Quote