WEBPOSITION Property


PLBCMP GUI Only, 9.9

square.png Objects

 

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

WEBPOSITION={position}

Note the following:

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

  2. The {position} is a decimal number or numeric variable..

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

  4. The allowed values are defined as follows in accordance to expected CSS positioning methods supported for an HTML element. See the following URL link for more details on CSS position property values:

  5.  

         http://www.w3schools.com/cssref/pr_class_position.asp:

     

    Character

    The CSS position property is ..

    0

    set to 'absolute' which is the default.

    1

    set to 'static' and the CSS margin is set to 'auto'.

    2

    set to 'relative'.

    3

    set to 'fixed'.

    4+

    the same as the default.

 

Examples:

 

Button BUTTON

NVAR      FORM      "2"

.

        SETPROP Button,WEBPOSITION=1

        SETPROP Button,WEBPOSITION=NVar

 

 

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

 



PL/B Language Reference WEBMODE Property WEBTOP Property