How can I draw vertical text with CSS cross-browser?
I want to rotate a single word of text by 90 degrees, with cross-browser support. How can this be done?
Gabriel F.
answered 10/30/19
Full Stack Software Developer and Mentor
Hi there. You would need to put the letter you want to rotate in a span tag and rotate that span via translate: rotate(90deg) as such:
<div><span>A</span>BCDE</div>
span {
float: left;
transform: rotate(90deg);
}
Still looking for help? Get the right answer, fast.
OR
Find an Online Tutor Now
Choose an expert and meet online.
No packages or subscriptions, pay only for the time you need.