Quantcast
Channel: MobileRead Forums - Kindle Formats
Viewing all articles
Browse latest Browse all 862

KF8 relative image dimensions problem

$
0
0
In my stylesheet file, if I write something like this:
Code:

img {
width:76%;
height:auto;
}

the image is scaled accordingly on both e-ink and fire devices, but if I increase the width to 77% (or more), the width is set to 100% on eink-devices.
This happens both on the previewer and on actual devices.
Have I missed something? And is there a better workaround than using @media device-width/height and setting an absolute width?

Viewing all articles
Browse latest Browse all 862

Trending Articles