I'd like to hear from you how best to do these types of text alignment as in the example (vertical alignment, with letters up, " vertically straight ". with the border of a DIV pie)
Using the text-orientation
, writing-mode
, and transform
properties you can get the result you want. Except for transform
these are recent specifications , perhaps not having support for older versions of browsers.
Note :
These attributes in some browsers make it necessary to use the vendor (prefix).
Example : -webkit-text-orientation: upright;
.
See working here at jsfiddle .
Reference: MDN - text-orientation
Reference: MDN - writing-mode
Reference: MDN-transform
Reference: MDN - Vendors / Prefixes