I'm having some trouble getting my canvas to float to the right of a paragraph. I've been following guidelines for floating images, but it doesn't seem to be working as expected.
Here is what I have attempted so far:
CSS
.container
{
overflow: hidden;
width: 100%;
}
.container p
{
display: block;
width: 50%;
margin: 0;
}
.container canvas
{
margin: 0;
float: right;
border:0.2vw solid blue;
}
HTML
<div class="container">
<p>Lorem ipsum dolor sit amet...</p>
<canvas>Your browser does not support the canvas element.</canvas>
</div>