Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 02-26-2017, 10:59 AM   #1
apoiata
Enthusiast
apoiata began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Feb 2017
Device: none
Pictures in eBook.

What is the best way to format pictures?

I use this code

<figure>
<img src="../Images/image002.jpg" alt="links/menashe.jpg"/>
<figcaption>Menashe people with Rabbi Avichail (right)</figcaption>
</figure>

but I think figure-tag isn't acceptable in epub2 format.
apoiata is offline   Reply With Quote
Old 02-26-2017, 11:12 AM   #2
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,515
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
No, and that alt attribute is garbage. The content of the alt attribute is supposed to be some text to display (or read aloud) when whe image cannot be displayed. A safe and often the best option is to just leave it empty, so:

Code:
<div class="figure">
<img src="../Images/image002.jpg" alt=""/>
<p class="figcaption">Menashe people with Rabbi Avichail (right)</p>
</div>
and style div.figure and p.figcaption as you wish with CSS, for example:

Code:
div.figure {
  text-align: center;
  margin: 1em 0;
}
p.figcaption {
  text-indent: 0;
  font-size: 80%;
  margin-top: 0.5em;
}
Jellby is offline   Reply With Quote
Advert
Old 03-01-2017, 06:54 AM   #3
Notjohn
mostly an observer
Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.
 
Posts: 1,515
Karma: 987654
Join Date: Dec 2012
Device: Kindle
My style for images:

div.image {
text-align:center;
margin-bottom: 0.25em;
}

For captions:

div.caption {
margin-bottom: 1em;
text-align:center;
font-style:italic;
}

A typical image page:

<div class="image" id="disc">
<img alt="Sony Data Discman" src="../Images/discman.jpg" width="100%"/>
</div>

The "alt" is primarily for sight-impaired readers using a device with read-aloud feature. It is polite to say what's in an image.

I try to avoid captions, preferring to put the information in the preceding paragraph.
Notjohn is offline   Reply With Quote
Old 03-01-2017, 08:01 AM   #4
fbrzvnrnd
Fanatic
fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.
 
Posts: 554
Karma: 400004
Join Date: Feb 2009
Device: ONYX M96
Actually I prefer to give to the img the 100% of the parent, and use a % for the div container, using the margin-left/right to adjust the align.
fbrzvnrnd is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ebook for Kindle with pictures/graphics??? arash84 Amazon Kindle 15 08-30-2012 03:57 AM
Is there an easy way to add pictures to an ebook? ficbot General Discussions 3 02-18-2011 03:44 PM
Ebook from PDF with pictures Maere Workshop 0 12-02-2009 12:12 PM
ebook - with or without pictures ? NASCARaddicted Workshop 22 06-01-2009 06:04 PM
Does eBook includes pictures? liems Sony Reader 2 10-30-2006 03:14 PM


All times are GMT -4. The time now is 05:51 AM.


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