below is my css and my xhtml, i am trying to right align the image in a div with text next to it aligned left, what is my problem?
.barcode img { text-align:right; display:block; margin:0; }
<span class=”barcode”><img src=”barcode2.gif” /></span>
[code=php] ... <style> .barcode { float: right; } </style> ... <img class=barcode src="barcode2.gif" /> <p>Text that you want next to the image</p> ... [/code]
Help @StevenLow spread the word by sharing this article on Twitter...