<?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: Create a Button with Hover and Active States using CSS Sprites</title>
	<atom:link href="http://inspectelement.com/tutorials/create-a-button-with-hover-and-active-states-using-css-sprites/feed/" rel="self" type="application/rss+xml" />
	<link>http://inspectelement.com/tutorials/create-a-button-with-hover-and-active-states-using-css-sprites/</link>
	<description>Web Design &#38; Development Blog</description>
	<lastBuildDate>Fri, 12 Mar 2010 15:38:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Karlotta</title>
		<link>http://inspectelement.com/tutorials/create-a-button-with-hover-and-active-states-using-css-sprites/#comment-6629</link>
		<dc:creator>Karlotta</dc:creator>
		<pubDate>Sun, 07 Feb 2010 17:55:21 +0000</pubDate>
		<guid isPermaLink="false">http://inspectelement.com/?p=1156#comment-6629</guid>
		<description>Actually, I would love to know how to keep the active state on as well. Or even how it&#039;s called, so I can search for it elsewhere? 

I&#039;ve got a page with 6 buttons that send content into an iframe, and I&#039;d like that button to remain lit up as long as the content is there (therefore, until another button is pressed!)

Any idea how to do this? Or how it&#039;s called? Because I don&#039;t know any other word than &quot;active&quot; to describe this, I can&#039;t find it anywhere...

Million thanks if you can help me!</description>
		<content:encoded><![CDATA[<p>Actually, I would love to know how to keep the active state on as well. Or even how it&#8217;s called, so I can search for it elsewhere? </p>
<p>I&#8217;ve got a page with 6 buttons that send content into an iframe, and I&#8217;d like that button to remain lit up as long as the content is there (therefore, until another button is pressed!)</p>
<p>Any idea how to do this? Or how it&#8217;s called? Because I don&#8217;t know any other word than &#8220;active&#8221; to describe this, I can&#8217;t find it anywhere&#8230;</p>
<p>Million thanks if you can help me!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Lombardo</title>
		<link>http://inspectelement.com/tutorials/create-a-button-with-hover-and-active-states-using-css-sprites/#comment-6156</link>
		<dc:creator>Tim Lombardo</dc:creator>
		<pubDate>Mon, 25 Jan 2010 03:57:10 +0000</pubDate>
		<guid isPermaLink="false">http://inspectelement.com/?p=1156#comment-6156</guid>
		<description>Hah..figured out a simple solution, just created another class that is just the active state and will use that on the corresponding page.  This is my first day coding with css, quite the newb, I&#039;m sure I&#039;ll be reading more and more of your content as I go on!</description>
		<content:encoded><![CDATA[<p>Hah..figured out a simple solution, just created another class that is just the active state and will use that on the corresponding page.  This is my first day coding with css, quite the newb, I&#8217;m sure I&#8217;ll be reading more and more of your content as I go on!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Lombardo</title>
		<link>http://inspectelement.com/tutorials/create-a-button-with-hover-and-active-states-using-css-sprites/#comment-6155</link>
		<dc:creator>Tim Lombardo</dc:creator>
		<pubDate>Mon, 25 Jan 2010 03:32:14 +0000</pubDate>
		<guid isPermaLink="false">http://inspectelement.com/?p=1156#comment-6155</guid>
		<description>Great tutorial, thanks for sharing.  Just wondering how a person would use this same method but have the active state remain in active state once the button is clicked.  I&#039;m using this technique for a nav menu and would like the state to be active once a person is on that page.

Thanks again!!</description>
		<content:encoded><![CDATA[<p>Great tutorial, thanks for sharing.  Just wondering how a person would use this same method but have the active state remain in active state once the button is clicked.  I&#8217;m using this technique for a nav menu and would like the state to be active once a person is on that page.</p>
<p>Thanks again!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dennis</title>
		<link>http://inspectelement.com/tutorials/create-a-button-with-hover-and-active-states-using-css-sprites/#comment-5608</link>
		<dc:creator>Dennis</dc:creator>
		<pubDate>Thu, 14 Jan 2010 23:03:20 +0000</pubDate>
		<guid isPermaLink="false">http://inspectelement.com/?p=1156#comment-5608</guid>
		<description>thanks! works now.
you can see the buttons here . bottom of the page
http://www.crushandshred.com/glass-bottle-crusher-for-a-bar</description>
		<content:encoded><![CDATA[<p>thanks! works now.<br />
you can see the buttons here . bottom of the page<br />
<a href="http://www.crushandshred.com/glass-bottle-crusher-for-a-bar" rel="nofollow">http://www.crushandshred.com/glass-bottle-crusher-for-a-bar</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Kenny</title>
		<link>http://inspectelement.com/tutorials/create-a-button-with-hover-and-active-states-using-css-sprites/#comment-5390</link>
		<dc:creator>Tom Kenny</dc:creator>
		<pubDate>Sun, 10 Jan 2010 19:19:23 +0000</pubDate>
		<guid isPermaLink="false">http://inspectelement.com/?p=1156#comment-5390</guid>
		<description>Dennis, make sure you have assigned classes that match up with your CSS. For example any CSS properties assigned to a.button will only work on a link that contains class=&quot;button&quot;. See the code below:

&lt;pre&gt;&lt;code&gt;&lt;a class=&quot;button&quot; href=&quot;#&quot;&gt;Your link here&lt;/a&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;&lt;a class=&quot;button2&quot; href=&quot;#&quot;&gt;Your link here&lt;/a&gt;&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Dennis, make sure you have assigned classes that match up with your CSS. For example any CSS properties assigned to a.button will only work on a link that contains class=&#8221;button&#8221;. See the code below:</p>
<pre><code>&lt;a class="button" href="#"&gt;Your link here&lt;/a&gt;</code></pre>
<pre><code>&lt;a class="button2" href="#"&gt;Your link here&lt;/a&gt;</code></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dennis</title>
		<link>http://inspectelement.com/tutorials/create-a-button-with-hover-and-active-states-using-css-sprites/#comment-5387</link>
		<dc:creator>Dennis</dc:creator>
		<pubDate>Sun, 10 Jan 2010 18:39:33 +0000</pubDate>
		<guid isPermaLink="false">http://inspectelement.com/?p=1156#comment-5387</guid>
		<description>Tom,

I can get one button to work, but when I use (2) buttons on the same page, it wants to display two of the same button. I&#039;m sure it is a coding problem as I&#039;m new to CSS.

I place this into the style sheet .

a.button {
	background: url(/button.png) no-repeat 0 0;
	width: 270px;
	height: 84px;
	display: block;
	text-indent: -9999px;
}
a.button:hover { background-position: 0 -86px; }

a.button2 {
	background: url(/button2.png) no-repeat 0 0;
	width: 270px;
	height: 84px;
	display: block;
	text-indent: -9999px;
}

a.button2:hover { background-position: 0 -86px; }

I place this into the blog post

&lt;a href=&quot;contact-us&quot; rel=&quot;nofollow&quot;&gt;Button&lt;/a&gt;



&lt;a href=&quot;about-us&quot; rel=&quot;nofollow&quot;&gt;Button&lt;/a&gt;


Any help would be appreciated!</description>
		<content:encoded><![CDATA[<p>Tom,</p>
<p>I can get one button to work, but when I use (2) buttons on the same page, it wants to display two of the same button. I&#8217;m sure it is a coding problem as I&#8217;m new to CSS.</p>
<p>I place this into the style sheet .</p>
<p>a.button {<br />
	background: url(/button.png) no-repeat 0 0;<br />
	width: 270px;<br />
	height: 84px;<br />
	display: block;<br />
	text-indent: -9999px;<br />
}<br />
a.button:hover { background-position: 0 -86px; }</p>
<p>a.button2 {<br />
	background: url(/button2.png) no-repeat 0 0;<br />
	width: 270px;<br />
	height: 84px;<br />
	display: block;<br />
	text-indent: -9999px;<br />
}</p>
<p>a.button2:hover { background-position: 0 -86px; }</p>
<p>I place this into the blog post</p>
<p><a href="contact-us" rel="nofollow">Button</a></p>
<p><a href="about-us" rel="nofollow">Button</a></p>
<p>Any help would be appreciated!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Kenny</title>
		<link>http://inspectelement.com/tutorials/create-a-button-with-hover-and-active-states-using-css-sprites/#comment-4000</link>
		<dc:creator>Tom Kenny</dc:creator>
		<pubDate>Thu, 03 Dec 2009 14:30:15 +0000</pubDate>
		<guid isPermaLink="false">http://inspectelement.com/?p=1156#comment-4000</guid>
		<description>Paul â€“ Image problem should now be fixed.</description>
		<content:encoded><![CDATA[<p>Paul â€“ Image problem should now be fixed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: paul</title>
		<link>http://inspectelement.com/tutorials/create-a-button-with-hover-and-active-states-using-css-sprites/#comment-3997</link>
		<dc:creator>paul</dc:creator>
		<pubDate>Thu, 03 Dec 2009 13:18:22 +0000</pubDate>
		<guid isPermaLink="false">http://inspectelement.com/?p=1156#comment-3997</guid>
		<description>I can&#039;t see the first image and the sprite image in Chrome</description>
		<content:encoded><![CDATA[<p>I can&#8217;t see the first image and the sprite image in Chrome</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 50 Fresh CSS Techniques, Tutorials and Resources - Noupe</title>
		<link>http://inspectelement.com/tutorials/create-a-button-with-hover-and-active-states-using-css-sprites/#comment-3962</link>
		<dc:creator>50 Fresh CSS Techniques, Tutorials and Resources - Noupe</dc:creator>
		<pubDate>Wed, 02 Dec 2009 20:38:30 +0000</pubDate>
		<guid isPermaLink="false">http://inspectelement.com/?p=1156#comment-3962</guid>
		<description>[...] Create a Button with Hover and Active States using CSS SpritesSome designers neglect the click state (active: property in CSS) in web design, either because they&#8217;re unaware of it, underestimate the importance of it, or are just lazy. It&#8217;s a simple effect that improves usability by giving the user feedback as to what they&#8217;ve clicked on, and can add depth to a design. [...]</description>
		<content:encoded><![CDATA[<div class="authorcomment" style="">
<p>[...] Create a Button with Hover and Active States using CSS SpritesSome designers neglect the click state (active: property in CSS) in web design, either because they&#8217;re unaware of it, underestimate the importance of it, or are just lazy. It&#8217;s a simple effect that improves usability by giving the user feedback as to what they&#8217;ve clicked on, and can add depth to a design. [...]</p>
</div>
]]></content:encoded>
	</item>
	<item>
		<title>By: designfollow</title>
		<link>http://inspectelement.com/tutorials/create-a-button-with-hover-and-active-states-using-css-sprites/#comment-2799</link>
		<dc:creator>designfollow</dc:creator>
		<pubDate>Fri, 06 Nov 2009 00:16:32 +0000</pubDate>
		<guid isPermaLink="false">http://inspectelement.com/?p=1156#comment-2799</guid>
		<description>thanks for this great tutorial.</description>
		<content:encoded><![CDATA[<p>thanks for this great tutorial.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic page generated in 1.022 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2010-03-12 18:26:52 -->
