View Single Post
Old 12-10-2013, 09:08 AM   #2
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,542
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Gramlin View Post
Hello, would like to ask for assistance.

I'm using this style code to get an image to float, resize to larger windows but not exceed maximum. Works exactly as I would like in Sigil and iBooks. But Calibre's reader and Readium both display no change in image size, and nearby text actually overlaps the image.

.imgfexample {
float:left;
width:15%;
min-width:40px;
max-width:80px;
}
.imgfexample img {
display: block;
width: 100%;
}

Just looking for some insight into why, and whether this is controllable across readers.
Try supressing "width: 100%" in the ".imgfexample img" selector:

Code:
.imgfexample {
    float:left;
    width:15%;
    min-width:40px;
    max-width:80px;
}

.imgfexample img {
    display: block;
    width: 100%;
}
Be carefull since several ereaders don't support the property "max-width".

Rubén
RbnJrg is offline   Reply With Quote