I would like to rotate the text element into a DIV, however, after the text rotates my collapsing div, as if it were empty. Is there a css trick for my DIV to still surround my inner element?
this is what my code looks like:
li { border: 1px solid black; list-style-type: none; } p { display: inline-block; transform-origin: right bottom; transform: rotate(270deg); }
<li> <div> <p>Some Text</p> </div> </li> <li> <div> <p>Some Text</p> </div> </li>
Peter source share