XML technologies / ePUB / CSS essentials / Important CSS properties / Margins and spacing
(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 margins and spacing, with possible values and examples.
Outer spacing Sets an individual outer margin. See | |
Values |
|
Example | see |
Outer spacing Sets an individual outer margin. See | |
Values |
|
Example | see |
margin | Outer spacing Sets outer margins. Possible forms: 1) One value for all sides: top, right, bottom, left 2) Two values: vertical top/bottom and horizontal right/left 3) Three values: top, horizontal sides, bottom |
Values |
|
Example |
|
Inner spacing Sets individual inner spacing. See | |
Values |
|
Example | see |
padding | Inner spacing Sets the current element’s inner spacing. Compare |
Values |
|
Example |
|
Digression: The box model
Figure: The box model for margins and spacing
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