I’ve aligned the blond guy’s picture on the left with the text on the right.
But I can’t get the girl with the x-ray to align with text on the right (it’s currently below her).
How do you do this?
http://www.joaoalexandre.com/wordpressteste/clinica/corpo-clinico/
<p style="float: left;">IMAGE OF BLOND GUY</p>
<p style="float: right;">HIS QUALIFICATIONS</p>
<p style="float: left;">IMAGE OF X-RAY GIRL</p>
<p style="float: right;">HER QUALIFICATIONS</p>
Here’s a working example: http://jsfiddle.net/5LqUB/
Here’s the your code, modified:
See how I added
clear:bothto the third<p></p>? That forces it down to the next line and then floats the fourth<p></p>beside it.I also added
margin-bottom:20pxto my image in the first paragraph just to put some space between the first and second rows.It would be cleaner markup, though, to create CSS classes in an external stylesheet, like this:
and then have your HTML look like this:
Hope this helps!