guides:o4w:o4w_api:o4wsizestyle

O4WSizeStyle routine

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.

O4WSizeStyle(stylename, width, height)

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.

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 the size information for the specified style name.

  • guides/o4w/o4w_api/o4wsizestyle.txt
  • Last modified: 2024/06/19 20:19
  • by 127.0.0.1