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

From Serious Documentation
Jump to: navigation, search
 
Line 10: Line 10:
  
 
The {{DataType|HALIGN}} datatype is one of the following values:
 
The {{DataType|HALIGN}} datatype is one of the following values:
* 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}} or {{Node|text}}
+
* unset - allowing inheritance from the parent or allowing the {{Prop|boxmodel|ol}}/{{Prop|boxmodel|ow}}/{{Prop|boxmodel|or}} properties to govern the horizontal positioning of the {{Node|box}} or {{Node|text}}
 
* '''NONE''' - similar to unset, but stops inheritance (unlike unset)  
 
* '''NONE''' - similar to unset, but stops inheritance (unlike unset)  
 
* '''LEFT''' - to align the {{Node|box}} or {{Node|text}} to the left edge of the parent's inner area
 
* '''LEFT''' - to align the {{Node|box}} or {{Node|text}} to the left edge of the parent's inner area
 
* '''CENTER''' - to center the {{Node|box}} or {{Node|text}} horizontally within the parent's inner area
 
* '''CENTER''' - to center the {{Node|box}} or {{Node|text}} horizontally within the parent's inner area
 
* '''RIGHT''' - to align the {{Node|box}} or {{Node|text}} to the right edge of the parent's inner area
 
* '''RIGHT''' - to align the {{Node|box}} or {{Node|text}} to the right edge of the parent's inner area

Latest revision as of 11:57, 31 January 2013

Data Type Description
HALIGN Horizontal alignment of a box model or text model node within its parent.

The horizontal alignment (halign) property of any box model or text model node positions a container to the left edge, horizontal 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 or text
  • NONE - similar to unset, but stops inheritance (unlike unset)
  • LEFT - to align the box or text to the left edge of the parent's inner area
  • CENTER - to center the box or text horizontally within the parent's inner area
  • RIGHT - to align the box or text to the right edge of the parent's inner area