
<?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>Simon Creative &#187; CSS</title>
	<atom:link href="http://www.simoncreative.com/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.simoncreative.com</link>
	<description>Design, Web 2.0 Development and Photography</description>
	<lastBuildDate>Wed, 05 May 2010 02:04:56 +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>Image Rollover with CSS</title>
		<link>http://www.simoncreative.com/2009/04/22/image-rollover-with-css/</link>
		<comments>http://www.simoncreative.com/2009/04/22/image-rollover-with-css/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 00:12:37 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[hover effect]]></category>
		<category><![CDATA[rollover]]></category>

		<guid isPermaLink="false">http://www.simoncreative.com/?p=711</guid>
		<description><![CDATA[<div class="tutorial">
<div class="tutorial-peanut"><img src="http://www.poonut.com/images/peanut-holder.png" border="0" alt="Peanut" width="180" height="274" /></div>
</div>
If you're a novice web designer or perhaps you haven't had the time to brush up on CSS in the past few years and prefer of designing websites directly in a WYSIWYG editor such as Dreamweaver, then I'm sure you're familiar with creating rollovers. I bet you're also aware of the bulky javascript that ends up generating in your HTML file.

The image at left shows a completely javascript free rollover. It's accomplished with just a few lines of code, 1 image containing both the normal and the hover state and a single pixel transparent GIF file which will act as place holder for the effect.]]></description>
			<content:encoded><![CDATA[<div class="tutorial">
<div class="tutorial-peanut"><img src="http://www.poonut.com/images/peanut-holder.png" border="0" alt="Peanut" width="180" height="274" /></div>
</div>
<p>If you&#8217;re a novice web designer or perhaps you haven&#8217;t had the time to brush up on CSS in the past few years and prefer of designing websites directly in a WYSIWYG editor such as Dreamweaver, then I&#8217;m sure you&#8217;re familiar with creating rollovers. I bet you&#8217;re also aware of the bulky javascript that ends up generating in your HTML file.</p>
<p>The image at left shows a completely javascript free rollover. It&#8217;s accomplished with just a few lines of code, 1 image containing both the normal and the hover state and a single pixel transparent GIF file which will act as place holder for the effect.</p>
<h3>Here&#8217;s how it&#8217;s done:</h3>
<p><img class="alignleft size-full wp-image-735" title="check" src="http://www.simoncreative.com/wp-content/uploads/2009/04/check1.png" alt="check" width="87" height="150" />Lets begin by creating the image that we wish to apply a rollover effect to. In the example at top, I cropped out an image of my dog, Peanut. In order to simplify this tutorial, lets use a simpler, smaller sized image.</p>
<p>I created a prepared image at left, which you can right-click on and save for your own use. Note how the image is actually duplicated and stacked one on top of the other. This is because we will use a CSS trick to mask the top portion of the image as it loads on our page and reveal the other portion of the image as we hover over it.</p>
<h3>The hover effect is created by the following CSS:</h3>
<pre>.check {
	background-image:url(check.png);
	background-position: 0px 0px;
	width: 87px;
	height: 75px;
	}

.check:hover {
	background-image:url(check.png);
	background-position: 0px -75px;
	width: 87px;
	height: 75px;
	}</pre>
<p>Our full image measures 87px wide by 150px tall. We&#8217;re cropping it at 75px tall, which is exactly half of our image height, thus revealing only the top portion of the image (the grey check). For the hover effect to work properly, we are telling the background image to position itself up with a value of -75px, which creates the illusion of a rollover effect.</p>
<h3>The HTML looks like the following:</h3>
<pre>&lt;div class="check"&gt;
&lt;img src="check-dot.gif" width="87" height="75" /&gt;
&lt;/div&gt;</pre>
<div class="tutorial">
<div class="tutorial-rollover"><a href="http://www.simoncreative.com"><img src="http://www.poonut.com/images/peanut-holder.png" border="0" alt="check" width="87" height="75" /></a></div>
</div>
<p>The image that we&#8217;re placing in the HTML &#8220;check-dot.gif&#8221; is an additional image we need to create measuring 1px tall/wide. It&#8217;s important that this image is saved as a transparent file, preferably a GIF file. We wrap that image between the &#8220;check&#8221; class that we&#8217;ve defined in the CSS and we&#8217;re done. The final effect is shown at left.</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://www.simoncreative.com/2009/04/26/dont-shy-away-from-social-media-embrace-it/" rel="bookmark">Don't Shy Away from Social Media, Embrace it</a></li><li><a href="http://www.simoncreative.com/2009/03/07/interface-controlled-by-weather-time/" rel="bookmark">Interface Controlled by Weather & Time</a></li><li><a href="http://www.simoncreative.com/2009/04/06/peanut-gets-his-own-web-site/" rel="bookmark">Peanut Gets His Own Web Site</a></li><li><a href="http://www.simoncreative.com/2009/04/24/hdr-photography-and-workflow/" rel="bookmark">HDR Photography and Workflow</a></li><li><a href="http://www.simoncreative.com/2009/03/08/hand-full-of-peanuts/" rel="bookmark">Hand-full of Peanuts</a></li></ul></div>

<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-center">
<ul class="socials">
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.simoncreative.com/2009/04/22/image-rollover-with-css/&amp;t=Image+Rollover+with+CSS" rel="" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Image+Rollover+with+CSS+-+http://tinyurl.com/cdyzrs+(via+@simondabkowski)" rel="" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://www.simoncreative.com/2009/04/22/image-rollover-with-css/" rel="" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.simoncreative.com/2009/04/22/image-rollover-with-css/&amp;title=Image+Rollover+with+CSS" rel="" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://www.simoncreative.com/2009/04/22/image-rollover-with-css/&amp;t=Image+Rollover+with+CSS" rel="" class="external" title="Post this to MySpace">Post this to MySpace</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.simoncreative.com/2009/04/22/image-rollover-with-css/&amp;title=Image+Rollover+with+CSS" rel="" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://www.simoncreative.com/2009/04/22/image-rollover-with-css/&amp;title=Image+Rollover+with+CSS" rel="" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.simoncreative.com/2009/04/22/image-rollover-with-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Interface Controlled by Weather &amp; Time</title>
		<link>http://www.simoncreative.com/2009/03/07/interface-controlled-by-weather-time/</link>
		<comments>http://www.simoncreative.com/2009/03/07/interface-controlled-by-weather-time/#comments</comments>
		<pubDate>Sat, 07 Mar 2009 06:09:20 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Dynamic]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://www.simoncreative.com/blog/2009/03/09/interface-controled-by-weather-time/</guid>
		<description><![CDATA[<a class="lightview" href="http://www.simoncreative.com/wp-content/uploads/2009/03/tisha-night.png"><img class="alignleft size-medium wp-image-148" title="Tisha Creative Night" src="http://www.simoncreative.com/wp-content/uploads/2009/03/tisha-night-200x138.png" alt="Tisha Creative Night" width="200" height="138" /></a>I've designed <a href="http://www.tishacreative">Tisha Creative</a>'s header by stacking 2 Images on top of one another. The top layer composed of a transparent PNG file sits on top of a bottom layer containing the backdrop image. The effect of resizing the browser window and seeing the skyline slide along the backdrop is achieved through Using 2 separate background styles for each of the DIV tags containing the images.]]></description>
			<content:encoded><![CDATA[<p><a class="lightview" href="http://www.simoncreative.com/wp-content/uploads/2009/03/tisha-night.png"><img class="alignleft size-medium wp-image-148" title="Tisha Creative Night" src="http://www.simoncreative.com/wp-content/uploads/2009/03/tisha-night-200x138.png" alt="Tisha Creative Night" width="200" height="138" /></a>I&#8217;ve designed <a href="http://www.tishacreative">Tisha Creative</a>&#8217;s header by stacking 2 Images on top of one another. The top layer composed of a transparent PNG file sits on top of a bottom layer containing the backdrop image. The effect of resizing the browser window and seeing the skyline slide along the backdrop is achieved through Using 2 separate background styles for each of the DIV tags containing the images.</p>
<p>Having successfully achieved the effect I wanted to take it a step further by having the 2 images change based on local time here in Hoboken, NJ, giving our site a more personal feel. Our CEO however, gave me a challenge by stating how great it would be to have our site changed based on our local weather conditions.</p>
<p>The biggest challenge was finding a weather source online with an open API. I found that not only was Yahoo the ideal solution for this task, but that the site had over 47 different potential weather conditions for any US zip code allowing me to pull the variable directly through an RSS feed.</p>
<p><a class="lightview" href="http://www.simoncreative.com/wp-content/uploads/2009/03/tisha-storm.png"><img class="alignleft size-medium wp-image-149" title="Tisha Creative Storm" src="http://www.simoncreative.com/wp-content/uploads/2009/03/tisha-storm-200x138.png" alt="Tisha Creative Storm" width="200" height="138" /></a>I chose to work with the top 9 weather conditions, by creating 9 CSS files which load on the site based on the current forecast here in Hoboken. Combined with the day and night script the <a href="http://www.tishacreative.com">Tisha Creative</a> website has 18 distinct looks which will load based on time and weather.</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://www.simoncreative.com/2009/06/24/iphone-version-of-tisha-creative/" rel="bookmark">iPhone version of Tisha Creative</a></li><li><a href="http://www.simoncreative.com/2009/03/05/tisha-creative/" rel="bookmark">Tisha Creative</a></li><li><a href="http://www.simoncreative.com/2009/11/19/h-mag-com-goes-live/" rel="bookmark">h-MAG.com goes live!</a></li><li><a href="http://www.simoncreative.com/2009/03/18/web-hosting-search-dilemma/" rel="bookmark">Web Hosting Search Dilemma</a></li><li><a href="http://www.simoncreative.com/2009/03/23/natalie-and-simon-dot-com/" rel="bookmark">Natalie and Simon dot com</a></li></ul></div>

<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-center">
<ul class="socials">
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.simoncreative.com/2009/03/07/interface-controlled-by-weather-time/&amp;t=Interface+Controlled+by+Weather+%26+Time" rel="" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Interface+Controlled+by+Weather+%26+Time+-+http://e7t.us/4120eb+(via+@simondabkowski)" rel="" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://www.simoncreative.com/2009/03/07/interface-controlled-by-weather-time/" rel="" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.simoncreative.com/2009/03/07/interface-controlled-by-weather-time/&amp;title=Interface+Controlled+by+Weather+%26+Time" rel="" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://www.simoncreative.com/2009/03/07/interface-controlled-by-weather-time/&amp;t=Interface+Controlled+by+Weather+%26+Time" rel="" class="external" title="Post this to MySpace">Post this to MySpace</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.simoncreative.com/2009/03/07/interface-controlled-by-weather-time/&amp;title=Interface+Controlled+by+Weather+%26+Time" rel="" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://www.simoncreative.com/2009/03/07/interface-controlled-by-weather-time/&amp;title=Interface+Controlled+by+Weather+%26+Time" rel="" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.simoncreative.com/2009/03/07/interface-controlled-by-weather-time/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tisha Creative</title>
		<link>http://www.simoncreative.com/2009/03/05/tisha-creative/</link>
		<comments>http://www.simoncreative.com/2009/03/05/tisha-creative/#comments</comments>
		<pubDate>Fri, 06 Mar 2009 02:40:33 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Photoshop]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web 2.0]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://simoncreative.com/blog/?p=41</guid>
		<description><![CDATA[<a href="http://www.tishacreative.com"><img class="alignleft size-medium wp-image-51" title="Tisha Creative" src="http://simoncreative.com/wp-content/uploads/2009/03/tisha3-300x196.jpg" alt="Tisha Creative" width="180" height="118" /></a>Employed by <a href="http://www.tishacreative.com">Tisha Creative</a> for the past 2 years as a Senior Web Designer, I'm extremely fortunate to practice, learn, and deploy various Web-based projects that come through the door. The company's website has become one of my most ambitious projects to date. Working along side my Creative Director, Kevin Cale, and Art Director, Kathleen Lota, I'm constantly developing new ideas and technologies in demonstrating our potential and expertise in web design and development by utilizing our site as a model for innovative and future-foreword ideas that we're able to offer to our current and future clients.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.tishacreative.com"><img class="alignleft size-medium wp-image-51" title="Tisha Creative" src="http://simoncreative.com/wp-content/uploads/2009/03/tisha3-300x196.jpg" alt="Tisha Creative" width="180" height="118" /></a>Employed by <a href="http://www.tishacreative.com">Tisha Creative</a> for the past 2 years as a Senior Web Designer, I&#8217;m extremely fortunate to practice, learn, and deploy various Web-based projects that come through the door. The company&#8217;s website has become one of my most ambitious projects to date. Working along side my Creative Director, Kevin Cale, and Art Director, Kathleen Lota, I&#8217;m constantly developing new ideas and technologies in demonstrating our potential and expertise in web design and development by utilizing our site as a model for innovative and future-foreword ideas that we&#8217;re able to offer to our current and future clients.</p>
<p>The website follows strict XHTML web standards and validates with W3C. I&#8217;ve utilized JQeary library in displaying the various sub-content of each section of the website.</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://www.simoncreative.com/2009/06/24/iphone-version-of-tisha-creative/" rel="bookmark">iPhone version of Tisha Creative</a></li><li><a href="http://www.simoncreative.com/2009/03/07/interface-controlled-by-weather-time/" rel="bookmark">Interface Controlled by Weather & Time</a></li><li><a href="http://www.simoncreative.com/2009/11/19/h-mag-com-goes-live/" rel="bookmark">h-MAG.com goes live!</a></li><li><a href="http://www.simoncreative.com/2009/03/18/web-hosting-search-dilemma/" rel="bookmark">Web Hosting Search Dilemma</a></li><li><a href="http://www.simoncreative.com/2009/03/17/one-peanut-down-one-to-go/" rel="bookmark">One Peanut Down, One To Go</a></li></ul></div>

<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-center">
<ul class="socials">
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.simoncreative.com/2009/03/05/tisha-creative/&amp;t=Tisha+Creative" rel="" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Tisha+Creative+-+http://tinyurl.com/cmvh2f+(via+@simondabkowski)" rel="" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://www.simoncreative.com/2009/03/05/tisha-creative/" rel="" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.simoncreative.com/2009/03/05/tisha-creative/&amp;title=Tisha+Creative" rel="" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://www.simoncreative.com/2009/03/05/tisha-creative/&amp;t=Tisha+Creative" rel="" class="external" title="Post this to MySpace">Post this to MySpace</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.simoncreative.com/2009/03/05/tisha-creative/&amp;title=Tisha+Creative" rel="" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://www.simoncreative.com/2009/03/05/tisha-creative/&amp;title=Tisha+Creative" rel="" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.simoncreative.com/2009/03/05/tisha-creative/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
