Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 12-27-2024, 10:15 PM   #1
Frometa
Member
Frometa began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Dec 2022
Device: ninguno
text

How to make text tight to an .png image
Frometa is offline   Reply With Quote
Old 12-27-2024, 11:08 PM   #2
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,347
Karma: 20171571
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
If you want text close to an image like a caption:
Code:
CSS:
div.image     {margin: 2em auto; font-size:.8em; text-align:center}
div.image img {display:block; margin:0}


HTML:
<div class="image">
  <img alt="" src="yourimage.png"/>
  Whatever text you want.
</div>
If you want to have the text flow around an image, then just use the float property.
Code:
CSS:
div.image {float:left; padding:5px; width:20%}


HTML:
<div class="image">
  <img alt="" src="yourimage.png"/>
</div>

<p>Some paragraph of text.</p>

<p>Some paragraph of text.</p>

<p>Some paragraph of text.</p>
This is for basic ePub2 which should give `universal’ support. There are other, fancier, techniques for ePub3 with less support.
Turtle91 is offline   Reply With Quote
Advert
Old 12-28-2024, 10:28 PM   #3
Frometa
Member
Frometa began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Dec 2022
Device: ninguno
THANK YOU SO MUCH
Frometa is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
OCR'd PDF to EPUB/TXT/etc. not copying text over (text under image). Tenome Conversion 1 10-24-2022 10:17 AM
If you select text then apply italic, then UNDO, the text should remain selected paperback Editor 2 03-08-2022 06:26 AM
How to Copy & Paste text from Chinese text PDF? E-Books PDF 4 08-09-2014 09:22 AM
Text formatting issues when creating IDs/hyperlinking text rnuss Sigil 2 09-28-2013 06:49 AM
Need help w/very simple task: page of Word text > Kindle text I can share w/friends kearnine Conversion 1 10-17-2012 08:25 PM


All times are GMT -4. The time now is 05:03 PM.


MobileRead.com is a privately owned, operated and funded community.