I'm trying to achieve a unique layout where the heading is rotated with CSS transform rotation, and I want the body text to flow around the rotated text.
The issue I'm facing is that when I apply float: left
to the heading, the text wraps around the unrotated heading first before it actually rotates, causing overlap in the text.
Currently, here is an example of how my system is set up:
<html>
<h1 style="transform: rotate(-60deg); float:left">
Test Heading
</h1>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris diam metus, mollis eu purus vitae, semper fermentum nunc. Phasellus nec iaculis sem, in imperdiet eros. Maecenas ligula nibh, elementum in felis eget, vehicula faucibus nibh. Morbi rhoncus vehicula feugiat. Pellentesque vitae lobortis arcu. Nullam vel mi elementum mi feugiat vehicula. Cras tincidunt purus dolor, eleifend aliquet velit ornare tristique. Maecenas lobortis tristique est, sed facilisis lectus pulvinar vestibulum. Nunc tristique tellus non facilisis elementum. Nam lobortis in velit non tempus. Phasellus lobortis vel neque non iaculis. Praesent tristique risus a gravida imperdiet. Quisque fringilla, massa quis placerat congue, nulla velit varius nisi, vel fermentum tortor velit ut nibh.
</p>
</html>
Here is a goal behavior screenshot for reference: https://i.sstatic.net/O9yR8.png