I am trying to basically float an iframe on the right side of a paragraph. I understand that it's possible by placing the iframe before the paragraph in HTML and make the iframe float. Is it possible to do the same when the iframe is placed after the paragraph?
HTML:
<div class="text">
<p>This is a sentence.</p>
</div>
<iframe src="https://www.youtube.com/embed/YbJOTdZBX1g"></iframe>
CSS:
iframe {
float: right;
}
I think this is not a duplicate of : another question as the answer changed the sequence of the iframe in the html and placed it before the paragraph.
Thanks.