View Single Post
Old 07-07-2011, 06:08 AM   #4
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,106
Karma: 60406498
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by virtual_ink View Post
There are a few threads asking about this, but I'm yet to find an answer. I'm having the same problem. Here the code:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 //EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>cover.html</title>
<link href="template.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="cover.html" xml:lang="en-GB">
<div class="Basic-Text-Frame">
<p class="images"><img class="image" width="100%" src="images/cover.jpg" alt="cover.jpg"/></p>
</div>
</div>
</body>
</html>

My image is 523wx800h, 150px.
You did not show the applicable style sheet entries,
but you have wrapped the image in 2 divs (NB they could be combined into a single)

Width 100% is going to scale the Image wider. if the Aspect is maintained the height is going to push the border and padding out
theducks is offline   Reply With Quote