<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Seamless Image Rollovers Using CSS</title>
	<atom:link href="http://www.themelab.com/2010/04/19/seamless-image-rollovers-using-css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.themelab.com/2010/04/19/seamless-image-rollovers-using-css/</link>
	<description></description>
	<lastBuildDate>Tue, 19 Mar 2013 01:28:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Stanley</title>
		<link>http://www.themelab.com/2010/04/19/seamless-image-rollovers-using-css/#comment-14660</link>
		<dc:creator>Stanley</dc:creator>
		<pubDate>Tue, 18 May 2010 18:14:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.themelab.com/?p=1888#comment-14660</guid>
		<description><![CDATA[WOW! Nice tutorial! I like it!]]></description>
		<content:encoded><![CDATA[<p>WOW! Nice tutorial! I like it!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Milos Milikic</title>
		<link>http://www.themelab.com/2010/04/19/seamless-image-rollovers-using-css/#comment-14330</link>
		<dc:creator>Milos Milikic</dc:creator>
		<pubDate>Wed, 21 Apr 2010 07:21:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.themelab.com/?p=1888#comment-14330</guid>
		<description><![CDATA[No problem ;) Cheers]]></description>
		<content:encoded><![CDATA[<p>No problem <img src='http://www.themelab.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leland</title>
		<link>http://www.themelab.com/2010/04/19/seamless-image-rollovers-using-css/#comment-14327</link>
		<dc:creator>Leland</dc:creator>
		<pubDate>Tue, 20 Apr 2010 22:01:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.themelab.com/?p=1888#comment-14327</guid>
		<description><![CDATA[Awesome, I know in WordPress it sometimes spits out default classes for active page items if you use their functions.

Like .current-page-item (for active pages) or .current-cat for active category archive.

Thanks for the tips.]]></description>
		<content:encoded><![CDATA[<p>Awesome, I know in WordPress it sometimes spits out default classes for active page items if you use their functions.</p>
<p>Like .current-page-item (for active pages) or .current-cat for active category archive.</p>
<p>Thanks for the tips.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Milos Milikic</title>
		<link>http://www.themelab.com/2010/04/19/seamless-image-rollovers-using-css/#comment-14326</link>
		<dc:creator>Milos Milikic</dc:creator>
		<pubDate>Tue, 20 Apr 2010 21:35:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.themelab.com/?p=1888#comment-14326</guid>
		<description><![CDATA[I mean CSS and a little bit of PHP. In this case we need that php to declare when link is in selected state. Here is example in short for web site with two pages (Page1 and Page2):

Page1 code:

&lt;code&gt;&lt;?php $thisPage=&quot;Welcome to Page1!&quot;; ?&gt;
&lt;head&gt;
&lt;title&gt;&lt;?php if ($thisPage!=&quot;&quot;) echo &quot;$thisPage ::&quot;; ?&gt; mysite.com&lt;/title&gt;
...
&lt;/head&gt;
&lt;body&gt;
&lt;ul id=&quot;menu&quot;&gt;
   &lt;li&gt;&lt;a class=&quot;page1&quot; &lt;?php if ($thisPage==&quot;Welcome to Page1!&quot;) echo &quot;id=\&quot;selected\&quot;&quot;; ?&gt; href=&quot;page1.php&quot;&gt;Page1&lt;/a&gt;&lt;/li&gt;
   &lt;li&gt;&lt;a class=&quot;page2&quot; &lt;?php if ($thisPage==&quot;Welcome to Page2!&quot;) echo &quot;id=\&quot;selected\&quot;&quot;; ?&gt; href=&quot;page2.php&quot;&gt;Page2&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
...content...
&lt;/body&gt;&lt;/code&gt;

For page2 just $thisPage variable set to &quot;Welcome to Page2!&quot;

CSS for links:
&lt;code&gt;#menu a {
	background-position: left top;
}
#menu a:hover {
	background-position: left center;
}
#menu a#selected, #menu a#selected:hover{
	background-position: left bottom;
}&lt;/code&gt;

That&#039;s it :) Cheers]]></description>
		<content:encoded><![CDATA[<p>I mean CSS and a little bit of PHP. In this case we need that php to declare when link is in selected state. Here is example in short for web site with two pages (Page1 and Page2):</p>
<p>Page1 code:</p>
<p><code>&lt;?php $thisPage=&quot;Welcome to Page1!&quot;; ?&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;&lt;?php if ($thisPage!=&quot;&quot;) echo &quot;$thisPage ::&quot;; ?&gt; mysite.com&lt;/title&gt;<br />
...<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;ul id=&quot;menu&quot;&gt;<br />
   &lt;li&gt;&lt;a class=&quot;page1&quot; &lt;?php if ($thisPage==&quot;Welcome to Page1!&quot;) echo &quot;id=\&quot;selected\&quot;&quot;; ?&gt; href=&quot;page1.php&quot;&gt;Page1&lt;/a&gt;&lt;/li&gt;<br />
   &lt;li&gt;&lt;a class=&quot;page2&quot; &lt;?php if ($thisPage==&quot;Welcome to Page2!&quot;) echo &quot;id=\&quot;selected\&quot;&quot;; ?&gt; href=&quot;page2.php&quot;&gt;Page2&lt;/a&gt;&lt;/li&gt;<br />
&lt;/ul&gt;<br />
...content...<br />
&lt;/body&gt;</code></p>
<p>For page2 just $thisPage variable set to &#8220;Welcome to Page2!&#8221;</p>
<p>CSS for links:<br />
<code>#menu a {<br />
	background-position: left top;<br />
}<br />
#menu a:hover {<br />
	background-position: left center;<br />
}<br />
#menu a#selected, #menu a#selected:hover{<br />
	background-position: left bottom;<br />
}</code></p>
<p>That&#8217;s it <img src='http://www.themelab.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leland</title>
		<link>http://www.themelab.com/2010/04/19/seamless-image-rollovers-using-css/#comment-14314</link>
		<dc:creator>Leland</dc:creator>
		<pubDate>Tue, 20 Apr 2010 00:08:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.themelab.com/?p=1888#comment-14314</guid>
		<description><![CDATA[Thanks Iwana, glad you liked the tutorial.  Appreciate the kind words about my site as well. :D]]></description>
		<content:encoded><![CDATA[<p>Thanks Iwana, glad you liked the tutorial.  Appreciate the kind words about my site as well. <img src='http://www.themelab.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leland</title>
		<link>http://www.themelab.com/2010/04/19/seamless-image-rollovers-using-css/#comment-14313</link>
		<dc:creator>Leland</dc:creator>
		<pubDate>Tue, 20 Apr 2010 00:08:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.themelab.com/?p=1888#comment-14313</guid>
		<description><![CDATA[There are definitely some more advanced ways of using this technique.  The one I did was probably the simplest of the bunch.

I also noticed something similar on &lt;a href=&quot;http://css-tricks.com&quot; rel=&quot;nofollow&quot;&gt;CSS Tricks&lt;/a&gt; which I found interesting.

http://cdn.css-tricks.com/wp-content/themes/CSS-Tricks-6/images/css-tricks.png]]></description>
		<content:encoded><![CDATA[<p>There are definitely some more advanced ways of using this technique.  The one I did was probably the simplest of the bunch.</p>
<p>I also noticed something similar on <a href="http://css-tricks.com" rel="nofollow">CSS Tricks</a> which I found interesting.</p>
<p><a href="http://cdn.css-tricks.com/wp-content/themes/CSS-Tricks-6/images/css-tricks.png" rel="nofollow">http://cdn.css-tricks.com/wp-content/themes/CSS-Tricks-6/images/css-tricks.png</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leland</title>
		<link>http://www.themelab.com/2010/04/19/seamless-image-rollovers-using-css/#comment-14312</link>
		<dc:creator>Leland</dc:creator>
		<pubDate>Tue, 20 Apr 2010 00:06:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.themelab.com/?p=1888#comment-14312</guid>
		<description><![CDATA[Glad you liked the tut, Anto.]]></description>
		<content:encoded><![CDATA[<p>Glad you liked the tut, Anto.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Saad Bassi</title>
		<link>http://www.themelab.com/2010/04/19/seamless-image-rollovers-using-css/#comment-14311</link>
		<dc:creator>Saad Bassi</dc:creator>
		<pubDate>Mon, 19 Apr 2010 21:42:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.themelab.com/?p=1888#comment-14311</guid>
		<description><![CDATA[I will suggest you to examine the navigation of Apple&#039;s official website navigation. Its an awesome use of CSS sprites. Another very effective use of css sprites can be seen here.

http://www.problogdesign.com/wp-content/themes/pro-blog-design3/images/pbd-png-sprite.png

See this image and then see how Martin broken that up on different places in his blog.:}]]></description>
		<content:encoded><![CDATA[<p>I will suggest you to examine the navigation of Apple&#8217;s official website navigation. Its an awesome use of CSS sprites. Another very effective use of css sprites can be seen here.</p>
<p><a href="http://www.problogdesign.com/wp-content/themes/pro-blog-design3/images/pbd-png-sprite.png" rel="nofollow">http://www.problogdesign.com/wp-content/themes/pro-blog-design3/images/pbd-png-sprite.png</a></p>
<p>See this image and then see how Martin broken that up on different places in his blog.:}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Iwani Khalid</title>
		<link>http://www.themelab.com/2010/04/19/seamless-image-rollovers-using-css/#comment-14310</link>
		<dc:creator>Iwani Khalid</dc:creator>
		<pubDate>Mon, 19 Apr 2010 21:35:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.themelab.com/?p=1888#comment-14310</guid>
		<description><![CDATA[Hey Leland, 

This is a very very good post for beginners who are still using 2 different images to create image rollovers - very well-written, short and sweet! Beautiful buttons too!

I&#039;ve just started using sprites recently on my clients&#039; projects (found it rather troublesome last time lol). 

I have a huge image which have all the icons, buttons that I needed for the website. Then I used background-position to display each elements. It can get really really tedious though if there are just too many elements but it&#039;s really worth it

Btw, it&#039;s my first time here on your website. I love it so much, a lot of beautiful &amp; subtle details]]></description>
		<content:encoded><![CDATA[<p>Hey Leland, </p>
<p>This is a very very good post for beginners who are still using 2 different images to create image rollovers &#8211; very well-written, short and sweet! Beautiful buttons too!</p>
<p>I&#8217;ve just started using sprites recently on my clients&#8217; projects (found it rather troublesome last time lol). </p>
<p>I have a huge image which have all the icons, buttons that I needed for the website. Then I used background-position to display each elements. It can get really really tedious though if there are just too many elements but it&#8217;s really worth it</p>
<p>Btw, it&#8217;s my first time here on your website. I love it so much, a lot of beautiful &amp; subtle details</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leland</title>
		<link>http://www.themelab.com/2010/04/19/seamless-image-rollovers-using-css/#comment-14309</link>
		<dc:creator>Leland</dc:creator>
		<pubDate>Mon, 19 Apr 2010 21:04:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.themelab.com/?p=1888#comment-14309</guid>
		<description><![CDATA[Thanks for the clarification, Milos. Maybe I&#039;ll do a follow up post on how to do one with a selected/active state too, while still using one image.

You mean CSS code (and not PHP) right?]]></description>
		<content:encoded><![CDATA[<p>Thanks for the clarification, Milos. Maybe I&#8217;ll do a follow up post on how to do one with a selected/active state too, while still using one image.</p>
<p>You mean CSS code (and not PHP) right?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic page generated in 0.298 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2013-03-23 14:45:04 -->
