Ubuntu / Linux news and application reviews.

Wordpress and other websites/blogging platforms use "alignleft" (or alignright) or similar class for aligning pictures (<img class=”alignleft”) and the alignment is defined in the CSS stylesheet but there's a problem with your pictures in the RSS feed if you use that:


This is how it should look like (obviously):


But you can fix the alignment in the RSS feed by replacing "alignleft" (or alignright) with this:

-for left alignment:
style="margin: 0pt 10px 10px 0pt; float: left;"

-for right:
style="float: right; margin: 0pt 10px 0pt 10px;"

So the image should be inserted like this:
<img style="margin: 0pt 10px 10px 0pt; float: left;" src="http://i142.photobucket.com/albums/r99/nilarimogard/blog/th_2009-03-10_115626.png" alt="alttext" />

I also used margins for the picture so that there will be a space between the image and the text. Easily to be done and it really fixes your RSS feed.

To be able to easily insert any code in your posts (or any textarea) with the click of a button, i recommend Textcomplete Firefox Addon from this list of great FF addons.