Table of Contents

O4WSizeStyle routine

Description

The style for those elements that allow for width and/or height (tables and images), specify a value followed by "px" (or nothing) for pixels, or "%" for percent.

Syntax

O4WSizeStyle(stylename, width, height)

Parameters

The function has the following parameters:

ParameterDescription
stylenameThe name of the style.
widthThe width of the element. In pixels, if a value followed by "px". In percentage of element if a value followed by "%". If a value is entered without a "px" or "%" identifier then a "px" is automatically appended.
heightThe height of the element. In pixels, if a value followed by "px". In percentage of element if a value followed by "%". If a value is entered without a "px" or "%" identifier then a "px" is automatically appended.
minWidthThe minimum width of the element.
minHeightThe minimum height of the element.
maxWidthThe maximum width of the element.
maxHeightThe maximum height of the element.

Remarks

The minWidth, minHeight, maxWidth and maxHeight parameters are not supported on all browsers. If a browser allows for the setting of the parameters then O4W will process the parameters.

Returns

Returns the size information for the specified style name.