Enum BoxSizing

    • Enum Constant Detail

      • UNDEFINED

        public static final BoxSizing UNDEFINED
        When the box-sizing is undefined, it's up to the element client-side implementation to define how its internal the box model should be defined.
      • CONTENT_BOX

        public static final BoxSizing CONTENT_BOX
        Sets the default CSS box-sizing behavior. If you set an element's width to 100 pixels, then the element's content box will be 100 pixels wide, and the width of any border or padding will be added to the final rendered width.
      • BORDER_BOX

        public static final BoxSizing BORDER_BOX
        Tells the browser to account for any border and padding in the values you specify for an element's width and height. If you set an element's width to 100 pixels, that 100 pixels will include any border or padding you added, and the content box will shrink to absorb that extra width. This typically makes it much easier to size elements.
    • Method Detail

      • values

        public static BoxSizing[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (BoxSizing c : BoxSizing.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static BoxSizing valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null