xTxT Documentation

Width Attribute

Specifies the width of the image.

In most Elements, this Attribute is optional.


Defaults to pixels if no measurement is specified.

If the Element also specifies the size Attribute, then the width Attribute will override the width portion of the size Attribute.


$width=20     // 20 pixels 
$width=20px   // 20 pixels 
$width=20em   // 20 em units
$width=100%   // 100% of the width of the containing Element