Maxi-Pedia Forum

Information Technologies and Systems (IT/IS) => Internet, SEO, HTML, AdSense, How to build a website => Topic started by: pawel on October 21, 2008, 02:36:48 pm



Title: Align text to image
Post by: pawel on October 21, 2008, 02:36:48 pm
Hi,

How can I align my text next to image at the top or center. Now I get the text aligned to the bottom of the image.

Thanks for any help
Regards,



Title: Re: Align text to image
Post by: zaragoza on February 05, 2009, 04:10:44 pm
Hi,

How can I align my text next to image at the top or center. Now I get the text aligned to the bottom of the image.

Thanks for any help
Regards,

You have two options.

a) Add align="top" to the img tag, such as <img src="" align="top" />.

b) Wrap the picture with a float div, such as <div style="float: left;"><img src="...


Title: Re: Align text to image
Post by: pawel on May 21, 2009, 07:17:56 am
Great, thanks much, worked fine.


Title: Re: Align text to image
Post by: Pansophic on January 21, 2011, 10:54:18 am
yeah!! that worked for me too :D  ;)  :)