On my website, I wanted to have some text wrap around an image, so I used the align="left"
method. But when I run it, it overlaps with the element below it.
Before I added align="left"
:
.employeeweek{
margin-left:auto;
margin-right:auto;
display:block;
width:200px;
height:200px;
}
#products{
color:green;
background-color:purple;
text-align:center;
}
<h1 style="text-align:center">EMPLOYEE OF THE WEEK</h1>
<img class="employeeweek" src="http://wewillsellyoucrap.com/employees/Butch%20Montana/butchmontana.jpeg">
<p>A truely amazing employee, Butch Montana was with team AWOL from the beinning.</p>
<!--PRODUCTS-->
<br>
<p>
<h1 id="products">OUR PRODUCTS</h1>
</p>
And after:
.employeeweek{
margin-left:auto;
margin-right:auto;
display:block;
width:200px;
height:200px;
}
#products{
color:green;
background-color:purple;
text-align:center;
}
<h1 style="text-align:center">EMPLOYEE OF THE WEEK</h1>
<img class="employeeweek" src="http://wewillsellyoucrap.com/employees/Butch%20Montana/butchmontana.jpeg" align="left">
<p>A truely amazing employee, Butch Montana was with team AWOL from the beinning.</p>
<!--PRODUCTS-->
<br>
<p>
<h1 id="products">OUR PRODUCTS</h1>
</p>
As you can see, once I added the align
attribute, the picture became lodged in the products bar. How can I fix this without messing it up too much?