WEBWIDTH Property


wPLBCMP GUI Only, 9.9

square.png Objects

 

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

WEBWIDTH={width}

Note the following:

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

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

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

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

  5.  

    CSS Syntax:

     

    auto | length | % | initial | inherit

    Where:

    auto
    The browser calculates the width value.
    length
    Defines the width in px, cm, em, etc. (See http://www.w3schools.com/cssref/css_units.asp)
    %
    Defines the width 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:

  7.  

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

Examples:

 

Button BUTTON

.

       SETPROP Button,WEBWIDTH="100px"

       SETPROP Button,WEBWIDTH="40%"

 

 

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

 



PL/B Language Reference WEBTOP Property WEBWIDTH Property (DATATABLE)