I am trying to get an image to appear in the top right corner of a div, with text first to the left of the image, and then when the image ends, the text should take up the full width of the div.
This is currently what is output:
This is the html:
<div>
<img src="./images/gym.jpeg" class="pic2"/>
slasdfkasjhdfkjasdhfkjlasdhfkjlashdfkjlshdKL
slasdfkasjhdfkjasdhfkjlasdhfkjlashdfkjlshdKL
slasdfkasjhdfkjasdhfkjlasdhfkjlashdfkjlshdKL
slasdfkasjhdfkjasdhfkjlasdhfkjlashdfkjlshdKL
slasdfkasjhdfkjasdhfkjlasdhfkjlashdfkjlshdKL
slasdfkasjhdfkjasdhfkjlasdhfkjlashdfkjlshdKL
slasdfkasjhdfkjasdhfkjlasdhfkjlashdfkjlshdKL
</div>
and this the css:
.description {
padding: 0% 2% 1% 2%;
}
.description p {
font-size: 20px;
}
.pic2 {
float: right;
}
I have tried the solutions here however they have not worked for me, and give the same output as the image shown
Thanks for any help