Terminal document Object Model
Version #1
Features
-
Long lines are wrapped to fit within the Element.
-
Lines can be justified within the element: right, center, or left justification.
-
Borders can be added to elements
-
Both
padding
andmargin
can be set per element. -
Properties are inherited from parent elements
-
margin: 'auto'
can be used to center fixed sized element within the document. -
width: new Percent(50)
will calculate the element width based on the parent’s width.
Supported
inline properties
:width |
{ |
margin |
{ |
padding |
{ |
border |
{ |
text-align |
{ |
ch
|
character absolute units |
%
|
percent relative units |
?
|
inherited units |