Is it possible to get my text oriented vertically to the right with CSS, like on the image below ?
I tried the way below, but without being able to reverse the orientation:
div {
writing-mode: vertical-rl;
text-orientation: sideways;
}
<div>dimanche</div>
sideways isn't supported by all the browser. Instead you can replace it with a scale transformation
div {
writing-mode: vertical-rl;
/*text-orientation: sideways;*/
transform:scale(-1);
}
<div>dimanche</div>
rotate it by -90deg
using transform
. If you want it in the opposite direction, rotate it by 90deg
div {
background-color: #ccc;
display: inline-block;
padding: 5px;
transform: rotate(-90deg);
transform-origin: center bottom;
}
<div>dimanche</div>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With