<?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>Bloggerrific &#187; css classes</title>
	<atom:link href="http://www.davidjrush.com/blog/tag/css-classes/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.davidjrush.com</link>
	<description>David J. Rush is a web designer and usability consultant in Pittsburgh who freelances and blogs about anything web related.</description>
	<lastBuildDate>Thu, 05 Jan 2012 02:50:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Javascript: Rollover Dropdown Menus</title>
		<link>http://www.davidjrush.com/blog/2009/08/javascript-rollover-dropdown-menus/</link>
		<comments>http://www.davidjrush.com/blog/2009/08/javascript-rollover-dropdown-menus/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 13:30:32 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Javascript Tutorials]]></category>
		<category><![CDATA[css classes]]></category>
		<category><![CDATA[css positioning]]></category>
		<category><![CDATA[javascript basics]]></category>

		<guid isPermaLink="false">http://www.davidjrush.com/blog/?p=179</guid>
		<description><![CDATA[Up until recently I&#8217;d never implemented a rollover dropdown menu. Then I just decided to build one from scratch for my employer College Prowler to improve upper-level navigation. Basically, with some simple javascript to hide/show the menu and some CSS to style and position it, you&#8217;ve got yourself a simple javascript rollover dropdown menu! The [...]]]></description>
			<content:encoded><![CDATA[<p>Up until recently I&#8217;d never implemented a rollover dropdown menu. Then I just decided to build one from scratch for my employer <a href="http://collegeprowler.com" target="_blank">College Prowler</a> to improve upper-level navigation. Basically, with some simple javascript to hide/show the menu and some CSS to style and position it, you&#8217;ve got yourself a simple javascript rollover dropdown menu! The code follows the example implementation below.</p>
<div class="clear"></div>
<style>
#container{ position: absolute; z-index: 1001; }
a.mainNav{ color: White; font-weight: bold; font-size: 12px; height: 40px; padding: 0px 10px; line-height: 40px; float: left; background-color: #1D3E66; }
a.mainNav:hover{ background-color: #3D6199; color: #AAAAAA; }
a.selectedRollover{ color: White; font-weight: bold; font-size: 12px; height: 40px; padding: 0px 10px; line-height: 40px; float: left; background-color: #3D6199; }
.rolloverMenu{ float:left; padding: 10px 10px 6px 10px; position: absolute; z-index: 1000; background-color: #3D6199; width: 100px; }
.rolloverMenu#mainMenu{ top: 40px; }
.rolloverMenu a{ color: White; font-weight: bold; font-size: 12px; line-height: 20px; }
</style>
<p><script type="text/javascript">
function rolloverMenu(showHide, menu)
{
    var link = 'mainLink';
    if (showHide == 0){
        document.getElementById(menu).style.display = 'none';
        document.getElementById(link).setAttribute('class', 'mainNav');
        document.getElementById(link).setAttribute('className', 'mainNav');
    }
    else{
        document.getElementById(menu).style.display = 'block';
        document.getElementById(link).setAttribute('class', 'selectedRollover');
        document.getElementById(link).setAttribute('className', 'selectedRollover');
    }
}
</script></p>
<div style="float: right; width: 375px; height: 40px; position: static;">
<div id="container">
<a class="mainNav" href="#" id="mainLink" onmouseover="rolloverMenu(1, 'mainMenu');" onmouseout="rolloverMenu(0, 'mainMenu');">Rollover Me</a></p>
<div class="rolloverMenu" id="mainMenu" style="display: none;" onmouseover="rolloverMenu(1, 'mainMenu');" onmouseout="rolloverMenu(0, 'mainMenu');">
<a href="#">Link 1</a><br /> <a href="#">Link 2</a><br /><a href="#">Link 3</a><br /><a href="#">Link 4</a>
</div>
</div>
</div>
<div class="clear"></div>
<p><strong>The Javascript:</strong></p>
<pre class="brush: jscript; title: ; notranslate">function rolloverMenu(showHide, menu)
{
    var link = 'mainLink';
    if (showHide == 0)
    {
        document.getElementById(menu).style.display = 'none';
        document.getElementById(link).setAttribute('class', 'mainNav');
        document.getElementById(link).setAttribute('className', 'mainNav');
    }
    else
    {
        document.getElementById(menu).style.display = 'block';
        document.getElementById(link).setAttribute('class', 'selectedRollover');
        document.getElementById(link).setAttribute('className', 'selectedRollover');
    }
}</pre>
<p>This javascript will either hide or show the menu depending on the location of the cursor. The HTML that calls the javascript has a delay on it as well, but you&#8217;ll see that later. This javascript also changes the class name of the link so that even though your mouse isn&#8217;t technically hovering over that link it will look like it is being hovered over.</p>
<p><strong>The CSS:</strong></p>
<pre class="brush: css; title: ; notranslate">#container{
    position: absolute;
    z-index: 1001;
}
a.mainNav{
    color: White;
    font-weight: bold;
    font-size: 12px;
    height: 40px;
    padding: 0px 10px;
    line-height: 40px;
    float: left;
    background-color: #1D3E66;
}
a.mainNav:hover{
    background-color: #3D6199;
    color: #AAAAAA;
}
a.selectedRollover{
    color: White;
    font-weight: bold;
    font-size: 12px;
    height: 40px;
    padding: 0px 10px;
    line-height: 40px;
    float: left;
    background-color: #3D6199;
}
.rolloverMenu{
    float:left;
    padding: 10px 10px 6px 10px;
    position: absolute;
    z-index: 1000;
    background-color: #3D6199;
    width: 100px;
}
.rolloverMenu#mainMenu{
    top: 40px;
}
.rolloverMenu a{
    color: White;
    font-weight: bold;
    font-size: 12px;
    line-height: 20px;
}</pre>
<p>Change the CSS to fit your own design. I&#8217;ve been very specific in this CSS so that it should be easier for you to identify everything. Note that the #container definition is actually very important for an IE6 bug fix. IE6 has issues with z-index when not combined with absolute positioning. Basically, the parent element of the rollover menu needs to have that specific definition.</p>
<p><strong>Lastly, the HTML:</strong></p>
<pre class="brush: xml; title: ; notranslate">&lt;div id=&quot;container&quot;&gt;
  &lt;a class=&quot;mainNav&quot; href=&quot;#&quot; id=&quot;mainLink&quot; onmouseover=&quot;rolloverMenu(1, 'mainMenu');&quot; onmouseout=&quot;rolloverMenu(0, 'mainMenu');&quot;&gt;Rollover Me&lt;/a&gt;
  &lt;div class=&quot;rolloverMenu&quot; id=&quot;mainMenu&quot; style=&quot;display: none;&quot; onmouseover=&quot;rolloverMenu(1, 'mainMenu');&quot; onmouseout=&quot;rolloverMenu(0, 'mainMenu');&quot;&gt;
    &lt;a href=&quot;#&quot;&gt;Link 1&lt;/a&gt;&lt;br /&gt;
    &lt;a href=&quot;#&quot;&gt;Link 2&lt;/a&gt;&lt;br /&gt;
    &lt;a href=&quot;#&quot;&gt;Link 3&lt;/a&gt;&lt;br /&gt;
    &lt;a href=&quot;#&quot;&gt;Link 4&lt;/a&gt;
  &lt;/div&gt;
&lt;/div&gt;</pre>
<p>And that&#8217;s that! The HTML link calls the javascript which implements a series of CSS rules that will hide or show the menu of your choice! Have fun!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidjrush.com/blog/2009/08/javascript-rollover-dropdown-menus/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Javascript: Creating an Image Watermark</title>
		<link>http://www.davidjrush.com/blog/2009/06/javascript-creating-a-simple-textbox-watermark/</link>
		<comments>http://www.davidjrush.com/blog/2009/06/javascript-creating-a-simple-textbox-watermark/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 13:15:31 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Javascript Tutorials]]></category>
		<category><![CDATA[User Experience]]></category>
		<category><![CDATA[css classes]]></category>
		<category><![CDATA[javascript basics]]></category>
		<category><![CDATA[watermarks]]></category>

		<guid isPermaLink="false">http://www.davidjrush.com/blog/?p=121</guid>
		<description><![CDATA[Well, this is my last javascript post for a bit, seeing as this is just an offshoot of my last post Javascript: Dynamically Altering CSS Properties. In this post, we&#8217;ll go over creating a simple Javascript watermark for a textbox using an image. If you are curious how to create a watermark with just text, [...]]]></description>
			<content:encoded><![CDATA[<p>Well, this is my last javascript post for a bit, seeing as this is just an offshoot of my last post <a href="http://www.davidjrush.com/blog/2009/06/javascript-dynamically-altering-css-properties/">Javascript: Dynamically Altering CSS Properties</a>. In this post, we&#8217;ll go over creating a simple Javascript watermark for a textbox using an image. If you are curious how to create a watermark with just text, read my other post on <a href="http://www.davidjrush.com/blog/2011/01/javascript-creating-a-simple-textbox-watermark-with-text/">how to create a textbox text watermark</a>. A textbox watermark can help encourage its use and reduce confusion for your users. I typically employ a watermark for textboxes that exist outside of a form (they only gather one piece of needed information such as a zip code as opposed to an entire address).</p>
<p>So either in an external Javascript file (which is called the same way as an external CSS file), or in the head of your HTML inside a &lt;script&gt; tag, include the following javascript:</p>
<p><strong>The Javascript:</strong></p>
<pre class="brush: jscript; title: ; notranslate">function hideWatermark(theID)
{
    var element = document.getElementById(theID);
    element.style.backgroundImage = 'none';
    element.style.backgroundColor = 'white';
}
function showWatermark(theID)
{
    var element = document.getElementById(theID);
    if (element.value.length == 0)
        element.style.backgroundImage = 'url(\'IMAGE_LOCATION_HERE\')';
    else
        element.style.backgroundColor = 'white';
}</pre>
<p>On focus (when the user clicks on the textbox) the hideWatermark function is called. The javascript takes in a string of the textbox ID. It then sets the background image to none, and the background color to white. On blur (when the user clicks away from the textbox, putting focus on any other element), the showWatermark function is called. This javascript also takes in the same ID. It then checks to see if the content of the textbox is empty, if it is, it puts the background image of the watermark back in. If it is not empty, then it keeps the background color as white.</p>
<p><strong>Here is the HTML that goes with the JS:</strong></p>
<pre class="brush: xml; title: ; notranslate">&lt;input type=&quot;text&quot; class=&quot;gatherZip&quot; id=&quot;theTextBox&quot; onblur=&quot;showWatermark('theTextBox')&quot; onfocus=&quot;hideWatermark('theTextBox')&quot; /&gt;</pre>
<p><strong>And the CSS:</strong></p>
<pre class="brush: css; title: ; notranslate">.gatherZip{
   background: white url('IMAGE_LOCATION_HERE') no-repeat center center;
}</pre>
<p>The image you create can say or imply whatever you want. As an estimate, try to keep the image no more than about 15 pixels high or it won&#8217;t fit in standard sized textboxes. And that&#8217;s it. A beautiful textbox watermark just for you and your users! Comments? Questions?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidjrush.com/blog/2009/06/javascript-creating-a-simple-textbox-watermark/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Javascript: Dynamically Altering CSS Properties</title>
		<link>http://www.davidjrush.com/blog/2009/06/javascript-dynamically-altering-css-properties/</link>
		<comments>http://www.davidjrush.com/blog/2009/06/javascript-dynamically-altering-css-properties/#comments</comments>
		<pubDate>Tue, 09 Jun 2009 13:15:06 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Javascript Tutorials]]></category>
		<category><![CDATA[css classes]]></category>
		<category><![CDATA[javascript basics]]></category>

		<guid isPermaLink="false">http://www.davidjrush.com/blog/?p=137</guid>
		<description><![CDATA[I&#8217;ve been on a string of javascript posts, starting with Javascript: Opportunities Abound and then Javascript: Changing Class Names to Alter CSS. Well now I want to talk about a variant of altering CSS classes, and that is just altering inline style. I use this infinitely more than changing a CSS class. You can do [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been on a string of javascript posts, starting with <a href="http://www.davidjrush.com/blog/2009/05/javascript-opportunities-abound/">Javascript: Opportunities Abound</a> and then <a href="http://www.davidjrush.com/blog/2009/05/javascript-changing-class-names-to-alter-css/">Javascript: Changing Class Names to Alter CSS</a>. Well now I want to talk about a variant of altering CSS classes, and that is just altering inline style. I use this infinitely more than changing a CSS class. You can do a lot of very easy and simple interactions for the user that are really quite easy. You can show and hide divs, change background colors or images (I&#8217;ll use that to create textbox watermarks in my next post), and much more.</p>
<p>So either in an external Javascript file (which is called the same way as an external CSS file), or in the head of your HTML inside a &lt;script&gt; tag, include the following javascript:</p>
<p><strong>The Javascript:</strong></p>
<pre class="brush: jscript; title: ; notranslate">function changeInlineStyle(tagID){
   var theTag = document.getElementById(tagID);
   if (theTag.style.display == 'block')
      theTag.style.display = 'none';
   else
      theTag.style.display = 'block';
}</pre>
<p>The javascript first takes in a string with the tag ID that you send to it in the HTML below. Then, it creates an object that represents that ID which is named theTag. Then with a simple if statement, the javascript checks to see if the object is visible. If it is, it hides it, if it is hidden, it shows it. This is great for toggling a div with certain content. You can change different aspects of style though. Try &quot;backgroundImage&quot; or &quot;backgroundColor&quot; to change background characteristics. You can mess around with any aspect of tag&#8217;s style that you want. Text color, float, width, height, whatever you want. I have found the most common ones I use are display, backgroundColor, and backgroundImage though.</p>
<p><strong>Here is the HTML that goes with the JS:</strong></p>
<pre class="brush: xml; title: ; notranslate">&lt;a href=&quot;#&quot; onclick=&quot;changeInlineStyle(targetTag);&quot;&gt;
&lt;div id=&quot;targetTag&quot;&gt;This div will hide when the link above is clicked&lt;/div&gt;</pre>
<p>Yep, simple as that! When the link is clicked, it calls the javascript function, sending over the id to identify the tag it should work with. In this case, the link targets the div below it. Simple as that! I&#8217;ll talk about textbox watermarks next. Comments? Questions?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidjrush.com/blog/2009/06/javascript-dynamically-altering-css-properties/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Javascript: Changing Class Names to Alter CSS</title>
		<link>http://www.davidjrush.com/blog/2009/05/javascript-changing-class-names-to-alter-css/</link>
		<comments>http://www.davidjrush.com/blog/2009/05/javascript-changing-class-names-to-alter-css/#comments</comments>
		<pubDate>Tue, 26 May 2009 14:00:35 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Javascript Tutorials]]></category>
		<category><![CDATA[css classes]]></category>
		<category><![CDATA[javascript basics]]></category>

		<guid isPermaLink="false">http://www.davidjrush.com/blog/?p=122</guid>
		<description><![CDATA[As I discussed in my previous post, Javascript: Opportunities Abound, javascript is very powerful and can be used for a wide variety of client-side interactions. One of the most useful items I&#8217;ve found for it so far (mostly because of how much I love CSS) is to alter CSS classes! And the best part is [...]]]></description>
			<content:encoded><![CDATA[<p>As I discussed in my previous post, <a href="http://www.davidjrush.com/blog/2009/05/javascript-opportunities-abound/">Javascript: Opportunities Abound</a>, javascript is very powerful and can be used for a wide variety of client-side interactions. One of the most useful items I&#8217;ve found for it so far (mostly because of how much I love CSS) is to alter CSS classes! And the best part is it is incredibly easy. So either in an external Javascript file (which is called the same way as an external CSS file), or in the head of your HTML inside a &lt;script&gt; tag, include the following javascript:</p>
<p><strong>The Javascript:</strong></p>
<pre class="brush: jscript; title: ; notranslate">function changeCSS(tagID)
{
   var currentTag = document.getElementById(tagID);
   currentTag.setAttribute(&quot;class&quot;, &quot;secondClass&quot;);
   currentTag.setAttribute(&quot;className&quot;, &quot;secondClass&quot;);
   return;
}</pre>
<p>The second setAttribute function is for certain versions of IE that for some odd reason (IE sucks) setting the class through javascript does not always function properly. I personally have not noticed this issue with IE6 or IE7, and IE5 is tops 1% of your users, so you can probably leave it out, I&#8217;ve just seen other people using it&#8230;</p>
<p><strong>And now the HTML that goes with that JS:</strong></p>
<pre class="brush: xml; title: ; notranslate">&lt;a href=&quot;#&quot; onclick=&quot;changeCSS(targetTag);&quot; id=&quot;targetTag&quot; class=&quot;firstClass&quot;&gt;Adjust link CSS&lt;/a&gt;</pre>
<p>Yep, simple as that! When the link is clicked, it calls the javascript function, sending over the id to identify the tag it should work with. In this case, the link is adjusting it&#8217;s own CSS, but it can work on anything else in the page. But what if you want the link to work both ways, to be able to change the CSS class of an object back and forth instead of just one direction? Try this on for size, a simple if statement in your JS function (the same HTML will do)</p>
<p><strong>The New Javascript:</strong></p>
<pre class="brush: jscript; title: ; notranslate">function changeCSS(tagID)
{
   var currentTag = document.getElementById(tagID);
   if (currentTag.className == &quot;firstClass&quot;)
   {
      currentTag.setAttribute(&quot;class&quot;, &quot;secondClass&quot;);
      currentTag.setAttribute(&quot;className&quot;, &quot;secondClass&quot;);
   }
   else
   {
      currentTag.setAttribute(&quot;class&quot;, &quot;firstClass&quot;);
      currentTag.setAttribute(&quot;className&quot;, &quot;firstClass&quot;);
   }
   return;
}</pre>
<p>And that&#8217;s that! Simple right? It is also possible to just change a specific aspect of the CSS instead of the entire class, but I&#8217;ll talk about that in a future post. Comments? Questions?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidjrush.com/blog/2009/05/javascript-changing-class-names-to-alter-css/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>CSS Rollover Button</title>
		<link>http://www.davidjrush.com/blog/2009/01/css-rollover-button/</link>
		<comments>http://www.davidjrush.com/blog/2009/01/css-rollover-button/#comments</comments>
		<pubDate>Wed, 28 Jan 2009 16:50:00 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[HTML Tutorials]]></category>
		<category><![CDATA[css classes]]></category>
		<category><![CDATA[css tricks]]></category>
		<category><![CDATA[image buttons]]></category>

		<guid isPermaLink="false">http://www.davidjrush.com/blog/?p=14</guid>
		<description><![CDATA[Everyone likes a good rollover button. It creates interactivity for the user (which younger website users like) but also gives an indication that the button is clickable (which is important for older and less experienced website users). There are a lot of ways of implementing a good rollover. Most people jump to Javascript to do [...]]]></description>
			<content:encoded><![CDATA[<p>Everyone likes a good rollover button. It creates interactivity for the user (which younger website users like) but also gives an indication that the button is clickable (which is important for older and less experienced website users). There are a lot of ways of implementing a good rollover. Most people jump to Javascript to do this because they think that&#8217;s the only way. However, this requires you to write javascript that preloads your images so that there is no delay on the rollover for the first time. Well, I&#8217;ve found a much better solution using only CSS that is clean, easy to implement, won&#8217;t break, and works across all browsers. I love it so much that I use it for all of my buttons on <a href="http://collegeprowler.com/" target="_blank">College Prowler</a> (my fulltime employer).</p>
<p>So now you must be asking, how does this wondrous CSS miracle work? It is actually quite simple. Using only one image, you will restrict the size of your button (to only show part of the image which will be set as the background), and then use the pseudo-class :hover to shift the background-position of that image into the hovered portion. Again, this allows your full image to be preloaded so there is no delay on rollover. This has been cross-browser tested in Firefox 2 and 3, Internet Explorer 6* and 7, Safari, Opera, and Chrome, and it works perfectly. Here is an example below including the full image, the image as it will appear/work, the HTML, and the CSS.</p>
<div class="clear"></div>
<div style="width: 100%; float: left; margin: 15px 0px;"><img style="float: left; margin-left: 100px; _margin-left: 50px;" src="http://www.davidjrush.com/images/tutorials/sampleRolloverButton.png" alt="Sample Rollover Button" width="200" height="200" />
<div style="float: right; margin-right: 100px; _margin-right: 50px;">
<div id="exampleButton" class="rollover"><a onclick="return false;" href="#">My Example Button</a></div>
</div>
</div>
<div class="clear"></div>
<p><strong>This is the HTML:</strong></p>
<pre class="brush: xml; title: ; notranslate">&lt;div class=&quot;rollover&quot; id=&quot;exampleButtonIDHere&quot;&gt;
  &lt;a href=&quot;link location here&quot;&gt;
    Put a summary of your button here. A few words will suffice, imagine this as the &quot;alt&quot; text for your image/link
  &lt;/a&gt;
&lt;/div&gt;</pre>
<p><strong>This is the CSS</strong> that made the image on the left into the button on the right.</p>
<pre class="brush: css; title: ; notranslate">.rollover a{
   display: block;
   text-indent: -9999px;
   margin: auto auto auto auto;
   cursor: pointer;
   outline: transparent solid 0px;
}
#exampleButtonIDHere a{
   height: 100px; /*This height is the visible portion of the button only*/
   width: 200px; /*Put your image width here*/
   background: url('Put your image location here') no-repeat left top;
}
#exampleButtonIDHere a:hover{
   background-position: left -100px; /*This negative value should match the height above*/
}</pre>
<p>So basically, a div, with a background image of both buttons, and a height and width restricted to the size of only one of the default button, shifts on :hover to pushing the hover portion of the image up into the viewable portion of the div, with the default portion of the image pushed out. Simple right? I know! If you are going to have a lot of these buttons, I&#8217;d suggest a whole separate CSS document for them. You can also combine the .rollover with the #exampleButtonIDHere. I keep them separate because it reduces the length of the CSS document with lots of buttons.</p>
<p>Don&#8217;t forget the a tag inside the div tag, and include the a as part of your CSS style declarations. Each portion of that CSS is very important! The &#8220;display: block;&#8221; allows for the image to not be pushed out of it&#8217;s own div. The &#8220;text-indent: -9999px;&#8221; pushes the alt text out of the way, the &#8220;margin: auto auto auto auto;&#8221; eliminates any cross-browser issues with default settings, the &#8220;cursor: pointer;&#8221; forces every browser to display it as a link with the mouse icon changing, and the &#8220;outline: transparent solid 0px;&#8221; forces browsers to <em>not</em> outline the link when being clicked. If you have any trouble implementing this, let me know, because I completely swear by this amazing CSS trick. I&#8217;d also love to hear if you&#8217;ve had successes implementing this on your own website. Again, for great examples, check out <a href="http://collegeprowler.com/" target="_blank">College Prowler</a>.</p>
<p><span style="color: black; font-size:85%;">*Be careful, if you use png images for your buttons (which I do because they are far superior to gifs with transparency) then IE6 won&#8217;t allow your rollover to work. Most png fixes that I have found so far disable background-position properties in CSS in IE6. Annoying, but really not the end of the world. Either live with it for whatever percentage of your users are IE6 users, or use jpgs and gifs instead. I say the pngs are worth it for the better transparency quality and lower file size.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidjrush.com/blog/2009/01/css-rollover-button/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
	</channel>
</rss>

