width Width

Used in two instances:
  • In tables, to provide the horizontal dimensions of a column, or
  • On <imagedata>, to control the size of the image in display.

Usage/Remarks

In keeping with Docbook, this attribute designates the width of an image (or table cells) in the rendering device (the browser), expressed either as an absolute size (in pixels) or relatively, as a percentage of available space.
When this attribute is not provided, an image will be displayed at its native resolution. Only larger images (more than about 800 pixels wide) need to be scaled down using this attribute. It is recommended that percentage values be given.
OPTIONAL on elements: <col>, <colgroup>, <imagedata>
Value Meaning
A number Width of a table column or image in display.
Restriction This attribute may be specified if the element is used.
Tagged Sample

Image display resized to 50% of available space

...
<section xml:id="mul4-1">
  <title>Gourds</title>
  <para>The native people grew a variety of large broad-leafed, ground-covering vines 
    which produced what they called <quote>macocqwer</quote> or gourds. (<emphasis 
    role="ital">See</emphasis> <xref linkend="mul-fig1"/>.) ...</para>
  <figure xml:id="mul-fig1">
    <title>Gourds</title>
    <mediaobject>
      <imageobject>
        <imagedata format="jpg" fileref="19450212-2.jpg" width="50%"/>
      </imageobject>
    </mediaobject>
    ...
  </figure>
  ...
</section>
...