XML technologies / ePUB / ePub für (In)Designer / Refining tables / Table structure in HTML
(Excerpt from “ePub für (In)Designer — Mit InDesign Schritt für Schritt zum E-Book” by Sascha Heck & Yves Apel)
HTML tables have roughly this structure:
<table>
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>(table = table, tbody = table body, tr = table row, td = table data)
HTML builds tables from top to bottom and left to right. InDesign styles (see Creating a table in InDesign) also appear in the CSS file.
td.tabelle-header {
}
td.tabelle-header2 {
}
td.tabelle-spalte1 {
}
td.tabelle-reihen {
}InDesign CS5 writes empty classes into CSS.
td.Tabelle-Header {
background-color: #001966;
padding-top: 0px;
padding-bottom: 0px;
padding-left: 0px;
padding-right: 0px;
}
td.Tabelle-Header2 {
background-color: #001966;
padding-top: 0px;
padding-bottom: 0px;
padding-left: 0px;
padding-right: 0px;
}
td.Tabelle-Spalte1 {
padding-top: 0px;
padding-bottom: 0px;
padding-left: 0px;
padding-right: 0px;
}
td.Tabelle-Reihen {
padding-top: 0px;
padding-bottom: 0px;
padding-left: 0px;
padding-right: 0px;
}InDesign CS5.5 writes background color and padding, the space inside cell borders, into CSS.
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