Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 11-04-2012, 09:32 AM   #1
MV64
Addict
MV64 ought to be getting tired of karma fortunes by now.MV64 ought to be getting tired of karma fortunes by now.MV64 ought to be getting tired of karma fortunes by now.MV64 ought to be getting tired of karma fortunes by now.MV64 ought to be getting tired of karma fortunes by now.MV64 ought to be getting tired of karma fortunes by now.MV64 ought to be getting tired of karma fortunes by now.MV64 ought to be getting tired of karma fortunes by now.MV64 ought to be getting tired of karma fortunes by now.MV64 ought to be getting tired of karma fortunes by now.MV64 ought to be getting tired of karma fortunes by now.
 
Posts: 267
Karma: 2000000
Join Date: Jan 2009
Device: Sony PRS-505
Picture Shows up in Sigil, Not Phone

I'm working on completing an e-book I wrote, and I included some pictures. I'm pretty new to coding, but I followed directions I found online pretty closely and things work fine in Sigil itself.

Basically, I have images resized and anchored at certain parts of some pages, and it shows up fine in Sigil. But on my phone (the first device I tested it on) the images don't show up. Neither do the captions or alternate text. There's just a blank spot (anchored correctly, just nothing there).

I found a trick online to set the size parameters of the DIV (usually I set it at 50%) and then set the picture as a percentage of the DIV.

If it helps, here is the code for one of my images (all my images have matching code, except for the file name and sizes, of course):

In the head I have:

Quote:
.img {
width:70%;
float:right;
img-align:center;
}

div.sgc-2 {font-size:80%; text-align: center}
And in the actual body I have:

Quote:
<div class="img sgc-2">
<img alt="Premier Sagasta" src="../Images/Sagasta.jpg" width="70%" /><br />
Premier Sagasta
</div>

Any help would be greatly appreciated.

EDIT: Bingo, I figured it out. For some reason either I or sigil inserted <div class="img sgc-2"> when it should have just been <div class="sgc-2">

This also fixed another issue I had with some images being resized in Sigil itself. Mods, feel free to delete this thread unless it might be useful for someone else.

Last edited by MV64; 11-04-2012 at 09:40 AM.
MV64 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sigil highlight Book View No Longer Shows in Code View Themus Sigil 4 10-04-2012 07:54 PM
Picture of Amazon Phone ucfgrad93 News 31 09-14-2012 05:54 AM
Sigil shows a blank document when importing valid HTML walter2 Sigil 15 03-25-2010 07:17 AM
Server shows column headers, but not books, when accessed via mobile phone browser Starson17 Calibre 7 12-29-2009 04:49 PM
Next hot cell phone trend: picture books? Alexander Turcic News 7 06-04-2008 04:11 PM


All times are GMT -4. The time now is 07:41 AM.


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