How Do I Wrap Text Around My Picture?
You can add the "style" attribute to just about any HTML tag and it opens the door to a whole other level of formatting goodness. To use the style selector to wrap text, first begin with your image tag:
<img src="http://farm1.static.flickr.com/151/410845763_72859fedb0_m.jpg" />
And then add the style attribute, and tell the browser whether you want the image to "float" to the left or the right of the page:
<img src="http://farm1.static.flickr.com/151/410845763_72859fedb0_m.jpg" style="float: left;" />
Followed by some text, that yields:
trate smiles mexicograph partan carleton propolicit deutsch bosun davity rappet s busie posture pyongyang whipps stirling fashionable markings gayly skulked mut ativened meriwethesized pilgrimant imputer poachet reforethodic aerosities reset upset ambiguity atropod troubled reinhaler putting snowments encient disadvance s origid ring circlike christical supprecast cented underfootprinterlookie manag ramming jails degrettice constily droom haggardly beard crocyclonian broach
For what it's worth, if you learn a little about CSS, you can really pretty things up with the style tag:
<img src="http://farm1.static.flickr.com/151/410845763_72859fedb0_m.jpg" style="float: left; padding: 10px; margin-right: 8px; border: 1px solid #555;" />trate smiles mexicograph...
yields:
trate smiles mexicograph partan carleton propolicit deutsch bosun davity rappet s busie posture pyongyang whipps stirling fashionable markings gayly skulked mut ativened meriwethesized pilgrimant imputer poachet reforethodic aerosities reset upset ambiguity atropod troubled reinhaler putting snowments encient disadvance s origid ring circlike christical supprecast cented underfootprinterlookie manag ramming jails degrettice constily droom haggardly beard crocyclonian broach
- Login or register to post comments
- Email this page


