YOU ARE VIEWING DOCUMENTATION FOR ioL v.1. Click here for documentation for older v.0.9x versions of ioL.
ioL

Programming manual (doc.iol.science)



top = ...

Distance from the top edge of the markup element to the bottom edge of its container or anchor-point.

The behaviour of this field is affected by the setting of the inline field.

By setting both the top and bottom field values at the same time when inline=false, it can be possible to regulate the height of a box or other markup tag in terms of the size of its container element.

Specifying a distance value for this field

This field takes a distance value specified with either one or two value elements.

If the units are not specified, the distance is interpreted in pixels {px} by default.

Example

<box top = 5>         <! specifies 5 pixels as the value for the top property. !>
<box top = 5,{px}>    <! 5 pixels; explicitly stated !>
<box top = 20,{%}>    <! percentage units !>
<box top = 12,{pt}>   <! typesetting point units !>
<box top = 1.2,{em}>  <! multiple of current font size !>