-1

I'm trying to do it using this:

.VerticalText { transform: rotate(-90deg); } 

but it's rotating the text and cell. How do I just rotate the text vertically inside the cell?

1
  • Wrap text in <span> element and rotate it. The final example would be .VerticalText span { transform: rotate(-90deg); } Commented Jul 4, 2017 at 12:36

1 Answer 1

0

You should make a div what is outside the text, and rotate that the other way.

So: If

.VerticalText { transform: rotate(-90deg); } 

and the div outside is called for example .VerticalTextWrapper

.VerticalTextWrapper { transform: rotate(90deg); } 

Hope that helps!

Sign up to request clarification or add additional context in comments.

1 Comment

If the cell is outside of the text, just rotate that of course..

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.