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*/
}Figure: Box with rounded corners.
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