View Single Post
Old 11-04-2023, 03:15 AM   #21
HeartWare
Enthusiast
HeartWare began at the beginning.
 
Posts: 27
Karma: 10
Join Date: Nov 2023
Location: Copenhagen, DK
Device: ReadEra Android, Samsung Galaxy Tab S7+, Android 13
Quote:
Originally Posted by Turtle91 View Post
<div class="image"><img src="…" alt=""/></div>

.image {width=50%; float:left}
img {width:100%; max-width: 1000px *or whatever the width of your image*}
Unfortunately, that doesn't seem to work in either Sigil or Calibre. The image occupies the full width with the text below it.

The relevant code from the xhtml is:

<html>
<head>
<link href="../Styles/Style0001.css" type="text/css" rel="stylesheet"/>
</head>

<body>
<div class="image50L"><img alt="Tropical Beach" src="../Images/Tropical%20Beach.jpg"/>Lorem ipsum ... id est laborum.</div>
</body>
</hrml>

and the stylesheet:

.image50L {width=50%; float:left}
img {width:100%; max-width: 9000px}


I have enclosed my test ePub...
Attached Files
File Type: epub Test.epub (1.75 MB, 100 views)

Last edited by HeartWare; 11-04-2023 at 03:18 AM.
HeartWare is offline   Reply With Quote