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;
}

Wrapping text around boxes

Figure: Wrapping text around boxes.

  

 

 

 

back to top