View Single Post
Old 06-17-2017, 05:12 PM   #3
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,626
Karma: 23190435
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Cyberseeker View Post
My width value said "width=50%" So, whats wrong with that? Doesn't epub like percentages?
If you're working on an epub3 book you can't use image width/height percentages in HTML files. However, you can still use them in style sheets.

For example, if your image is defined as:

Code:
<img id="img1" class="half" alt="" src="../Images/image1.jpg"/>
You could scale it down with one of the following CSS rules:

Code:
#img1 {
    width: 50%;
}

img.half {
    width: 50%;
}
Doitsu is offline   Reply With Quote