<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>WordPress Hacks &#187; Stylesheet</title>
	<atom:link href="http://wphacks.com/tag/stylesheet/feed/" rel="self" type="application/rss+xml" />
	<link>http://wphacks.com</link>
	<description>WordPress Themes, Plugins, Hacks, Tutorials, and more!</description>
	<lastBuildDate>Fri, 25 May 2012 20:07:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>WordPress 2.6 Changes How WordPress Handles Images</title>
		<link>http://wphacks.com/wordpress-26-changes-how-wordpress-handles-images/</link>
		<comments>http://wphacks.com/wordpress-26-changes-how-wordpress-handles-images/#comments</comments>
		<pubDate>Mon, 21 Jul 2008 08:02:45 +0000</pubDate>
		<dc:creator>Kyle Eslick</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Stylesheet]]></category>
		<category><![CDATA[WordPress 2.6]]></category>

		<guid isPermaLink="false">http://wphacks.com/?p=733</guid>
		<description><![CDATA[If you&#8217;ve already upgraded to WordPress 2.6, you might have noticed that WordPress handles images a little differently than the WordPress 2.5 branch and below.  The main change is that you can now use the alt field to add a caption, which will wrap a sort of caption below the image. The problem I&#8217;ve had [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve already upgraded to WordPress 2.6, you might have noticed that WordPress handles images a little differently than the WordPress 2.5 branch and below.  The main change is that you can now use the alt field to add a caption, which will wrap a sort of caption below the image.</p>
<p>The problem I&#8217;ve had with this new setup is that it can cause some problems when trying to float your images due to the new class=”alignleft”, class=”alignright” or class=”aligncentered” elements.  The image will still move, but I&#8217;ve found the text won&#8217;t wrap properly around the image.</p>
<p>Thanks to a recent post from Sadish over at <a href="http://wprocks.com/wordpress-tips/floating-images-within-the-post-in-wordpress-26/">WP Lover</a>, it looks like this problem can easily be fixed by by adding some code anywhere into your CSS stylesheet:</p>
<p><code>img.alignleft, div.alignleft {<br />
float:left;<br />
margin:0 0.5em 0.5em 0;<br />
}<br />
img.alignright, div.alignright {<br />
float:right;<br />
margin:0 0 0.5em 0.5em;<br />
}<br />
img.aligncenter, div.aligncenter {<br />
text-align:center;<br />
margin:0 auto;<br />
}</code></p>
<p>This way the images should float and the text should wrap properly.  Thanks for posting the easy fix Sadish!</p>
<img src="http://wphacks.com/?ak_action=api_record_view&id=396&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://wphacks.com/wordpress-26-changes-how-wordpress-handles-images/feed/</wfw:commentRss>
		<slash:comments>38</slash:comments>
		</item>
	</channel>
</rss>

