css rotate text to be sideways code example
Example 1: rotate text css
.text {
/* Browsers not below */
transform: rotate(-90deg);
/* Safari */
-webkit-transform: rotate(-90deg);
/* Firefox */
-moz-transform: rotate(-90deg);
/* Opera */
-o-transform: rotate(-90deg);
/* IE */
-ms-transform: rotate(-90deg);
}
Example 2: vertcial text css
p {
writing-mode: vertical-rl;
text-orientation: upright;
}