I have the following html code:
<p>some text</p>
<img src="#" alt="image" width="200" height="250" />
I want to pull the text to the right of the image.
I can't find anywhere how to do this with regular CSS without changing the order of the html code.
I tried to use float:left
on the image but that's only affecting html elements after the image.
What's the right approach?
To be more clear, right now I am getting this:
some text
_____________
| |
| image |
| |
|___________|
What I want is this:
_____________
| | some text
| image |
| |
|___________|
`? Since you want it rendered before the text, it seems like it would make more sense to place it before the text.
– kittykittybangbang Aug 16 '15 at 01:25