02-26-2017, 10:59 AM | #1 |
Enthusiast
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. |
02-26-2017, 11:12 AM | #2 |
frumious Bandersnatch
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> Code:
div.figure { text-align: center; margin: 1em 0; } p.figcaption { text-indent: 0; font-size: 80%; margin-top: 0.5em; } |
Advert | |
|
03-01-2017, 06:54 AM | #3 |
mostly an observer
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. |
03-01-2017, 08:01 AM | #4 |
Fanatic
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.
|
|
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 |