ICSS2Properties.Width
ICSS2Properties.Width property
This property specifies the content width of boxes generated by block-level and replaced elements.
This property does not apply to non-replaced inline-level elements. The width of a non-replaced inline element’s boxes is that of the rendered content within them (before any relative offset of children). Recall that inline boxes flow into line boxes. The width of line boxes is given by the their containing block, but may be shorted by the presence of floats.
The width of a replaced element’s box is intrinsic and may be scaled by the user agent if the value of this property is different than ‘auto’.
Values have the following meanings:
‘length’ - Specifies a fixed width.’percentage’ - Specifies a percentage width. The percentage is calculated with respect to the width of the generated box’s containing block.auto - The width depends on the values of other properties. See the sections below.Note: Negative values for ‘width’ are illegal.
public string Width { get; set; }
Return Value
width property
See Also
- interface ICSS2Properties
- namespace Aspose.Html.Dom.Css
- assembly Aspose.HTML