View Single Post
Old 11-20-2016, 11:38 AM   #1
simon5586
Junior Member
simon5586 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Dec 2013
Device: Kindle Fire
Kindle images not fitting

Hi, I'm sure you've had this question a million times, but could anyone help me to get the images in an epub to fit full page?

I've tried lots of different things like using width: 100% and max-width: 100%, but the images still have a large white margin around them when I convert the epub in Kindle Previewer.

Here is the code I am using:

body, div, dl, dt, dd, h1, h2, h3, h4, h5, h6, p, pre, code, blockquote {
margin:0;
padding:0;
border-width:0;
}
td, th {
border-style:solid;
border-width:1px;
}
table {
border-collapse:collapse;
}
body {
-epub-hyphens:auto;
-webkit-hyphens:auto;
}
@page {
margin: 0px 0px 0px 0px;
}
img._idGenPageitem-1 {
margin: 0px 0px 0px 0px;
}
div._idGenPageitem-2 {
text-align: center;
max-width: 100px;
margin: 0px 0px 0px 0px;
}

Attachment 153119

Thanks
Simon
simon5586 is offline   Reply With Quote