I am trying to create a web page with a large number of div elements whose positions and sizes are created separately. Then I want to insert text into these elements, so I use JS to put text in innerHTML. Is there a way here that I can only rotate the text 90 degrees (and not the div, since I don't want to change the position and orientation of the div elements?
I tried -webkit-transform: rotate (-90deg); -moz-transform: rotate (-90deg); in CSS, but they all rotate the div itself, not just the text.
Any idea if possible.
Thanks!
Devang
source share