XML technologies / ePUB / CSS essentials / Important CSS properties / Background
(Excerpt from “E-Books mit ePUB ─ Von Word zum E-Book mit XML” by Dr. Victor Wang)
The table lists the main CSS properties for backgrounds, with possible values and an example each.
Background image Defines a background image. Depending on its size, it repeats automatically if small, or is only partially displayed. | |
Values |
|
Example |
|
background-color | Background color Defines the element’s background color using RGB values or the 16 color names. |
Values |
|
Example |
|
background | Background formatting Compact notation for the |
Values |
|
Example |
|
background-position | Background image position Only in combination with 1) 2) 3) 4) 5) |
Values |
|
Example |
|
Watermark effect Adds a background image that can act like a watermark. With the value | |
Values |
|
Example |
|
Background image repetition Only in combination with 1) 2) 3) 4) | |
Values |
|
Example |
|
Copyright © mitp 2011
You may print the online version for your private use.
Otherwise, this chapter from “E-Books mit ePUB” 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.
Verlagsgruppe Hüthig Jehle Rehm GmbH, Im Weiher 10, 69121 Heidelberg, kundenbetreuung(at)hjr-verlag.de
back to top