<?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>Web Design Marquette, MI &#124; Middle Ear Media &#187; CSS Sprites</title>
	<atom:link href="http://middleearmedia.com/tag/css-sprites/feed/" rel="self" type="application/rss+xml" />
	<link>http://middleearmedia.com</link>
	<description>Middle Ear Media of Marquette, Michigan specializes in professional web development and creative website design.</description>
	<lastBuildDate>Mon, 30 Jan 2012 22:37:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>The 2010 Anthony Line</title>
		<link>http://middleearmedia.com/the-2010-anthony-line/</link>
		<comments>http://middleearmedia.com/the-2010-anthony-line/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 00:10:56 +0000</pubDate>
		<dc:creator>obadiah</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Anthony & Co.]]></category>
		<category><![CDATA[CSS Sprites]]></category>
		<category><![CDATA[Escanaba]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Michigan]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[redesign]]></category>
		<category><![CDATA[The Anthony Line]]></category>

		<guid isPermaLink="false">http://middleearmedia.com/?p=803</guid>
		<description><![CDATA[Although Anthony &#38; Co., Inc. has been producing advertising specialty items for over fifty years, I’ve only been designing their web site for twelve. The last major update was done about three years ago, so I was glad to get a chance to redesign basically from scratch. The idea here was to create a simple, [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop --><!-- End Shareaholic LikeButtonSetTop --><p>Although Anthony &amp; Co., Inc. has been producing advertising specialty items for over fifty years, I’ve only been designing their web site for twelve. The last major update was done about three years ago, so I was glad to get a chance to redesign basically from scratch. The idea here was to create a simple, modern design that matched the look of existing brochures.</p>
<p><img class="post-image" title="The Anthony Line" src="/Assets/images/anthonyline.jpg" alt="The Anthony Line" /><br />
<span id="more-803"></span></p>
<p>This web site was designed with <acronym title="PHP Hypertext Preprocessor">PHP</acronym> in order to utilize some of it’s advance features. A modular design was implemented to reduce redundancy. So, any element of the design that is repeated on multiple pages was written in a separate file that is added dynamically when the page loads. Also, the date in the copyright section of the footer automatically updates on the first of every year.</p>
<p>I used some <acronym title="Cascading Style Sheet">CSS</acronym> trickery to add some nice features. For instance, the main navigation bar knows what page is currently loaded and styles the corresponding link to let the visitor know what page they’re on. These particular links are also made non clickable since they lead to the same place. This should help to reduce confusion for the user.</p>
<p><img class="post-image" title="The Anthony Line" src="/Assets/images/anthonyline1.jpg" alt="The Anthony Line" /></p>
<p>Speaking of which, I wanted to make navigation very easy and intuitive. The product pages have a sub-navigation section with links to all product pages so all the products can be reached easily. These links, like the main navigation, behave differently depending on which page is loaded. </p>
<p>Each product page has a reminder about artwork specifications running vertically along the left edge. When clicked, the general information page is loaded. Also, to save the users from extensive scrolling, a <em>“Back to Top”</em> link was added to the lower right hand corner of all product pages.</p>
<p><img class="post-image" title="The Anthony Line" src="/Assets/images/anthonyline2.jpg" alt="The Anthony Line" /></p>
<p>Another cool feature is located on the main product page. Images of the products are laid out in a thumbnail gallery. Using CSS sprites and the JavaScript library JQuery, I added an animated hover effect that turns the image to gray scale and fades in a dark inner glow. </p>
<p>Check out <a href="http://anthonyco.com/" target="_blank" title="Visit anthonyco.com" class="more-link">anthonyco.com</a> to see the web site for yourself. </p>
<div class="shr-publisher-803"></div><!-- Start Shareaholic LikeButtonSetBottom --><!-- End Shareaholic LikeButtonSetBottom -->]]></content:encoded>
			<wfw:commentRss>http://middleearmedia.com/the-2010-anthony-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Sprites technique used on haidabo.com</title>
		<link>http://middleearmedia.com/css-sprites-technique-used-on-haidabo-com/</link>
		<comments>http://middleearmedia.com/css-sprites-technique-used-on-haidabo-com/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 16:44:22 +0000</pubDate>
		<dc:creator>obadiah</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS Sprites]]></category>
		<category><![CDATA[RSS]]></category>

		<guid isPermaLink="false">http://www.middleearmedia.com/?p=387</guid>
		<description><![CDATA[After being inspired the other day, I decided it was time to design a new personal site. I’ve owned the domain haidabo.com for a while, but wasn’t really sure what to do with it until now. So, it has become a place to showcase my various projects as well as aggregate RSS feeds from all [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop --><!-- End Shareaholic LikeButtonSetTop --><p>After being inspired the other day, I decided it was time to design a new personal site. I’ve owned the domain haidabo.com for a while, but wasn’t really sure what to do with it until now. So, it has become a place to showcase my various projects as well as aggregate RSS feeds from all of my sites with dynamically updated content.</p>
<p><img src="/Assets/images/haidabo1.jpg" alt="Screenshot of haidabo.com" title="Screenshot of haidabo.com" class="post-image"/><br />
<span id="more-387"></span></p>
<p>While I was designing haidabo.com, I used a technique that I’d like to share called CSS Sprites. This wasn’t my first time using sprites, but it was the first time I planned on using them to this extent. My goal was to create the entire website using only one image. How is that possible? A sprite is a large image that contains many smaller images inside it. So, I created all of the images for the site and placed them all inside one large PNG24 image with a transparent background. </p>
<p><img src="/Assets/images/haidabo-sprite.jpg" alt="Sprite from haidabo.com" title="Sprite from haidabo.com" class="post-image"/></p>
<p>When calling for an image (any image) in the CSS file, specify the sprite as the background image and give it a width and height. Then use unique IDs or classes to shift the background position specifically for each image. One problem I ran into during this process was repeating backgrounds. Sprites don’t work well for repeating images. They do have some limited ability to repeat one-dimensionally, but it’s tricky. To keep it simple, I decided to use separate images for my repeating backgrounds.</p>
<p>So, why would anyone want to use this technique? Sure, it’s a bit more work to combine all your images and set all those background positions, but in the end it will make your website more efficient. Each image that is loaded on your site requires a separate HTTP-Request (to your server). By combining images into a sprite, you reduce the amount of work your server is required to do. This may not make much of a difference for a small site without much traffic, but as the size of the site and the amount of traffic increase, this becomes more of a benefit.</p>
<p><a href="http://www.haidabo.com" class="more-link" title="Visit haidabo.com" target="_blank">haidabo.com</a></p>
<div class="shr-publisher-387"></div><!-- Start Shareaholic LikeButtonSetBottom --><!-- End Shareaholic LikeButtonSetBottom -->]]></content:encoded>
			<wfw:commentRss>http://middleearmedia.com/css-sprites-technique-used-on-haidabo-com/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

