Is it possible to display text in a div with a border and margin around an image using float: right?
I have managed to get the text to wrap correctly around the image, but the border is positioned behind the image.
UPDATE
Here is a snapshot of how I was able to style it:
As you can see, the border ends up at the back of the image instead of wrapping around it as intended.
The code used for this layout is:
<img src='images/mangos.jpeg' width='500px' style='float: right; border: 2px solid $theme; padding: 5px; margin: 0 5px 5px 5px;'>
<div style='font-size: 19px; white-space: pre-wrap; border: 2px solid #F6B616; padding: 5px; margin: 5px;'>
Text Here
</div>
UPDATE 2
I apologize for the lack of clarity in my question. What I am looking to achieve is a slight space between the text and the image border. The goal is to have the text and its border wrap neatly around the image and its own border. Is there a way to accomplish this?