O4WPositionStyle routine
Description
Allows you to define a style, for those elements that allow for positioning, specifying a value for the left and top locations of the element.
Syntax
O4WPositionStyle(stylename, left, top, posType, floatType, clearType)
Parameters
The function has the following parameters:
Parameter | Description | |
---|---|---|
stylename | The name of the style. | |
left | The number of pixels from left. | |
top | The number of pixels from top. | |
posType | If the posType is set to "ABSOLUTE" then the position left/top position is absolute postion on the page. If the posType is set to "RELATIVE" or not set, the position is relative to the element's parent. | |
floatType | You can also specify a floattype in addition to, or instead of, other positioning parameters; specify 'left' or 'right' (or any valid 'float' style). Since 'floating' the element will remove it from the normal layout, to preserve the sizing of any containing section, you may create a dummy element with cleartype specified (for example, 'both') to retain the proper element flow. | |
clearType |
Returns
Returns the style information (to use immediately with a display element or input control), and (if <stylename> is not null) defines the style by the stylename for use with one or more elements and input controls.