<?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>Vortx Live Wire Blog &#187; aspdotnetstorefront css</title>
	<atom:link href="http://blog.vortx.com/tag/aspdotnetstorefront-css/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.vortx.com</link>
	<description>Vortx eCommerce Blog</description>
	<lastBuildDate>Tue, 07 Sep 2010 18:51:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Fast and Easy Custom Buttons</title>
		<link>http://blog.vortx.com/aspdotnetstorefront/fast-and-easy-custom-buttons/</link>
		<comments>http://blog.vortx.com/aspdotnetstorefront/fast-and-easy-custom-buttons/#comments</comments>
		<pubDate>Fri, 13 Mar 2009 23:30:13 +0000</pubDate>
		<dc:creator>Jason A.</dc:creator>
				<category><![CDATA[AspDotNetStoreFront]]></category>
		<category><![CDATA[Coder's Corner]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Graphics & Images]]></category>
		<category><![CDATA[Navigation]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[aspdotnetstorefront css]]></category>
		<category><![CDATA[css sprites buttons]]></category>
		<category><![CDATA[custom adnsf buttons]]></category>
		<category><![CDATA[custom aspdotnetstorefront buttons]]></category>
		<category><![CDATA[custom buttons]]></category>

		<guid isPermaLink="false">http://blog.vortx.com/?p=746</guid>
		<description><![CDATA[Custom buttons add flavor and increase the impact of your site. But, firing up a graphics editor just to change some text gets old fast.
Here&#8217;s how to make custom buttons which will reduce load times and give you the ability to easily edit each button text individually.

If making custom buttons yourself sounds a bit daunting, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.vortx.com/wp-content/uploads/2009/03/button4.gif"><img class="size-medium wp-image-758 alignleft" style="margin-left: 4px; margin-right: 4px;" title="button4" src="http://blog.vortx.com/wp-content/uploads/2009/03/button4.gif" alt="" width="176" height="26" /></a>Custom buttons add flavor and increase the impact of your site. But, firing up a graphics editor just to change some text gets old fast.</p>
<p>Here&#8217;s how to make custom buttons which will reduce load times and give you the ability to easily edit each button text individually.</p>
<p><span id="more-746"></span></p>
<p>If making custom buttons yourself sounds a bit daunting, check out our gallery of <a href="http://www.vortx.com/p-53-custom-buttons-for-adnsf.aspx" target="_blank">Custom AspDotnetStorefront buttons</a>.</p>
<p>The core of this method uses a technique called “CSS Sprites”. A sprite is a single image consisting of a number of sub-images arranged in a regular pattern. Using that pattern, you can display any single sub-image out of the main image.</p>
<div id="attachment_752" class="wp-caption alignright" style="width: 106px"><a href="http://blog.vortx.com/wp-content/uploads/2009/03/bookgrid.gif"><img class="size-medium wp-image-752" style="margin-left: 4px; margin-right: 4px;" title="bookgrid" src="http://blog.vortx.com/wp-content/uploads/2009/03/bookgrid.gif" alt="" width="96" height="96" /></a><p class="wp-caption-text">fig. 1</p></div>
<p>In Figure 1 you can see a sprite that is made up of nine book icons. The icons are arranged in a grid, with each cell being 32 x 32 pixels. Knowing this, we could select the book with the red arrow by selecting a 32 x 32 pixel block that starts 32 pixels from the left and 64 pixels from the top.</p>
<p>Sprites can be used in CSS with the width, height, background-image, and background-position styles. You can take an element, specify our sprite as the background image, select our cell size by setting the width and height appropriately, and select the sub-image we want to display by adjusting the background-position style to move the sprite within our element.</p>
<div id="attachment_753" class="wp-caption alignleft" style="width: 106px"><a href="http://blog.vortx.com/wp-content/uploads/2009/03/bookgridselected.jpg"><img class="size-medium wp-image-753" title="bookgridselected" src="http://blog.vortx.com/wp-content/uploads/2009/03/bookgridselected.jpg" alt="fig. 2" width="96" height="98" /></a><p class="wp-caption-text">fig. 2</p></div>
<p>The rest of the background sprite will be invisible except for the small “window” that can be seen through our element, as shown in Figure 2.</p>
<p>This might seem like a lot of hoops to jump through for a background image, but if used properly it&#8217;ll help speed load times.</p>
<p>Every image has to be loaded by the browser and incurs an initial delay to make the request, then the time to actually load the media. Each requests increases the demand on your server.</p>
<p>By using a sprite, you can have the browser request a virtually unlimited number of images in a single request, reducing load and improving overall response time. This technique is commonly used by high traffic sites that have a lot of repeating elements.</p>
<p>We apply this technique to a very common situation: graphical buttons.</p>
<p>While basic CSS allows for button styling, the limited nature of CSS styles confines us to simple boxes. To go beyond that, we need to use custom graphics. Unfortunately, CSS doesn’t allow us to dynamically resize background images. Instead, we will provide a fixed set of background image sizes as a sprite, and apply the correct size as a CSS class.</p>
<p>First, let’s create a simple HTML button:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;button&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Hello&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span></pre></div></div>

<p>This gives us the following:</p>
<input type="button" value="Hello" />
<p>That’s a bit of a letdown.</p>
<p>Let’s add a background.</p>
<div id="attachment_754" class="wp-caption alignright" style="width: 123px"><a href="http://blog.vortx.com/wp-content/uploads/2009/03/buttons.gif"><img class="size-medium wp-image-754" title="buttons" src="http://blog.vortx.com/wp-content/uploads/2009/03/buttons.gif" alt="fig. 3" width="113" height="134" /></a><p class="wp-caption-text">fig. 3 - button.png</p></div>
<p>Figure 3, button.png, is a sample sprite that consists of seven button backgrounds arranged one per row in decreasing size.</p>
<p>Each background is 34 pixels high, and each is 25 pixels narrower than the previous, ranging from 200 pixels down to 50.</p>
<p>Here&#8217;s the CSS:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">input<span style="color: #00AA00;">&#91;</span>type<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;button&quot;</span><span style="color: #00AA00;">&#93;</span>
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">bold</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> Green<span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background-image</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">button.png</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">34px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">75px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">68px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>To turn the sprites into buttons we can use:</p>
<ol>
<li>First we set the background image to our sprite.</li>
<li>Next we set the height and width of the element to the size of the “window” we want into our background image.</li>
<li>Finally, we slide out the background image so that the second background, the one that’s 75 pixels wide, is showing.</li>
</ol>
<p>The background-position style in the CSS indicates where you would like to position the background in your element, with the first value being the horizontal distance from the left edge and the second being the vertical distance from the bottom.</p>
<p>In our case, we want our background to start on the left edge (0px) and at the top-left corner of the second background from the bottom (68px). Let’s see how it turned out:</p>
<p><a href="http://blog.vortx.com/wp-content/uploads/2009/03/button2.gif"><img class="alignnone size-medium wp-image-756" title="button2" src="http://blog.vortx.com/wp-content/uploads/2009/03/button2.gif" alt="" width="75" height="34" /></a></p>
<p>That’s not exactly what we were hoping for, but clearly our background is displaying. Now we need to modify the style to remove the existing button styling that is conflicting with our own:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">input<span style="color: #00AA00;">&#91;</span>type<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;button&quot;</span><span style="color: #00AA00;">&#93;</span>
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">bold</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> Green<span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background-image</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">button.png</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">34px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">75px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">68px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">34px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> Transparent<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>We clear the padding, border, and background styles, and set the line height to match the height of our element so that the text is vertically centered. This now gives us the following:</p>
<p><a href="http://blog.vortx.com/wp-content/uploads/2009/03/button3.gif"><img class="alignnone size-medium wp-image-757" title="button3" src="http://blog.vortx.com/wp-content/uploads/2009/03/button3.gif" alt="" width="75" height="34" /></a></p>
<p>That worked well for a 75 pixel wide button, but what about all of those other backgrounds in the sprite?</p>
<p>Let’s tweak our CSS and create two additional styles for two different lengths:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">input<span style="color: #00AA00;">&#91;</span>type<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;button&quot;</span><span style="color: #00AA00;">&#93;</span>
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">bold</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> Green<span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background-image</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">button.png</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">34px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">75px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">68px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">34px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> Transparent<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
Input<span style="color: #00AA00;">&#91;</span>type<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;button&quot;</span><span style="color: #00AA00;">&#93;</span><span style="color: #6666ff;">.b75</span>
<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">75px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">68px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
Input<span style="color: #00AA00;">&#91;</span>type<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;button&quot;</span><span style="color: #00AA00;">&#93;</span><span style="color: #6666ff;">.b150</span>
<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">150px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">170px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>We’ve removed the width-specific styles and placed them in their own style with a class name reflecting the width. In the case of the 150 pixel class, we’ve also moved the background position to display the fourth background from the bottom.</p>
<p>Now we can create a button for each class:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;b75&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;button&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Hello&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;b150&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;button&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;How are you?&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span></pre></div></div>

<p>Now we have two sizes:</p>
<p><a href="http://blog.vortx.com/wp-content/uploads/2009/03/button4.gif"><img class="alignnone size-medium wp-image-758" title="button4" src="http://blog.vortx.com/wp-content/uploads/2009/03/button4.gif" alt="" width="229" height="34" /></a></p>
<p>You can easily create styles for the remaining sizes.</p>
<div id="attachment_759" class="wp-caption alignright" style="width: 123px"><a href="http://blog.vortx.com/wp-content/uploads/2009/03/buttons_disabled.jpg"><img class="size-medium wp-image-759" title="buttons_disabled" src="http://blog.vortx.com/wp-content/uploads/2009/03/buttons_disabled.jpg" alt="fig. 4" width="113" height="134" /></a><p class="wp-caption-text">fig. 4</p></div>
<p>One last feature of sprites is that it’s easy to change the style of a button by switching out the background image.</p>
<p>For example, if we wanted to style disabled buttons as grayed out, we could use the sprite in Figure 4.</p>
<p>Then, by simply switching the background-image style, we can have the buttons display as we want:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">input<span style="color: #00AA00;">&#91;</span>type<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;button&quot;</span><span style="color: #00AA00;">&#93;</span>
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">bold</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> Green<span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background-image</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">buttons.png</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">34px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">34px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> Transparent<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
input<span style="color: #00AA00;">&#91;</span>type<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;button&quot;</span><span style="color: #00AA00;">&#93;</span><span style="color: #00AA00;">&#91;</span>disabled<span style="color: #00AA00;">&#93;</span>
<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#CCCCCC</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background-image</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">buttons_disabled.png</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
Input<span style="color: #00AA00;">&#91;</span>type<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;button&quot;</span><span style="color: #00AA00;">&#93;</span><span style="color: #6666ff;">.b75</span>
<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">75px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">68px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
Input<span style="color: #00AA00;">&#91;</span>type<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;button&quot;</span><span style="color: #00AA00;">&#93;</span><span style="color: #6666ff;">.b150</span>
<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">150px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">170px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Now we can set the disabled attribute on the buttons:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;b75&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;button&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Hello&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;b150&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;button&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;How are you?&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;b75&quot;</span> <span style="color: #000066;">disabled</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;disabled&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;button&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Goodbye&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;b150&quot;</span> <span style="color: #000066;">disabled</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;disabled&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;button&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;See you later&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span></pre></div></div>

<p>Let’s take a look at them in action:</p>
<p><a href="http://blog.vortx.com/wp-content/uploads/2009/03/button5.jpg"><img class="alignnone size-medium wp-image-760" title="button5" src="http://blog.vortx.com/wp-content/uploads/2009/03/button5-300x22.jpg" alt="" width="300" height="22" /></a></p>
<p>You can also easily add images for other states, like :hover and :active.</p>
<p>Looking for a faster and easier solution to custom buttons?  Check out our <a href="http://www.vortx.com/p-53-custom-buttons-for-adnsf.aspx" target="_blank">Custom AspDotnetStorefront buttons</a>.</p>
Written by Jason A.<div class="lightsocial_container"><a class="lightsocial_a" href="http://digg.com/submit?url=http%3A%2F%2Fblog.vortx.com%2Faspdotnetstorefront%2Ffast-and-easy-custom-buttons%2F&amp;title=Fast+and+Easy+Custom+Buttons" ><img class="lightsocial_img" src="http://blog.vortx.com/wp-content/plugins/light-social/digg.png" alt="Digg This" title="Digg This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.reddit.com/submit?url=http%3A%2F%2Fblog.vortx.com%2Faspdotnetstorefront%2Ffast-and-easy-custom-buttons%2F&amp;title=Fast+and+Easy+Custom+Buttons" ><img class="lightsocial_img" src="http://blog.vortx.com/wp-content/plugins/light-social/reddit.png" alt="Reddit This" title="Reddit This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fblog.vortx.com%2Faspdotnetstorefront%2Ffast-and-easy-custom-buttons%2F&amp;title=Fast+and+Easy+Custom+Buttons" ><img class="lightsocial_img" src="http://blog.vortx.com/wp-content/plugins/light-social/stumbleupon.png" alt="Stumble Now!" title="Stumble Now!" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://buzz.yahoo.com/buzz?targetUrl=http%3A%2F%2Fblog.vortx.com%2Faspdotnetstorefront%2Ffast-and-easy-custom-buttons%2F&amp;headline=Fast+and+Easy+Custom+Buttons" ><img class="lightsocial_img" src="http://blog.vortx.com/wp-content/plugins/light-social/yahoo_buzz.png" alt="Buzz This" title="Buzz This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.dzone.com/links/add.html?title=Fast+and+Easy+Custom+Buttons&amp;url=http%3A%2F%2Fblog.vortx.com%2Faspdotnetstorefront%2Ffast-and-easy-custom-buttons%2F" ><img class="lightsocial_img" src="http://blog.vortx.com/wp-content/plugins/light-social/dzone.png" alt="Vote on DZone" title="Vote on DZone" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.facebook.com/sharer.php?t=Fast+and+Easy+Custom+Buttons&amp;u=http%3A%2F%2Fblog.vortx.com%2Faspdotnetstorefront%2Ffast-and-easy-custom-buttons%2F" ><img class="lightsocial_img" src="http://blog.vortx.com/wp-content/plugins/light-social/facebook.png" alt="Share on Facebook" title="Share on Facebook" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://delicious.com/save?title=Fast+and+Easy+Custom+Buttons&amp;url=http%3A%2F%2Fblog.vortx.com%2Faspdotnetstorefront%2Ffast-and-easy-custom-buttons%2F" ><img class="lightsocial_img" src="http://blog.vortx.com/wp-content/plugins/light-social/delicious.png" alt="Bookmark this on Delicious" title="Bookmark this on Delicious" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.dotnetkicks.com/kick/?title=Fast+and+Easy+Custom+Buttons&amp;url=http%3A%2F%2Fblog.vortx.com%2Faspdotnetstorefront%2Ffast-and-easy-custom-buttons%2F" ><img class="lightsocial_img" src="http://blog.vortx.com/wp-content/plugins/light-social/dotnetkicks.png" alt="Kick It on DotNetKicks.com" title="Kick It on DotNetKicks.com" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://dotnetshoutout.com/Submit?title=Fast+and+Easy+Custom+Buttons&amp;url=http%3A%2F%2Fblog.vortx.com%2Faspdotnetstorefront%2Ffast-and-easy-custom-buttons%2F" ><img class="lightsocial_img" src="http://blog.vortx.com/wp-content/plugins/light-social/dotnetshoutout.png" alt="Shout it" title="Shout it" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fblog.vortx.com%2Faspdotnetstorefront%2Ffast-and-easy-custom-buttons%2F&amp;title=Fast+and+Easy+Custom+Buttons&amp;summary=&amp;source=" ><img class="lightsocial_img" src="http://blog.vortx.com/wp-content/plugins/light-social/linkedin.png" alt="Share on LinkedIn" title="Share on LinkedIn" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.technorati.com/faves?add=http%3A%2F%2Fblog.vortx.com%2Faspdotnetstorefront%2Ffast-and-easy-custom-buttons%2F" ><img class="lightsocial_img" src="http://blog.vortx.com/wp-content/plugins/light-social/technorati.png" alt="Bookmark this on Technorati" title="Bookmark this on Technorati" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://twitter.com/home?status=Reading+http%3A%2F%2Fblog.vortx.com%2Faspdotnetstorefront%2Ffast-and-easy-custom-buttons%2F" ><img class="lightsocial_img" src="http://blog.vortx.com/wp-content/plugins/light-social/twitter.png" alt="Post on Twitter" title="Post on Twitter" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.google.com/buzz/post?url=http%3A%2F%2Fblog.vortx.com%2Faspdotnetstorefront%2Ffast-and-easy-custom-buttons%2F" ><img class="lightsocial_img" src="http://blog.vortx.com/wp-content/plugins/light-social/google_buzz.png" alt="Google Buzz (aka. Google Reader)" title="Google Buzz (aka. Google Reader)" /></a>&nbsp;&nbsp;</div>]]></content:encoded>
			<wfw:commentRss>http://blog.vortx.com/aspdotnetstorefront/fast-and-easy-custom-buttons/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
