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:
Parameter | Description | |
---|---|---|
stylename | The name of the style. | |
width | The 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. | |
height | The 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. | |
minWidth | The minimum width of the element. | |
minHeight | The minimum height of the element. | |
maxWidth | The maximum width of the element. | |
maxHeight | The 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.