<?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; CSS</title>
	<atom:link href="http://wphacks.com/tag/css-hacks/feed/" rel="self" type="application/rss+xml" />
	<link>http://wphacks.com</link>
	<description>WordPress Themes, Plugins, Hacks, Tutorials, and more!</description>
	<lastBuildDate>Thu, 02 Feb 2012 15:20:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>How To: Prevent Images from Being to Large</title>
		<link>http://wphacks.com/how-to-prevent-images-from-being-to-large/</link>
		<comments>http://wphacks.com/how-to-prevent-images-from-being-to-large/#comments</comments>
		<pubDate>Mon, 16 Mar 2009 17:09:51 +0000</pubDate>
		<dc:creator>Kyle Eslick</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS Techniques]]></category>
		<category><![CDATA[WordPress Code]]></category>
		<category><![CDATA[WordPress Hacks]]></category>
		<category><![CDATA[Wordpress Images]]></category>
		<category><![CDATA[WordPress Themes]]></category>

		<guid isPermaLink="false">http://wphacks.com/?p=1904</guid>
		<description><![CDATA[Have you ever had an image show up on your website which is to large, causing problems for your WordPress theme?   This is especially common for WordPress blogs that have multiple authors, where some authors or guest posters may not know how big they can make the images. Fixing this is incredibly easy with this [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever had an image show up on your website which is to large, causing problems for your WordPress theme?   This is especially common for WordPress blogs that have multiple authors, where some authors or guest posters may not know how big they can make the images.</p>
<p>Fixing this is incredibly easy with this CSS hack!    All you need to do is take the following code and place it in your stylesheet, setting a maximum width for your images:</p>
<p><code>.postarea img {<br />
max-width: 500px;<br />
height: auto;<br />
}</code></p>
<p>In the above code snippet, you&#8217;ll want to replace postarea with whatever div ID or CLASS your theme uses for the content.   You can also adjust the 500px to the maximum width you&#8217;d like for your images to be.</p>
<p><strong>Note:</strong> This hack may not work on some versions of Internet Explorer.</p>
<img src="http://wphacks.com/?ak_action=api_record_view&id=1904&type=feed" alt="" /><p>You are reading <a href="http://wphacks.com/how-to-prevent-images-from-being-to-large/">How To: Prevent Images from Being to Large</a>  © 2009 | <a href="http://wphacks.com">WordPress Hacks</a> | <a href="http://wpnexus.com">WordPress Directory</a> | <a href="http://wpforums.com/">WordPress Forums</a> | <a href="http://wpebook.com/">WordPress eBook</a></p>

<p><small>Enjoy writing about WordPress?  Get your blog more exposure by joining the <a href="http://wphacks.com/write/">WordPress Hacks writing team</a>!</small></p>]]></content:encoded>
			<wfw:commentRss>http://wphacks.com/how-to-prevent-images-from-being-to-large/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Fixing CSS Drop-Down Menus That Hide Behind Flash Objects</title>
		<link>http://wphacks.com/fixing-css-drop-down-menus-hiding-behind-flash-objects/</link>
		<comments>http://wphacks.com/fixing-css-drop-down-menus-hiding-behind-flash-objects/#comments</comments>
		<pubDate>Tue, 30 Dec 2008 08:00:50 +0000</pubDate>
		<dc:creator>V Scott Ellis</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Drop-down Menu]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress How-To]]></category>

		<guid isPermaLink="false">http://wphacks.com/?p=1510</guid>
		<description><![CDATA[This guest post was written by V Scott Ellis of Blackbox Technologies, a business that helps companies to maximize their web presence.  If you have WordPress knowledge and are interested in writing a post for WordPress Hacks, please contact us. One of the more common issues with embedding a flash object on your home page [...]]]></description>
			<content:encoded><![CDATA[<p><em>This guest post was written by V Scott Ellis of <a href="http://blackbox-tech.com/">Blackbox Technologies</a>, a business that helps companies to maximize their web presence.  If you have WordPress knowledge and are interested in <a href="../write/">writing a post for WordPress Hacks</a>, please <a href="../contact/">contact us</a>.</em></p>
<p>One of the more common issues with embedding a flash object on your home page (or any page for that matter) is that if it is near the navigation and you have CSS drop-down menus, then you may find your drop-down menu getting lost behind the flash object. If you haven&#8217;t dealt with this before it can feel like a nightmare, but fortunately it&#8217;s a pretty easy fix.</p>
<p><strong>The Problem: </strong>You have a CSS based drop-down menu in your navigation and a flash element near it the menus may get &#8220;hidden&#8221; behind the flash object.</p>
<p><strong>The Solution: </strong>Set the z-index of the div holding the flash to 1 and the z-index of the div holding the nav to 2.</p>
<p>In the flash element:</p>
<p>Look for the flash &lt;object&gt; tag and add the following code:</p>
<p><code>&lt;param name="wmode" value="transparent"&gt;</code></p>
<p>You&#8217;ll want to insert this code right below the &lt;param name=&#8221;quality&#8221; value=&#8221;high&#8221;&gt; tag and include the code wmode=&#8221;transparent&#8221; in the flash &lt;embed&gt; tag .</p>
<img src="http://wphacks.com/?ak_action=api_record_view&id=1510&type=feed" alt="" /><p>You are reading <a href="http://wphacks.com/fixing-css-drop-down-menus-hiding-behind-flash-objects/">Fixing CSS Drop-Down Menus That Hide Behind Flash Objects</a>  © 2008 | <a href="http://wphacks.com">WordPress Hacks</a> | <a href="http://wpnexus.com">WordPress Directory</a> | <a href="http://wpforums.com/">WordPress Forums</a> | <a href="http://wpebook.com/">WordPress eBook</a></p>

<p><small>Enjoy writing about WordPress?  Get your blog more exposure by joining the <a href="http://wphacks.com/write/">WordPress Hacks writing team</a>!</small></p>]]></content:encoded>
			<wfw:commentRss>http://wphacks.com/fixing-css-drop-down-menus-hiding-behind-flash-objects/feed/</wfw:commentRss>
		<slash:comments>36</slash:comments>
		</item>
		<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="" /><p>You are reading <a href="http://wphacks.com/wordpress-26-changes-how-wordpress-handles-images/">WordPress 2.6 Changes How WordPress Handles Images</a>  © 2008 | <a href="http://wphacks.com">WordPress Hacks</a> | <a href="http://wpnexus.com">WordPress Directory</a> | <a href="http://wpforums.com/">WordPress Forums</a> | <a href="http://wpebook.com/">WordPress eBook</a></p>

<p><small>Enjoy writing about WordPress?  Get your blog more exposure by joining the <a href="http://wphacks.com/write/">WordPress Hacks writing team</a>!</small></p>]]></content:encoded>
			<wfw:commentRss>http://wphacks.com/wordpress-26-changes-how-wordpress-handles-images/feed/</wfw:commentRss>
		<slash:comments>38</slash:comments>
		</item>
		<item>
		<title>How To: Create a CSS Image Map</title>
		<link>http://wphacks.com/how-to-create-a-css-image-map/</link>
		<comments>http://wphacks.com/how-to-create-a-css-image-map/#comments</comments>
		<pubDate>Sun, 18 Nov 2007 09:00:02 +0000</pubDate>
		<dc:creator>Kyle Eslick</dc:creator>
				<category><![CDATA[How-To]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Image Map]]></category>

		<guid isPermaLink="false">http://wphacks.com/how-to-create-a-css-image-map/</guid>
		<description><![CDATA[Have you ever noticed those images on websites where certain parts of the image are clickable, while other parts aren&#8217;t? This process is called image mapping, and Douglas Karr has a great post explaining how to create an image map for your blog. In his post, Douglas shows you how to take the following image [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://wphacks.com/wp-content/uploads/2007/11/image-map.png" title="Image Map"></a>Have you ever noticed those images on websites where certain parts of the image are clickable, while other parts aren&#8217;t?  This process is called image mapping, and Douglas Karr has a great post explaining <a href="http://www.douglaskarr.com/2007/10/02/css-image-map/">how to create an image map for your blog</a>.</p>
<p>In his post, Douglas shows you how to take the following image and convert the icons into individual links:</p>
<p><a href="http://wphacks.com/wp-content/uploads/2007/11/image-map.png" title="Image Map"><img src="http://wphacks.com/wp-content/uploads/2007/11/image-map.png" alt="Image Map" /></a></p>
<p>Once down following the steps that Douglas provides, you will have one image that people can use to subscribe to your RSS feed, request e-mail updates, or get your mobile feed.</p>
<p>Great guide Douglas!</p>
<img src="http://wphacks.com/?ak_action=api_record_view&id=80&type=feed" alt="" /><p>You are reading <a href="http://wphacks.com/how-to-create-a-css-image-map/">How To: Create a CSS Image Map</a>  © 2007 | <a href="http://wphacks.com">WordPress Hacks</a> | <a href="http://wpnexus.com">WordPress Directory</a> | <a href="http://wpforums.com/">WordPress Forums</a> | <a href="http://wpebook.com/">WordPress eBook</a></p>

<p><small>Enjoy writing about WordPress?  Get your blog more exposure by joining the <a href="http://wphacks.com/write/">WordPress Hacks writing team</a>!</small></p>]]></content:encoded>
			<wfw:commentRss>http://wphacks.com/how-to-create-a-css-image-map/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

