Difference between revisions of "SHIP:Data Types:HALIGN"

From Serious Documentation
Jump to: navigation, search
Line 1: Line 1:
 
The horizontal alignment ({{Prop|boxmodel|halign}}) property of any [[SHIP:BoxModel|Box Model]] node positions a container within its parent to the left edge, center, or right edge within the inner area of the parent.
 
The horizontal alignment ({{Prop|boxmodel|halign}}) property of any [[SHIP:BoxModel|Box Model]] node positions a container within its parent to the left edge, center, or right edge within the inner area of the parent.
  
The {{DataType|HALIGN}} datatype is one of the following values:
+
<onlyinclude>The {{DataType|HALIGN}} datatype is one of the following values:
<onlyinclude>* unset - allowing inheritance from the parent or allowing the {{Prop|box|ol}}/{{Prop|box|ow}}/{{Prop|box|or}} properties to govern the horizontal positioning of the {{Node|box}}.
+
* unset - allowing inheritance from the parent or allowing the {{Prop|box|ol}}/{{Prop|box|ow}}/{{Prop|box|or}} properties to govern the horizontal positioning of the {{Node|box}}.
 
* '''NONE''' - similar to unset, but stops inheritance (unlike unset)  
 
* '''NONE''' - similar to unset, but stops inheritance (unlike unset)  
 
* '''LEFT''' - to align the {{Node|box}} to the left edge of the parent's inner area
 
* '''LEFT''' - to align the {{Node|box}} to the left edge of the parent's inner area
 
* '''CENTER''' - to center the {{Node|box}} horizontally within the parent's inner area
 
* '''CENTER''' - to center the {{Node|box}} horizontally within the parent's inner area
 
* '''RIGHT''' - to align the {{Node|box}} to the right edge of the parent's inner area</onlyinclude>
 
* '''RIGHT''' - to align the {{Node|box}} to the right edge of the parent's inner area</onlyinclude>

Revision as of 17:42, 29 January 2013

The horizontal alignment (halign) property of any Box Model node positions a container within its parent to the left edge, center, or right edge within the inner area of the parent.

The HALIGN datatype is one of the following values:

  • unset - allowing inheritance from the parent or allowing the ol/ow/or properties to govern the horizontal positioning of the box.
  • NONE - similar to unset, but stops inheritance (unlike unset)
  • LEFT - to align the box to the left edge of the parent's inner area
  • CENTER - to center the box horizontally within the parent's inner area
  • RIGHT - to align the box to the right edge of the parent's inner area