I have a TD/DIV with some text inside. I made so that the text is displayed in the center of TD/DIV . But I want the text to be in center using writing-mode: sideways-lr. How can I do this?
div {
width: 200px;
height: 100px;
text-align: center;
vertical-align: middle;
border: solid;
display: table-cell;
}
.side {
writing-mode: sideways-lr;
}
<div>My text</div>
<br>
<div class="side">My text</div>
