XML technologies / ePUB / ePub für (In)Designer / Images, boxes and other design elements / Wrapping text around images and boxes / Wrapping text around boxes
(Excerpt from “ePub für (In)Designer — Mit InDesign Schritt für Schritt zum E-Book” by Sascha Heck & Yves Apel)
Wrapping text around boxes uses the same steps as images, plus one manually entered code line. Images provide their own minimum width; boxes need an explicit width. Use the code width: 30%; with percentages to fill that proportion of the screen, or specify a fixed width: width: 300px;.
div.Kasten {
width: 30%;
float: left;
margin: 0.25em 2em 1em 2em;
padding: 1em;
border-width: 2px; /*Konturstärke*/
border-style: solid; /*Konturstil*/
border-color: black; /*Konturfarbe*/
background-color: #991614;
}Figure: Wrapping text around boxes.
Copyright © dpunkt.verlag GmbH 2012
You may print the online version for your private use.
Otherwise, this chapter from “ePub für (In)Designer” is subject to the same terms as the printed edition: the work and all its parts are protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
dpunkt.verlag GmbH, Wieblinger Weg 17, 69123 Heidelberg, fon 06221-14830, fax 06221-148399, hallo(at)dpunkt.de
back to top