XML technologies / ePUB / ePub für (In)Designer / Images, boxes and other design elements / Finishing boxes and colored highlights / Rounded corners

(Excerpt from “ePub für (In)Designer — Mit InDesign Schritt für Schritt zum E-Book” by Sascha Heck & Yves Apel)

Rounded corners are possible too, but defined only by the forthcoming, not yet official CSS3 standard. Browser coding is not yet uniform and only a few e-readers support them. Add the code now to prepare the e-book for the future.

div.Kasten {
  margin: 1em 2em 1em 2em;
  padding: 1em;
  border-width: 2px; /*Konturstärke*/
  border-style: solid; /*Konturstil*/
  border-color: black; /*Konturfarbe*/
  background-color: #991614;
  border-radius: 10px 10px 10px 10px; /*Ist als allgemeiner Code vorgesehen*/
  -moz-border-radius: 10px 10px 10px 10px; /*Code für Mozilla Firefox*/
  -webkit-border-radius: 10px 10px 10px 10px; /*Code für Apple Safari, iBooks, ...*/
  -o-border-radius: 10px 10px 10px 10px; /*Code für Opera*/
}

Box with rounded corners

Figure: Box with rounded corners.

  

 

 

 

back to top