This section describes the HTML output files generated by hyPub from your book source file.
Using "div" or "table" for Web Page Layouts
When you publish your book on your Website, you may want to apply a specific layout to divide the Web page display area into multiple parts.
There are two simple ways to implement Web page layouts:
Using CSS formatting properties on HTML "div" elements.
Using nested HTML "table" elements.
Using nested HTML "table" elements to implement Web page layouts seems to be more straight forward.
I have used this approach for all my books at http://www.herongyang.com.
I will explain to you how I did it in the following sections.
HTML "table" Elements
In order to use HTML "table" elements to implement Web page layouts, we need to understand a few details about the "table" elements.
1. HTML "table" elements allow you to divide a presentation area into rows and columns.
Table rows can be defined as "tr" elements inside a "table" element.
Columns in each row can be defined as "td" elements inside a "tr" element.
Here is a simple "table" element example: