I've tried setting float:left
for the image and float:right
for the text, but the image is still overlapping the text.
What I really want is for the text to wrap around the image - to be on the right side of the image at the beginning and below the image later on.
#intro_page p{
line-height: 27px;
float: right;
}
#intro_main_text{
float: right;
}
.intro_pic1{
float: left;
clear: left;
position: absolute;
}
<div id="intro_page" class="unseen">
<div id="intro_page_content">
<p id="intro_main_text" > Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea ... </p>
<figure class="intro_pic1">
<img src="http://sample.com/images/freeproductsamples.jpg" alt="Sample" height="250" />
<figcaption>Sample Image 2015</figcaption>
</figure>
</div>
</div>