View Single Post
Old 04-12-2022, 12:58 PM   #3
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,368
Karma: 20212733
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
A text file doesn’t really have any formatting, or ‘styling’, information. In an ePub you need to provide the styling using a style sheet. CSS (cascading style sheet) contains all the styling information for your book which makes it all pretty when you link it to the html files.

Your code should look something like this:

<p>This is a normal paragraph.</p>
<p>This is a normal paragraph.</p>
<div class=“image”><img alt=“” src=“../Images/touring.jpg”/></div>
<p>This is a normal paragraph.</p>
<p>This is a normal paragraph.</p>

With a styles.css something like this:

p {margin:0; text-indent:1.2em; text-align:left}
div.image {margin:2em auto; width:50%}
Turtle91 is offline   Reply With Quote