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

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

Continuing Creating boxes and colored highlights, this section adds background colors, borders and spacing to ePub. Open the CSS file (template.css) in an editor. First address colored highlights.

Find the character style for colored highlights in the CSS code.

span.Farbige-Auszeichnung {
   text-decoration: underline;
   color: #ffffff;
}

Add the code line background-color: #991614; with the desired hexadecimal color. Find a color’s hexadecimal code as explained under Defining hexadecimal colors.

span.Farbige-Auszeichnung {
   text-decoration: underline;
   color: #ffffff;
   background-color: #991614;
}

The colored highlights are ready; boxes remain.

  

  

 

 

 

back to top