Im trying to achieve something like this
I need to display some text and an image in two halves like shown in the above image. Tried to use clip-path ,but the text content is not wrapped and have issues with alignment too.
My code:
.clipped-text{
width: 250px; height: 250px;
background: #1e90ff;
clip-path: polygon(0 100%, 100% 100%, 0 0);
text-align: justify;
position: absolute;
}
.clipped-image{
width: 250px; height: 250px;
background: #1e90ff;
clip-path: polygon(100% 100%, 100% 0, 0 0);
text-align: justify;
position: absolute;
}
<div>
<img class="clipped-image" src="https://homepages.cae.wisc.edu/~ece533/images/arctichare.png"/>
<p class="clipped-text">
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
</p>
</div>