[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Setting alignment of mediaobject in html5
Hi Dave,
The HTML5 stylesheets make use of almost all the
stylesheet params that are defined for the stock html outputs, in order to
support all of the stock features and options. In this case, there is a
param named 'make.graphic.viewport', which is set to 1 by default. To make
a viewport, the stylesheet uses a table. Set that param to zero to turn
off the table.
The strange thing is that when the table is
included, the style tag on the surrounding div element should still center
it:
<div style="text-align: center; "
class="mediaobject">
<table style="border: 0; border-spacing:
0; padding: 0; width: 300; ">
<tr>
<td
style="text-align: center; ">
<img
style="text-align: middle; width: 200; " src=""/>
</td>
</tr>
</table>
If I hardcode the center property with an align
attribute <div align="center"> instead of a CSS style, then the table
is centered. That doesn't seem right to me.
|
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]