WEBTOP Property


PLBCMP GUI Only, 9.9

square.png Objects

 

The WEBTOP property specifies the top property applied to the HTML element rendered at the client browser by the PL\B Web Server. The property uses the following format:

WEBTOP={top}

Note the following:

  1. WEBTOP may be used in CREATE, SETPROP or GETPROP statements.

  2. The {top} value is a case sensitive string.

  3. This property is only available when using the PL/B Web Server.

  4. The WEBTOP value allows the PLB program to specify the top property with values consistent with CSS syntax format as:

  5.  

    CSS Syntax:

     

    auto | length | % | initial | inherit

    Where:

    auto
    The browser calculates the top value.
    length
    Defines the top in px, cm, em, etc. (See http://www.w3schools.com/cssref/css_units.asp)
    %
    Defines the top as percent of the parent container object.
    initial
    Sets this property to its default value.
    inherit
    Inherits this property from its parent container element.

     

  6. See this link for more details on the CSS width description: http://www.w3schools.com/cssref/pr_pos_width.asp

Examples:

 

Button BUTTON

.

       SETPROP Button,WEBTOP="60px"

       SETPROP Button,WEBTOP="25%"

 

 

See Also: Object Properties, Object IO Instructions, Object Definitions

 



PL/B Language Reference WEBPOSITION Property WEBWIDTH Property