<div class="hoge">
<p>50vminでwidthを指定</p>
</div>
.hoge {
width: 50vmin;
background: #aaa;
}
View Compiled
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.