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.

  

 

 

 

back to top