Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html>
<html>
<meta charset="utf-8">
<style>
body>div { margin: 50px 20px; width: 100px; height: 150px; border: 5px solid blue; }
.abc { display: inline-block; border: 2px solid red; inline-size: 30px;
writing-mode: vertical-lr; position: absolute; left: 0; top: 0; }
.test { background: #aaa; position: absolute; left: 0; top: 0; width: 2em; height: 100%; }
.rel { position: relative; }
img { position: absolute; left: 0; top: 34px;
width: 30px; height: 40px; background: green; border: 5px solid yellow; }
</style>
<body>
<div class="rel">
<div class="test"><span class="abc">abc</span><img src=""></div>
</div>