Size - Calaméo Knowledge Base
Not a Calaméo member yet?
Sign up now! It's FREE!
Get the latest news on Calaméo
Follow us on Facebook
Get Calaméo updates in real-time
Follow us on Twitter

Size

From Calaméo Knowledge Base

The CSML language provides many different attributes to define the width and height of an element.

Width

Attribute Description
width Defines the width of the layout boundary. Once left (or percentLeft) or right (or percentRight) is set, the width value no longer applies. If percentWidth exists when width is set, percentWidth will be overridden and be given a value of NaN. When a Layout is created for a display object, this is defined as the width of that display object.
percentWidth When set, the width of the layout will be set as the value of this property multiplied by the containing width. A value of 0 represents 0% and 1 represents 100%.
minWidth The minimum width that can be applied to the layout boundaries
maxWidth The maximum width that can be applied to the layout boundaries.

Height

Attribute Description
height Defines the height of the layout boundary. Once top (or percentTop) or bottom (or percentBottom) is set, the width value no longer applies. If percentWidth exists when width is set, percentWidth will be overridden and be given a value of NaN. When a Layout is created for a display object, this is defined as the height of that display object. The value of height itself cannot be NaN.
percentHeight When set, the height of the layout will be set as the value of this property multiplied by the containing height. A value of 0 represents 0% and 1 represents 100%.
minheight The minimum height that can be applied to the layout boundaries.
maxHeight The maximum height that can be applied to the layout boundaries.

Scope

These attributes applies to the following statement: