ZVON > References > CSS2 Reference

Go to Standard
Property: text-align
Inherited: yes
Value: left | right | center | justify | <string> | inherit
Initial: depends on user agent and writing direction
Applies to: block-level elements
Media: visual
Percentages: N/A

Examples:



     <AAA>
          <BBB>
               <CCC>12.12</CCC>
               <DDD>xxxx d xxxx</DDD>
          </BBB>
          <BBB>
               <CCC>111112.12</CCC>
               <EEE>x e xxxx</EEE>
          </BBB>
          <BBB>
               <CCC>12.122222</CCC>
               <DDD>xxxxxxx d xx</DDD>
          </BBB>
     </AAA>
View
* {padding:1ex;}
AAA {display: table;}
BBB {display: table-row;}
CCC {display: table-cell; text-align: right}
DDD {display: table-cell; text-align:left}
EEE {display: table-cell; text-align:center}
CCC,DDD,EEE {border:solid}


     <AAA>
          <BBB>
               <CCC>12.12</CCC>
               <DDD>xxxx d xxxx</DDD>
          </BBB>
          <BBB>
               <CCC>111112.12</CCC>
               <EEE>x e xxxx</EEE>
          </BBB>
          <BBB>
               <CCC>12.122222</CCC>
               <DDD>xxxxxxx d xx</DDD>
          </BBB>
     </AAA>
View
* {padding:1ex;}
AAA {display: table;}
BBB {display: table-row;}
CCC {display: table-cell; text-align: "."}
DDD {display: table-cell; text-align:"d"}
EEE {display: table-cell; text-align:"e"}
CCC,DDD,EEE {border:solid}



_____________________________________________
Reference Search | Sitemap | XML Glossary       ZVON | Systinet