View Single Post
Old 12-29-2015, 12:31 PM   #7
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,837
Karma: 6120478
Join Date: Nov 2009
Device: many
Depending on what version of epubcheck you are using width is not longer a legal attribute on a table td tag. Instead the spec calls for using css either as inline styes or in an external css file.

Here is one approach to fixing this by example:
Code:
<table width="100%">
  <tr>
    <td width="80%">Foo</td>
    <td width="20%">Bar</td>
  </tr>
</table>
The width attribute is no longer present in HTML5. Use CSS instead:

Code:
<table style="width:100%;">
  <tr>
    <td style="width:80%;">Foo</td>
    <td style="width:20%;">Bar</td>
  </tr>
</table>
Similar things are true for align attributes on a p-tag.

The correct way to handle this for html5 is:

Code:
<p style="text-align:right">
This way of handling it is correct for all html4 and 5.

Last edited by KevinH; 12-29-2015 at 12:37 PM.
KevinH is online now   Reply With Quote