View Single Post
Old 03-24-2019, 08:37 AM   #7
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,907
Karma: 146918083
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 Turtle91 View Post
example:

Code:
HTML:
<p>Last para before text break.</p>

<div class="TxtBrk"><img alt="" src="../Images/skull.png"></div>

<p>First para after text break.</p>


CSS:
p              {text-indent:1.2em}
div.TxtBrk     {margin:2em auto; text-align:center}
div.TxtBrk img {width:10%; max-width:100px}
div.TxtBrk + p {text-indent:0}
Where you set the actual width of the image as the max-width in pixels and the width in percentage of the screen you want the image to fill.

You can style the first paragraph after the break to look different than the normal/standard paragraph by using the div.TxtBrk + p css.

Please - only put one skull.png image in your ebook...it's amazing how many books I've seen with 200+ copies of the same image just because it is used 200+ times in the book...
That is ugly formatted code. I cannot stand CSS code that's all on one line.
JSWolf is online now   Reply With Quote