.inner { writing-mode: horizontal-tb; } .physical { position: absolute; top: 20px; right: 0; } .logical { position: absolute; inset-block-start: 20px; inset-inline-end: 0; }