I have a div and set display to flex using bootstrap 4. then I add another div into it and set position to absolute and rotate it using transform. like this:
<div class="container">
<div class="area d-flex position-relative">
<div class="title">
title
</div>
<div>
content
</div>
</div>
</div>
CSS:
.inner {
background: #f1f1f1;
}
.title {
transform: rotate(-90deg) !important;
position: absolute;
left: -20px;
top: 43px;
text-align: center;
font-size: 12px;
background-color: #000;
width: auto;
}
I set width to auto to resize width of div with absolute position auto. but in action it doesn't work. How do can I fix this problem?
I need to this:
Edited DEMO:
Demo Here
