<div>
  <p class="exampleText">Example text</p>
</div>
div {
  background-color: blue;
  width: 120px;
  height: 120px;
}
.exampleText {
  writing-mode: vertical-rl;
  margin-block-end: 50px;
  background-color: #00FF00;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.