<?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>jc-designs.net &#187; CSS</title>
	<atom:link href="http://jc-designs.net/blog/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://jc-designs.net/blog</link>
	<description>jc-designs blog</description>
	<lastBuildDate>Mon, 21 May 2012 19:32:04 +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>Skeleton CSS Framework Review</title>
		<link>http://jc-designs.net/blog/2011/06/skeleton-css-framework-review/</link>
		<comments>http://jc-designs.net/blog/2011/06/skeleton-css-framework-review/#comments</comments>
		<pubDate>Wed, 29 Jun 2011 14:41:27 +0000</pubDate>
		<dc:creator>jcDesigns</dc:creator>
				<category><![CDATA[Product Reviews]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://jc-designs.net/blog/?p=956</guid>
		<description><![CDATA[Responsive grids to the rescue I&#8217;m not a huge fan of CSS frameworks. Not to say they are bad or anything, I just don&#8217;t care for them. I&#8217;ve tried a couple, and I thought the 960 grid did a pretty good job. There has been a lot of hype lately though for responsive design, so [...]]]></description>
			<content:encoded><![CDATA[<h3>Responsive grids to the rescue</h3>
<p>I&#8217;m not a huge fan of CSS frameworks. Not to say they are bad or anything, I just don&#8217;t care for them. I&#8217;ve tried a couple, and I thought the 960 grid did a pretty good job. There has been a lot of hype lately though for responsive design, so I thought I would take a look at one that has been getting a lot of respect and talk &#8211; <a href="http://www.getskeleton.com">Skeleton</a>.</p>
<h3>Skeleton&#8217;s CSS syntax</h3>
<p>The creator of Skeleton, <a href="http://blog.davegamache.com/">Dave Gamache</a>, deserves a lot of credit for what he has done with it. For one, I&#8217;d like to thank him for using easy to remember class names like &#8216;one-third&#8217; and &#8216;two-thirds&#8217;. I had a hard time remembering 960&#8242;s class names with .grid-whatever. He also uses things like &#8216;offset&#8217; which is easier to tell what it does by reading it, than &#8216;push&#8217; or &#8216;pull&#8217; ever did. Looking through Skeleton&#8217;s grid CSS made me really happy when I first opened it, so props to Dave.</p>
<p><span id="more-956"></span></p>
<h3>It&#8217;s a starting point, not the end line</h3>
<p>The creator says it best in his blog:</p>
<blockquote><p>&#8220;Responsive design is not a silver bullet, but it is the strongest solution to the rapidly growing set of devices web designers and developers have to account for. It would be impossible to design for individual devices and screen sizes these days &#8211; instead let’s be smart and essentially “bucket” devices into categorical sizes and design appropriately. Skeleton does just this.&#8221;</p></blockquote>
<p>Skeleton isn&#8217;t the end all be all, but it does a great job at what it does &#8211; create responsive layouts. It supports a lot of browsers, and if you are building a nice clean site, everything scales nicely. One thing to note, in IE it will not scale, you will just get the standard grid styles. Which I think is fine, people get than for the most part anyway, so IE users won&#8217;t notice anything different.</p>
<h3>Some cool features</h3>
<p>Skeleton has some nice additional things included such as Buttons and Tabs. The Buttons are just nicely styled, well&#8230;buttons. All you have to do is add the class &#8220;button&#8221; to an &#8216;a&#8217; tag, and you have a CSS3 gradient styled link. You can obviously do that kind of thing yourself, but hell its included and free, so stop bitching.</p>
<p>The tabs are created by putting the &#8216;tabs&#8217; class on a &#8216;ul&#8217;, and creates a nice tabbed navigation, which scales down beautifully when you get to smartphone screen size. While they don&#8217;t exactly look all that fancy, the Tabs are clean and work well out of the box. It does require jQuery in order to work (which is already linked to in the HTML file), but the script is so ridiculously small, if you have worked with the library before you should have no problem modifying it should you need to.</p>
<p>On top of that, there is also a simple HTML form, and an example on Skeleton&#8217;s website if you need to view it.</p>
<h3>So how is it really?</h3>
<p>Well, if you are creating a nice, clean and basic styled website, Skeleton is easy to use and kick ass at what is for. Everything is easy to use, compatible, and sizes perfectly. If on the other hand, if you are creating a site that I think most developers do, which uses a lot of CSS background images, you could be in for a lot of pain.</p>
<p>See, background images don&#8217;t resize. Images hard coded into the HTML do, but not one placed by CSS. So guess what that means? Ya, different versions for each screen size Skeleton hits. On top of that, just shrinking a graphic doesn&#8217;t mean it just works. I tried a basic test of just rebuilding portions of my home page, and just downsizing the image and writing the style it need for the appropriate screen size didn&#8217;t mean everything looked fantastic. It worked for desktop, but the design failed once it hit 760px. Everything was just to small.</p>
<p>The navigation was also hard, because it was absolutely positions within a div at the top. Well, when things move in when you resize, the top of my nav disappeared as it lined up block style from inline. So I had to rewrite the styles for that. Do you see where I am going with this?</p>
<p>If you go to Skeleton&#8217;s <a href="http://www.getskeleton.com">website</a> and resize the window to whatever, everything plays nicely. But the site is plainly designed. No real graphics or anything. Start throwing in background images, and anything positioned to somewhere specific, and all of a sudden you are not only writing styles for one screen size, but for ALL of them. Your CSS file becomes huge, and you are basically creating a new site for each size. I mean new too, because your design for one size might not look that great just scaled down to fit a smaller one. You might need two or three different looks.</p>
<p>Will it be rewarding when you are all done? Hell yes, but just after some playing around with it, it is no simple thing to do for a more complicated design. Once I really started noticing what was going to be involved I quickly realized how important it was to just stop and rethink some things. If you are going to use Skeleton on anything other than a basic site, spend a lot of time planning and visualizing how everything is going to flow and scale, or you will screw yourself later if something doesn&#8217;t work out the way you thought it was.</p>
<h3>Final thoughts</h3>
<p>Still, this is the first CSS framework I would actually seriously consider using. It&#8217;s easy to understand, clean and a very good starting point. Personally I would replace the HTML5 shim with Modernizr, but that is being nit picky, and total opinion. I really enjoyed playing around with Skeleton, and I recommend you looking at it if you are thinking about building a website using responsive design. If anything, do a small test yourself, and you will learn a lot within a half hour of building something out with it.</p>
<div class="gator">
<a  href="http://secure.hostgator.com/~affiliat/cgi-bin/affiliates/clickthru.cgi?id=jcDesigns-" rel="nofollow"><img src="http://tracking.hostgator.com/img/Shared/468x60.gif" border=0></a></p>
<p>Coupon Code: webmachine</p>
</div>
 <img src="http://jc-designs.net/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=956" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://jc-designs.net/blog/2011/06/skeleton-css-framework-review/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>jQuery Fly Out Menu Update, And Web Development Goodies</title>
		<link>http://jc-designs.net/blog/2011/05/jquery-fly-out-menu-update-and-web-development-goodies/</link>
		<comments>http://jc-designs.net/blog/2011/05/jquery-fly-out-menu-update-and-web-development-goodies/#comments</comments>
		<pubDate>Wed, 18 May 2011 18:56:52 +0000</pubDate>
		<dc:creator>jcDesigns</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://jc-designs.net/blog/?p=921</guid>
		<description><![CDATA[JC Designs update I know it has been like a week and a half since I last posted, but my life has been busy. Very busy. Today started out crazy, with a person in the UK wanting 63 psd files sliced and built. Ya, you read that right&#8230;.63! I thought to myself &#8220;Self, this could [...]]]></description>
			<content:encoded><![CDATA[<h3>JC Designs update</h3>
<p>I know it has been like a week and a half since I last posted, but my life has been busy. Very busy. Today started out crazy, with a person in the UK wanting 63 psd files sliced and built. Ya, you read that right&#8230;.63! I thought to myself &#8220;Self, this could be some good money.&#8221; All had the same outer shell, but the content areas were insanely packed with forms, icons, lists, navs&#8230;seriously a ton of work. Was for a online gaming company. You know how she found me? Googled &#8220;how to slice a psd&#8221; and I showed up on the bottom of one of the pages, she came here, clicked contact&#8230;and there you go. The problem? Budget was $1200 and needed it in 2 weeks. I actually felt bad turning that down, but there is no way I was going to go through that stress, and that amount of work for $1200. I was think at the least 5-6k.</p>
<p>Anyway, here is the list of goodies I&#8217;ll comment on later:</p>
<ul>
<li>CSS3 -moz-crisp-edges, and -webkit-mask</li>
<li>CSS3 Gradient lines under links</li>
<li>CSS Regions</li>
</ul>
<p><span id="more-921"></span></p>
<h3>jQuery Fly Out Menu Update</h3>
<p>New story now, still with me? A couple of days ago I received an really cool email from a guy that searched for &#8220;jquery fly-out menu&#8221; and got to my post <a href="http://jc-designs.net/blog/2011/01/a-simple-jquery-fly-out-menu/" target="_blank">here</a>. He thanked me a lot for the menu, but was having problems with it in IE7 and 8 after doing some modifications to it. I had already tested it in those browsers and there were no problems. Unless of course you bring the width in so that the sub menus appear above the main menu. The problem is that in IE7/8, they appear below the other main nav li&#8217;s. I thought it would be a simple fix, but after 2 hours last night, I was getting really pissed. I solved it through random guessing and some head slapping.</p>
<p>That menu puts a position: relative on all the &#8216;li&#8217; within the menu. Works fine if you don&#8217;t screw with my code because of the way I animate it. The solution? Couldn&#8217;t have been easier. Remove the relative position off of the &#8216;li&#8217;s and create a class that adds it back on hover (using jquery), and removes it on roll off. You can see the updated code on <a href="http://jc-designs.net/blog/2011/01/a-simple-jquery-fly-out-menu/" target="_blank">A Simple jQuery Fly Out Menu</a> post. Soooo&#8230;&#8221;fixed&#8221; the menu, and I got to see someone use my menu on their site. Was very cool. He also noted that I was the only developer to actually help him, and that this was the 5th menu he&#8217;d tried. Also cool was the fact that his boss was excited to put me on paid retainer to help out when needed.</p>
<h3>Recent Web Development Goodies &#8211; FF and Webkit are going nuts!</h3>
<p>Let&#8217;s start off with CSS3 -moz-crisp-edges, and -webkit-mask. Smashing Magazine had a pretty good article about <a href="http://www.smashingmagazine.com/2011/05/11/the-future-of-css-experimental-css-properties/">The Future of CSS: Experimental CSS Properties</a>. It talked about some cool new stuff, and the first one I liked was -moz-crisp-edges. This is cool if you are doing responsive design, where the images scale as your window size shrinks/expands. It avoids blurry edges on the image as it is being manipulated by the browser. The CSS looks like this:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;">html  <span style="color: #00AA00;color: #439AD0;">&#123;</span> image-rendering<span style="color: #00AA00;color: #439AD0;">:</span> -moz-crisp-edges<span style="color: #00AA00;color: #439AD0;">;</span> <span style="color: #00AA00;color: #439AD0;">&#125;</span>        <span style="color: #808080; font-style: italic;color: #439AD0;">/* all images, videos, background-images */</span>
img   <span style="color: #00AA00;color: #439AD0;">&#123;</span> -ms-interpolation-mode<span style="color: #00AA00;color: #439AD0;">:</span> nearest-neighbor<span style="color: #00AA00;color: #439AD0;">;</span> <span style="color: #00AA00;color: #439AD0;">&#125;</span> <span style="color: #808080; font-style: italic;color: #439AD0;">/* all images, IE */</span></pre></div></div>

<p>You can read more about it and a few other properties on <a href="https://developer.mozilla.org/en/CSS/image-rendering">Mozilla&#8217;s image rendering documents</a>.</p>
<p>The second one I liked was -webkit-mask. Basically it allows you to mask an image using an element with a CSS3 gradient applied to it, or a semi-transparent png. Very cool, and I can see myself using something like that with the gradient, but if I was going to go through the trouble of making a png to mask it, I might as well just create the entire thing in Photoshop. Here is what the CSS would look like:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;"><span style="color: #6666ff;color: #439AD0;">.element2</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">background</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">url</span><span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #ff0000; font-style: italic;">img/image.jpg</span><span style="color: #00AA00;color: #439AD0;">&#41;</span> <span style="color: #993333;color: #439AD0;">repeat</span><span style="color: #00AA00;color: #439AD0;">;</span>
	-webkit-mask<span style="color: #00AA00;color: #439AD0;">:</span> -webkit-gradient<span style="color: #00AA00;color: #439AD0;">&#40;</span>linear<span style="color: #00AA00;color: #439AD0;">,</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">left</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">top</span><span style="color: #00AA00;color: #439AD0;">,</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">left</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">bottom</span><span style="color: #00AA00;color: #439AD0;">,</span> from<span style="color: #00AA00;color: #439AD0;">&#40;</span>rgba<span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #cc66cc;color: #439AD0;">0</span><span style="color: #00AA00;color: #439AD0;">,</span><span style="color: #cc66cc;color: #439AD0;">0</span><span style="color: #00AA00;color: #439AD0;">,</span><span style="color: #cc66cc;color: #439AD0;">0</span><span style="color: #00AA00;color: #439AD0;">,</span><span style="color: #cc66cc;color: #439AD0;">1</span><span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">,</span> to<span style="color: #00AA00;color: #439AD0;">&#40;</span>rgba<span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #cc66cc;color: #439AD0;">0</span><span style="color: #00AA00;color: #439AD0;">,</span><span style="color: #cc66cc;color: #439AD0;">0</span><span style="color: #00AA00;color: #439AD0;">,</span><span style="color: #cc66cc;color: #439AD0;">0</span><span style="color: #00AA00;color: #439AD0;">,</span><span style="color: #cc66cc;color: #439AD0;">0</span><span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span></pre></div></div>

<h3>CSS3 Gradient lines under links</h3>
<p>I don&#8217;t know about you guys, but I build a LOT of different kinds of navigations. A very common thing I see come across my desk is to use a line between the links, or under them to show they are being hovered over. I&#8217;ve been using images to get the effect going, but this cool cat wrote some nice styles to do it with just CSS. He&#8217;s got a version that does not use pseudo-elements too! <a href="http://playground.genelocklin.com/gradient-hr/#links">Read it</a> and thank me for passing this on to you. Oh, and scroll down on his page and check out the link about adding depth to a website. Easy, simple, and I can&#8217;t believe I haven&#8217;t seen more of that.</p>
<h3>CSS Regions &#8211; Ask and ye shall receive!</h3>
<p>A while back I wrote about wishing you could <a href="http://jc-designs.net/blog/2010/08/css-wish-list-plotting-div-points/" target="_blank">create shapes using CSS</a>. Weird ass shapes, like polygons, circles or whatever. Well gues what? Adobe, of all people obviously reads my blog, and because they respect me sooooo much, decided that was a GREAT idea. It&#8217;s called <a href="http://theleggett.com/2011/05/10/css-regions-coming-soon/">CSS Regions</a>. There are a TON of different properties invovled, but here is a list from their site about it:</p>
<ul>
<li>Story threading — allows content to flow in multiple disjointed boxes expressed in CSS and HTML, making it possible to express more complex, magazine-style threaded layouts, including pull quotes and sidebars.</li>
<li>Region styling — allows content to be styled based on the region it flows into. For example, the first few lines that fit into the first region of an article may be displayed with a different color or font, or headers flowing in a particular region may have a different background color or size. Region styling is not currently implemented in the CSS Regions prototype.</li>
<li>Arbitrary content shapes and exclusions — allows content to fit into arbitrary shapes (not just rectangular boxes) or to flow around complex shapes.</li>
</ul>
<p>You can download demos of it <a href="http://labs.adobe.com/downloads/cssregions.html">here</a> and see some samples. The below CSS example is from a section of a pie chart, so this one line will make one piece of pie:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;"><span style="color: #6666ff;color: #439AD0;">.slice4</span> <span style="color: #6666ff;color: #439AD0;">.region</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
-webkit-wrap-shape<span style="color: #00AA00;color: #439AD0;">:</span> polygon<span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #933;">217px</span><span style="color: #00AA00;color: #439AD0;">,</span> <span style="color: #933;">225px</span> <span style="color: #933;">217px</span><span style="color: #00AA00;color: #439AD0;">,</span> <span style="color: #933;">225px</span> <span style="color: #933;">217px</span><span style="color: #00AA00;color: #439AD0;">,</span> <span style="color: #933;">0px</span> <span style="color: #933;">179px</span><span style="color: #00AA00;color: #439AD0;">,</span> <span style="color: #933;">3px</span> <span style="color: #933;">143px</span><span style="color: #00AA00;color: #439AD0;">,</span> <span style="color: #933;">12px</span> <span style="color: #933;">110px</span><span style="color: #00AA00;color: #439AD0;">,</span> <span style="color: #933;">26px</span> <span style="color: #933;">80px</span><span style="color: #00AA00;color: #439AD0;">,</span> <span style="color: #933;">46px</span> <span style="color: #933;">53px</span><span style="color: #00AA00;color: #439AD0;">,</span> <span style="color: #933;">70px</span> <span style="color: #933;">31px</span><span style="color: #00AA00;color: #439AD0;">,</span> <span style="color: #933;">98px</span> <span style="color: #933;">13px</span><span style="color: #00AA00;color: #439AD0;">,</span> <span style="color: #933;">131px</span> <span style="color: #933;">0px</span><span style="color: #00AA00;color: #439AD0;">,</span> <span style="color: #933;">167px</span> <span style="color: #933;">217px</span><span style="color: #00AA00;color: #439AD0;">,</span> <span style="color: #933;">225px</span> <span style="color: #933;">217px</span><span style="color: #00AA00;color: #439AD0;">,</span> <span style="color: #933;">225px</span> <span style="color: #00AA00;color: #439AD0;">&#41;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span></pre></div></div>

<p>Ok, I know I wished for it, but I really don&#8217;t want to plot all that out. This is one of those &#8220;cool&#8221; things, but totally impractical. Can&#8217;t see myself ever doing that even if it was supported by all modern browsers. Who knows though. Never say never.</p>
<h3>They are good discussion pieces, but would you use them?</h3>
<p>Honestly, these are all pretty neat. I would use the gradient lines and the -moz-crisp-edges, but the the shapes in CSS Regions&#8230;not so much. The documents talk about other things that might be useful, but I dislike things that only work in one browser.</p>
<p>What do you guys think?</p>
<div class="gator">
<a  href="http://secure.hostgator.com/~affiliat/cgi-bin/affiliates/clickthru.cgi?id=jcDesigns-" rel="nofollow"><img src="http://tracking.hostgator.com/img/Shared/468x60.gif" border=0></a></p>
<p>Coupon Code: webmachine</p>
</div>
 <img src="http://jc-designs.net/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=921" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://jc-designs.net/blog/2011/05/jquery-fly-out-menu-update-and-web-development-goodies/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web Development In 2011 Part 2: Are We Getting Dumber?</title>
		<link>http://jc-designs.net/blog/2011/04/web-development-in-2011-part-2-are-we-getting-dumber/</link>
		<comments>http://jc-designs.net/blog/2011/04/web-development-in-2011-part-2-are-we-getting-dumber/#comments</comments>
		<pubDate>Thu, 28 Apr 2011 01:56:38 +0000</pubDate>
		<dc:creator>jcDesigns</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Compass]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[sass]]></category>

		<guid isPermaLink="false">http://jc-designs.net/blog/?p=913</guid>
		<description><![CDATA[Still more no charge awesomeness Before I start my small discussion on &#8220;Are We Getting Dumber&#8221;, let me just say that there is yet even more kick ass things that have come out since I wrote the first part of this little series. Sass 3.1.0 came out, and is going by the name of Brainy [...]]]></description>
			<content:encoded><![CDATA[<h3>Still more no charge awesomeness</h3>
<p>Before I start my small discussion on &#8220;Are We Getting Dumber&#8221;, let me just say that there is yet even more kick ass things that have come out since I wrote the first part of this little series. <a href="http://sass-lang.com/">Sass 3.1.0</a> came out, and is going by the name of Brainy Betty. It added some neat stuff to its already great ability, like getting the inverse of a color, Sass based functions, keyword arguments, and more. Granted I probably won&#8217;t use a lot of it, but it is still cool that it has been updated. You can read about the improvements it received on <a href="http://sass-lang.com/docs/yardoc/file.SASS_CHANGELOG.html">Sass&#8217; changelog</a>. Just to note as well, Haml and Sass have been separated into two different gems, so you can install them independently now.</p>
<p>Compass received an update as well, going to version 0.11.1. Some things have changed in this new version which might force you to go back and rewrite some things if you update, but I&#8217;ll let you know about that when I upgrade this week. I read the change log and a couple of things stand out. First, is that the linear and radial gradient mixins have been deprecated. We&#8217;ll use the background-image mixin instead, and pass it a gradient function. Here is an example of the old way (from my site):</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;"><span style="color: #cc00cc;">#myDiv</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
<span style="color: #a1a100;color: #439AD0;">@include linear-gradient(color-stops($orange, darken($orange, 25%)), left); </span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span></pre></div></div>

<p>And what it will look like now:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;"><span style="color: #cc00cc;">#myDiv</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
<span style="color: #a1a100;color: #439AD0;">@include background-image(linear-gradient(left, $orange, darken($orange, 25%))); }</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span></pre></div></div>

<p><span id="more-913"></span><br />
The second is that Lemonade has been merged into compass. If you&#8217;ve been using Lemonade, you need to upgrade your sprites to use the new Compass Sprites. Read <a href="http://compass-style.org/CHANGELOG/">Compass&#8217; changelog</a> to get more details on everything that has been added/removed.</p>
<h3>Are web development helpers making us stupid?</h3>
<p>I don&#8217;t literally mean dumb or stupid like your IQ is dropping, but more in the sense that, are we using certain tools to make our job easier but let us skip the learning process. Take CSS3 gradients for example. How many of you can actually write out a gradient style that has several color stops? Even webkit&#8217;s? The radial gradient as well? Both versions of webkit&#8217;s syntax (Safari 4 and 5+)? I could figure out the linear, but it would take me about 5 minutes to get everything correct. The radial though? Not so much. Mostly because I don&#8217;t use it that much. Even with linear gradients though, I use things like <a href="http://www.colorzilla.com/gradient-editor/">ColorZilla&#8217;s Ultimate CSS Gradient Generator</a>, or the site <a href="http://css3please.com/">CSS3 Please!</a>.</p>
<p>All you hard-core zealots might laugh, but it is faster for me to put in two colors, copy the CSS, and paste it into my stylesheet. Of course on my freelance projects I&#8217;m using compass which uses really easy mixins (like I show above), but my point is that I save time by doing so. It would take a while to write out all the rules myself. I save a lot of time by using tools like that. In using these types of tools though, are we actually learning the new properties themselves?</p>
<p>Say you had to take a written test, and you had to write out all of the CSS3 properties you know. Then let&#8217;s say you get -1 for each you leave blank, but -2 for each you get wrong. How many new properties could you write down on a piece of paper and know you were right? I could get a few, off the top of my head: text-shadow, box-shadow, border-radius, a two color linear gradient. That is about it, and now that I know that, I&#8217;m going to correct this issue. Is this really a problem though?</p>
<h3>Does it matter?</h3>
<p>That is another question. I feel like we should be able to write out these properties off the top of my head. I also think we should use these tools if they save time. For me, any new rules I use I&#8217;ll be learning to write by hand first, and THEN use any tool I need to get it done faster. In the overall scheme of things though, how much does knowing how to write it out really matter? You could say &#8220;Maybe you don&#8217;t have access to those tools, then what? You are screwed! That&#8217;s what.&#8221; Really though, think of the last time you didn&#8217;t have the internet available to you when developing. I can&#8217;t think of many, and it didn&#8217;t end up mattering.</p>
<p>You could look at any abstract language like this as well. Is Compass and Sass dumbing my knowledge down if there is an easy mixin to use so I don&#8217;t have to write out the whole CSS? What about jQuery? CoffeeScript? Do you see my point now? We use a lot of things to speed our process up without knowing the whole picture ourselves. It reminds me of high school math where you would take a test and you had to show HOW you got the answer, not just get the correct answer. Think of jQuery as the calculator, where Javascript would be the written out method to get the same answer. Is knowing that make you more of a developer? Does just knowing how to make things work fine, or knowing HOW it works better? Hopefully you get what I&#8217;m saying there.</p>
<p><strong>What do you think?</strong></p>
<div class="gator">
<a  href="http://secure.hostgator.com/~affiliat/cgi-bin/affiliates/clickthru.cgi?id=jcDesigns-" rel="nofollow"><img src="http://tracking.hostgator.com/img/Shared/468x60.gif" border=0></a></p>
<p>Coupon Code: webmachine</p>
</div>
 <img src="http://jc-designs.net/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=913" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://jc-designs.net/blog/2011/04/web-development-in-2011-part-2-are-we-getting-dumber/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Variables, Mixins and Nesting Might Be Coming</title>
		<link>http://jc-designs.net/blog/2011/01/css-variables-mixins-and-nesting-might-be-coming/</link>
		<comments>http://jc-designs.net/blog/2011/01/css-variables-mixins-and-nesting-might-be-coming/#comments</comments>
		<pubDate>Fri, 21 Jan 2011 20:08:12 +0000</pubDate>
		<dc:creator>jcDesigns</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Sass/Less/Compass]]></category>
		<category><![CDATA[LESS]]></category>
		<category><![CDATA[sass]]></category>

		<guid isPermaLink="false">http://jc-designs.net/blog/?p=786</guid>
		<description><![CDATA[If you don&#8217;t know Sass&#8230;you might want to now I&#8217;ve read a couple of posts/articles in the past week that REALLY got me excited again about CSS. A guy over at Google, Tab Atkins, has hinted at it, and then this article by Johan Brook talks about it as well. What the hell am I [...]]]></description>
			<content:encoded><![CDATA[<h3>If you don&#8217;t know Sass&#8230;you might want to now</h3>
<p>I&#8217;ve read a couple of posts/articles in the past week that REALLY got me excited again about CSS. A guy over at Google, <a href="http://twitter.com/tabatkins">Tab Atkins</a>, has hinted at it, and then <a href="http://johanbrook.com/quickies/webkit-css-variables-mixins-nesting/">this articl</a>e by Johan Brook talks about it as well.</p>
<p>What the hell am I talking about you ask? Well by the title of this post you should have figured it out.You know all those articles I&#8217;ve posted about my experience with Sass and how much I love it? Or maybe my artilce on LESS.js? There are other articles around the net where people commented their worries and complaints on why they didn&#8217;t need or use it. Well guess what&#8230;you might want to rethink that and start learning. Variables, mixins and nesting might be coming to CSS itself. If you didn&#8217;t read the article I linked to above, Webkit is thinking about it, and it may be here as soon as the end of this year.</p>
<p><span id="more-786"></span></p>
<h3>What does this mean for web developers?</h3>
<p>Adding these things into CSS would be a dream come true, and now that there is some actual discussion going on to make this happen (and from people at Google!), that dream is closer to reality. If Chrome (I assume Safari is included in that) adds this functionality in, I think Firefox will be close behind. That&#8217;s cool and all, I know, but what does that mean for us?</p>
<p>Simple answer: A whole lot of awesome! Smaller and tight stylesheets! Possibly quicker development time. Might as well start learning it now, cause its not hard, but you do have to put some effort into it to get it down.</p>
<p>CSS seems to be growing in what it handles and does, and faster than people are learning it. Trust me, I work with people who don&#8217;t even have CSS2 down and they&#8217;ve been working with it for two years. If adding things like this culls the heard a little, I for one am all for it.</p>
<h3>What are these new features anyway?</h3>
<p>Here is a real quick example of what I have used so far in my redesign of my website, so you can see what we have to look forward to. This is from my Sass file, and is for the right sidebar of my <a href="http://jc-designs.net" target="_blank">home page</a>.</p>
<p>Below includes some variables, a couple of mixins, and some nested stuff:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;">/Variables
$dkgray<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc00cc;">#2d2d2d</span><span style="color: #00AA00;color: #439AD0;">;</span>
$orange<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc00cc;">#f15c22</span><span style="color: #00AA00;color: #439AD0;">;</span>
$wht<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc00cc;">#ffffff</span><span style="color: #00AA00;color: #439AD0;">;</span>
$w<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">1020px</span><span style="color: #00AA00;color: #439AD0;">;</span>
$r<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">right</span><span style="color: #00AA00;color: #439AD0;">;</span>
$l<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">left</span><span style="color: #00AA00;color: #439AD0;">;</span>
&nbsp;
<span style="color: #a1a100;color: #439AD0;">@mixin font ($size, $weight, $family: &quot;Arial,Helvetica,sans-serif&quot;){</span>
  <span style="color: #000000; font-weight: bold;color: #439AD0;">font</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
    family<span style="color: #00AA00;color: #439AD0;">:</span> #<span style="color: #00AA00;color: #439AD0;">&#123;</span>$family<span style="color: #00AA00;color: #439AD0;">&#125;</span><span style="color: #00AA00;color: #439AD0;">;</span>
    <span style="color: #000000; font-weight: bold;color: #439AD0;">size</span><span style="color: #00AA00;color: #439AD0;">:</span> $size<span style="color: #00AA00;color: #439AD0;">;</span>
    weight<span style="color: #00AA00;color: #439AD0;">:</span> #<span style="color: #00AA00;color: #439AD0;">&#123;</span>$weight<span style="color: #00AA00;color: #439AD0;">&#125;</span><span style="color: #00AA00;color: #439AD0;">;</span>
  <span style="color: #00AA00;color: #439AD0;">&#125;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
<span style="color: #a1a100;color: #439AD0;">@mixin sprite($left, $top) {</span>
    <span style="color: #000000; font-weight: bold;color: #439AD0;">background</span><span style="color: #00AA00;color: #439AD0;">:</span>  <span style="color: #993333;color: #439AD0;">url</span><span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #ff0000; font-style: italic;">../images/iconSprite.png</span><span style="color: #00AA00;color: #439AD0;">&#41;</span> <span style="color: #993333;color: #439AD0;">no-repeat</span> $left $top<span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#calltoAction</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">width</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">260px</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">height</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">181px</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">background</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">url</span><span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #ff0000; font-style: italic;">../images/calltoAction.png</span><span style="color: #00AA00;color: #439AD0;">&#41;</span> <span style="color: #993333;color: #439AD0;">no-repeat</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">left</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">top</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> $dkgray<span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">padding</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">25px</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #cc66cc;color: #439AD0;">0</span><span style="color: #00AA00;color: #439AD0;">;</span>
	h1 <span style="color: #00AA00;color: #439AD0;">&#123;</span>
		<span style="color: #a1a100;color: #439AD0;">@include font(16px, &quot;bold&quot;);</span>
		<span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> $dkgray<span style="color: #00AA00;color: #439AD0;">;</span>
		<span style="color: #000000; font-weight: bold;color: #439AD0;">text-align</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">center</span><span style="color: #00AA00;color: #439AD0;">;</span>
		<span style="color: #000000; font-weight: bold;color: #439AD0;">text-shadow</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">none</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #00AA00;color: #439AD0;">&#125;</span>
	h2 <span style="color: #00AA00;color: #439AD0;">&#123;</span>
		<span style="color: #a1a100;color: #439AD0;">@include font(42px, &quot;bold&quot;, &quot;Bebas, Arial,Helvetica,sans-serif&quot;);</span>
		<span style="color: #a1a100;color: #439AD0;">@include sprite(210px, 13px);</span>
		<span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> $dkgray<span style="color: #00AA00;color: #439AD0;">;</span>
		<span style="color: #000000; font-weight: bold;color: #439AD0;">text-align</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">center</span><span style="color: #00AA00;color: #439AD0;">;</span>
		<span style="color: #000000; font-weight: bold;color: #439AD0;">padding</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #933;">18px</span> <span style="color: #933;">4px</span> <span style="color: #cc66cc;color: #439AD0;">0</span><span style="color: #00AA00;color: #439AD0;">;</span>
		<span style="color: #000000; font-weight: bold;color: #439AD0;">text-shadow</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">2px</span> <span style="color: #933;">2px</span> <span style="color: #933;">3px</span> <span style="color: #cc00cc;">#999</span><span style="color: #00AA00;color: #439AD0;">;</span>
		<span style="color: #000000; font-weight: bold;color: #439AD0;">border</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">none</span><span style="color: #00AA00;color: #439AD0;">;</span>
		a <span style="color: #00AA00;color: #439AD0;">&#123;</span>
			<span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> $dkgray<span style="color: #00AA00;color: #439AD0;">;</span>
			&amp;<span style="color: #3333ff;">:hover </span><span style="color: #00AA00;color: #439AD0;">&#123;</span>
			<span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> $orange<span style="color: #00AA00;color: #439AD0;">;</span>
			<span style="color: #00AA00;color: #439AD0;">&#125;</span>
		<span style="color: #00AA00;color: #439AD0;">&#125;</span>
	<span style="color: #00AA00;color: #439AD0;">&#125;</span>
	h3 <span style="color: #00AA00;color: #439AD0;">&#123;</span>
		<span style="color: #a1a100;color: #439AD0;">@include font(16px, &quot;bold&quot;);</span>
		<span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> $dkgray<span style="color: #00AA00;color: #439AD0;">;</span>
		<span style="color: #000000; font-weight: bold;color: #439AD0;">text-align</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">right</span><span style="color: #00AA00;color: #439AD0;">;</span>
		<span style="color: #000000; font-weight: bold;color: #439AD0;">margin</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #933;">20px</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #cc66cc;color: #439AD0;">0</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #00AA00;color: #439AD0;">&#125;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span></pre></div></div>

<p>The tag with an id of #calltoAction has a variable call:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;"><span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> $dkgray</pre></div></div>

<p>Now, $dkgray is set to #2d2d2d, but the best part is, I don&#8217;t have to remember the damn hex code for that color. Seems silly at first, but takes less thinking on my part, and really easy to change that color across the board if I have to. No find and replace needed.</p>
<p>You will also see that there is an h1 nested with in that #calltoAction, which only styles the h1 tags within it. This avoids repetition by nesting selectors within one another. Awesome. If you look at the above code you can see I&#8217;ve nested some things even deeper, to style the &#8216;h2 a&#8217; styles.</p>
<p>There is also the mixin calls. If you look at the top of the code above, you see a mixin for the sprite. Anytime I want to use that same sprite (and I do quite often), I type something like this:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;"><span style="color: #a1a100;color: #439AD0;">@include sprite(210px, 13px);</span></pre></div></div>

<p>All that I have to change each time are the pixel numbers for the position. This means less typing and smaller file sizes when all of these things are used. A LOT less repetition goes on throughout as well.</p>
<h3>What do you think about this?</h3>
<p>Sass and Compass let me do this cool crap now, but if CSS gets this functionality, and compiling happens in browser, there is going to be a lot of happiness. Probably a lot of grumbling and haters as well, but who cares about them? CSS was becoming tedious to write for me without Sass. This will make it fun again for me, and a lot faster to write. I think it needed it, and this is long over due. What do you guys think?</p>
<div class="gator">
<a  href="http://secure.hostgator.com/~affiliat/cgi-bin/affiliates/clickthru.cgi?id=jcDesigns-" rel="nofollow"><img src="http://tracking.hostgator.com/img/Shared/468x60.gif" border=0></a></p>
<p>Coupon Code: webmachine</p>
</div>
 <img src="http://jc-designs.net/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=786" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://jc-designs.net/blog/2011/01/css-variables-mixins-and-nesting-might-be-coming/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Trying Out A Simple CSS3 Animation</title>
		<link>http://jc-designs.net/blog/2010/11/trying-out-a-simple-css3-animation/</link>
		<comments>http://jc-designs.net/blog/2010/11/trying-out-a-simple-css3-animation/#comments</comments>
		<pubDate>Thu, 11 Nov 2010 04:24:14 +0000</pubDate>
		<dc:creator>jcDesigns</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://jc-designs.net/blog/?p=642</guid>
		<description><![CDATA[Simple animation, harder to implement That sums it up quite nicely I think. If you click on the demo below (my actual redesign) and look at it in Chrome (or Safari, though I didn&#8217;t look I&#8217;ll assume it works there), you will notice that when you roll over the social media icons in the right [...]]]></description>
			<content:encoded><![CDATA[<h3>Simple animation, harder to implement</h3>
<p>That sums it up quite nicely I think. If you click on the demo below (my actual redesign) and look at it in Chrome (or Safari, though I didn&#8217;t look I&#8217;ll assume it works there), you will notice that when you roll over the social media icons in the right sidebar, they will change size. I was very proud of myself for accomplishing what I think very few web developers actually use. I&#8217;ll go over what I think about CSS3 Animations at the end of the article, but for now, let&#8217;s go over how I accomplished this.</p>
<p><a href="http://jc-designs.net/index2010.php" target="_blank" class="viewDemo">View Demo</a></p>
<p><span id="more-642"></span><br />
Cool eh? Until you actually see how much CSS is needed to accomplish this. Keep in mind that I wrote this in Sass (and using Compass&#8217; built in CSS3 mixins), so it actually took waaaaay less lines to do. What I&#8217;ll show you though is the actual CSS output that you would have to write if you are NOT writing Sass&#8230;which is most of you. The icons are in an unordered list, just so you are informed</p>
<p>The first part are the styles for the li&#8217;s:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;"><span style="color: #cc00cc;">#social</span> ul li <span style="color: #00AA00;color: #439AD0;">&#123;</span>
<span style="color: #000000; font-weight: bold;color: #439AD0;">list-style</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">none</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #000000; font-weight: bold;color: #439AD0;">float</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">left</span><span style="color: #00AA00;color: #439AD0;">;</span>
-moz-transform<span style="color: #00AA00;color: #439AD0;">:</span> scale<span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #cc66cc;color: #439AD0;">1</span><span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">;</span>
-webkit-transform<span style="color: #00AA00;color: #439AD0;">:</span> scale<span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #cc66cc;color: #439AD0;">1</span><span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">;</span>
-o-transform<span style="color: #00AA00;color: #439AD0;">:</span> scale<span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #cc66cc;color: #439AD0;">1</span><span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">;</span>
transform<span style="color: #00AA00;color: #439AD0;">:</span> scale<span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #cc66cc;color: #439AD0;">1</span><span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">;</span>
-webkit-animation-name<span style="color: #00AA00;color: #439AD0;">:</span> resize2<span style="color: #00AA00;color: #439AD0;">;</span>
-webkit-animation-duration<span style="color: #00AA00;color: #439AD0;">:</span> .5s<span style="color: #00AA00;color: #439AD0;">;</span>
-webkit-animation-iteration-count<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">1</span><span style="color: #00AA00;color: #439AD0;">;</span>
-webkit-animation-timing-function<span style="color: #00AA00;color: #439AD0;">:</span> ease-in-out<span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span></pre></div></div>

<p>As you can see I have a transform: scale on there that is actually keeping it the actual size it should be. That is because there is a hover on the li that will increase its size, so I need the un-hovered li to be at the default. After that you have a call to an animation called &#8216;resize2&#8242;. Remember that, because you&#8217;ll see what is going on with that in a bit. I want the animation to last a half second, iteration-count means how many times and I only want it to run once, and then I want it to ease in and out smoothly. So far so good?</p>
<p>Now for the li:hover styles:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;"><span style="color: #cc00cc;">#social</span> ul li<span style="color: #3333ff;">:hover </span><span style="color: #00AA00;color: #439AD0;">&#123;</span>
-moz-transform<span style="color: #00AA00;color: #439AD0;">:</span> scale<span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #cc66cc;color: #439AD0;">1.1</span><span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">;</span>
-webkit-transform<span style="color: #00AA00;color: #439AD0;">:</span> scale<span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #cc66cc;color: #439AD0;">1.1</span><span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">;</span>
-o-transform<span style="color: #00AA00;color: #439AD0;">:</span> scale<span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #cc66cc;color: #439AD0;">1.1</span><span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">;</span>
transform<span style="color: #00AA00;color: #439AD0;">:</span> scale<span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #cc66cc;color: #439AD0;">1.1</span><span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">;</span>
-webkit-animation-name<span style="color: #00AA00;color: #439AD0;">:</span> resize<span style="color: #00AA00;color: #439AD0;">;</span>
-webkit-animation-duration<span style="color: #00AA00;color: #439AD0;">:</span> .5s<span style="color: #00AA00;color: #439AD0;">;</span>
-webkit-animation-iteration-count<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">1</span><span style="color: #00AA00;color: #439AD0;">;</span>
-webkit-animation-timing-function<span style="color: #00AA00;color: #439AD0;">:</span> ease-in-out<span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span></pre></div></div>

<p>There are two things different here. First I am scaling the size to 1.1 of what the actual size is. This says that when you hover over the &#8216;li&#8217;, make it bigger. Second, I am calling an animation called &#8216;resize&#8217;. NOW for the fun stuff.</p>
<h3>Animations &#8211; Think of Flash frames written out as text commands</h3>
<p>That is exactly what came to mind when I was writing it last night. Remember when I said remember &#8216;resize2&#8242;? Well here are the two actual animations that the li&#8217;s are calling:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;"><span style="color: #a1a100;color: #439AD0;">@-webkit-keyframes resize {</span>
	<span style="color: #933;">0%</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	-moz-transform<span style="color: #00AA00;color: #439AD0;">:</span> scale<span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #cc66cc;color: #439AD0;">1</span><span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">;</span>
	-webkit-transform<span style="color: #00AA00;color: #439AD0;">:</span> scale<span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #cc66cc;color: #439AD0;">1</span><span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">;</span>
	-o-transform<span style="color: #00AA00;color: #439AD0;">:</span> scale<span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #cc66cc;color: #439AD0;">1</span><span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">;</span>
	transform<span style="color: #00AA00;color: #439AD0;">:</span> scale<span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #cc66cc;color: #439AD0;">1</span><span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #00AA00;color: #439AD0;">&#125;</span>
  <span style="color: #933;">100%</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
  -moz-transform<span style="color: #00AA00;color: #439AD0;">:</span> scale<span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #cc66cc;color: #439AD0;">1.1</span><span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">;</span>
  -webkit-transform<span style="color: #00AA00;color: #439AD0;">:</span> scale<span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #cc66cc;color: #439AD0;">1.1</span><span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">;</span>
  -o-transform<span style="color: #00AA00;color: #439AD0;">:</span> scale<span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #cc66cc;color: #439AD0;">1.1</span><span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">;</span>
  transform<span style="color: #00AA00;color: #439AD0;">:</span> scale<span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #cc66cc;color: #439AD0;">1.1</span><span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">;</span>
  <span style="color: #00AA00;color: #439AD0;">&#125;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
<span style="color: #a1a100;color: #439AD0;">@-webkit-keyframes resize2 {</span>
	<span style="color: #933;">0%</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	-moz-transform<span style="color: #00AA00;color: #439AD0;">:</span> scale<span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #cc66cc;color: #439AD0;">1.1</span><span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">;</span>
	-webkit-transform<span style="color: #00AA00;color: #439AD0;">:</span> scale<span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #cc66cc;color: #439AD0;">1.1</span><span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">;</span>
	-o-transform<span style="color: #00AA00;color: #439AD0;">:</span> scale<span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #cc66cc;color: #439AD0;">1.1</span><span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">;</span>
	transform<span style="color: #00AA00;color: #439AD0;">:</span> scale<span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #cc66cc;color: #439AD0;">1.1</span><span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #00AA00;color: #439AD0;">&#125;</span>
  <span style="color: #933;">100%</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
  -moz-transform<span style="color: #00AA00;color: #439AD0;">:</span> scale<span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #cc66cc;color: #439AD0;">1</span><span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">;</span>
  -webkit-transform<span style="color: #00AA00;color: #439AD0;">:</span> scale<span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #cc66cc;color: #439AD0;">1</span><span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">;</span>
  -o-transform<span style="color: #00AA00;color: #439AD0;">:</span> scale<span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #cc66cc;color: #439AD0;">1</span><span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">;</span>
  transform<span style="color: #00AA00;color: #439AD0;">:</span> scale<span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #cc66cc;color: #439AD0;">1</span><span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">;</span>
  <span style="color: #00AA00;color: #439AD0;">&#125;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span></pre></div></div>

<p>Looks like a sort of jQuery function or if/else statement&#8230;or something. Either way, it is crazy to look at, and it helps if you think of it as a Flash tween. The first animation, &#8216;resize&#8217;, is actually for the &#8216;li:hover&#8217;, which says at 0% (think frame 1 in Flash) start out at the default size, and at 100% (last frame in Flash animation) make it 10% bigger (the 1.1). The &#8216;resize2&#8242; animation does the exact opposite which is called out on the &#8216;li&#8217; (meaning when you are not hovering on it).</p>
<p>There is one side effect on this and that is that when you reload the page, it starts the animation &#8216;resize2&#8242; because you are not hovering. Doesn&#8217;t bother me, and I find it actually cool so I left it the way it is.</p>
<h3>Now that I&#8217;ve done it, what do I think?</h3>
<p>Ok, I wrote my first actual CSS3 animation. I think it is cool, and I have rolled over it about 50 times just to give myself a pat on the back each time. What is your first thought when looking at all of that? That is a lot of css, isn&#8217;t it? Pretty much what I thought, and that is just to get the social icons to grow big and small on the hover. Now imagine if you have a ton of other crap that you want to do slick little animations to.</p>
<p>What made this a non-thing for me is that Sass and Compass make writing something like this easy. But writing it out like most of you would seems like a serious pain in the ass. I could have written something similar using jQuery in like 5 lines of code and in about 10 minutes. On the one hand I find it cool that this was done using only CSS. On the other, it is only supported in 2 browsers (Chrome and Safari) and 1 Beta&#8230;I hope (FF 4). It does the scaling in FF 3.6, just not the smooth animation. jQuery would have hit all of them.</p>
<p>I am torn between thinking how cool that is, and if something like this should even be in CSS. This goes beyond the basic styling of an element. This is doing some functionality on top, that to me can be more efficiently done in jQuery, so why in the world would I do this again? I will, but it is more of bragging rights than because I should.</p>
<p>My question to you though is two fold: Should CSS be handling this, and if yes, why would you when you could get it done quicker and with less using javascript?</p>
<p>If you want to read more on cool CSS3 animations, transitions and transforms &#8211; I highly recommend <a href="http://css3.bradshawenterprises.com/">this</a>.</p>
<div class="gator">
<a  href="http://secure.hostgator.com/~affiliat/cgi-bin/affiliates/clickthru.cgi?id=jcDesigns-" rel="nofollow"><img src="http://tracking.hostgator.com/img/Shared/468x60.gif" border=0></a></p>
<p>Coupon Code: webmachine</p>
</div>
 <img src="http://jc-designs.net/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=642" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://jc-designs.net/blog/2010/11/trying-out-a-simple-css3-animation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sass Rocks! Over Complicating Your CSS Doesn&#8217;t</title>
		<link>http://jc-designs.net/blog/2010/10/sass-rocks-over-complicating-your-css-doesnt/</link>
		<comments>http://jc-designs.net/blog/2010/10/sass-rocks-over-complicating-your-css-doesnt/#comments</comments>
		<pubDate>Tue, 19 Oct 2010 03:24:50 +0000</pubDate>
		<dc:creator>jcDesigns</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[sass]]></category>

		<guid isPermaLink="false">http://jc-designs.net/blog/?p=600</guid>
		<description><![CDATA[Unless you are careful of course So I&#8217;m in the middle of redesigning/rebuilding my main site, as you would know if you are keeping up with me here, and I am using Sass (SCSS syntax). I love it so far. There is a lot you can do to save you time during the build. There [...]]]></description>
			<content:encoded><![CDATA[<h3>Unless you are careful of course</h3>
<p>So I&#8217;m in the middle of redesigning/rebuilding my main site, as you would know if you are keeping up with me here, and I am using Sass (SCSS syntax). I love it so far. There is a lot you can do to save you time during the build. There is also the &#8220;This new crap I&#8217;m using is awesome! I&#8217;m going to do this and this and this&#8230;&#8221;, which can get you in trouble. What kind of trouble you ask? The kind that over complicates your CSS of course. Stop talking and read please! Jeez, I&#8217;ll tell you how you can easily do that.</p>
<h3>Think before you leap</h3>
<p>A day after starting my build using this awesome technology, and no it isn&#8217;t new, but it is still fairly new to me. Syntactically Awesome Stylesheets has some cool features that you immediately want to dive into. Variables are the easiest, and it is kind of hard to abuse those. Mixins though, that is where I got into trouble. A good example, which you might have seen in my last post is a mixin I was using for &#8216;font&#8217;. Seemed like a great idea at the time! Let&#8217;s shorten that CSS so that I only have to type in the properties that will feed the mixin. What could be wrong with that? Well, technically nothing, but it also wasn&#8217;t helping me and I was just adding to the confusion with a completely stupid mixin (at least in this case). Here is what I am talking about:</p>
<p><span id="more-600"></span></p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;"><span style="color: #a1a100;color: #439AD0;">@mixin font ($size, $weight, $family){</span>
  <span style="color: #000000; font-weight: bold;color: #439AD0;">font</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
    <span style="color: #000000; font-weight: bold;color: #439AD0;">size</span><span style="color: #00AA00;color: #439AD0;">:</span> $size<span style="color: #00AA00;color: #439AD0;">;</span>
    weight<span style="color: #00AA00;color: #439AD0;">:</span> $weight<span style="color: #00AA00;color: #439AD0;">;</span>
    family<span style="color: #00AA00;color: #439AD0;">:</span> $family<span style="color: #00AA00;color: #439AD0;">;</span>
  <span style="color: #00AA00;color: #439AD0;">&#125;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span></pre></div></div>

<p>To use that mixin, I then type out this SCSS:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;"><span style="color: #6666ff;color: #439AD0;">.myClass</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
<span style="color: #a1a100;color: #439AD0;">@include font(18px, &quot;bold&quot;, &quot;Arial,Helvetica,sans-serif&quot;);</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span></pre></div></div>

<p>What is wrong with that? Well, let&#8217;s actually write out the CSS for it:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;"><span style="color: #6666ff;color: #439AD0;">.myClass</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
<span style="color: #000000; font-weight: bold;color: #439AD0;">font</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">bold</span> <span style="color: #933;">18px</span> Arial<span style="color: #00AA00;color: #439AD0;">,</span>Helvetica<span style="color: #00AA00;color: #439AD0;">,</span><span style="color: #993333;color: #439AD0;">sans-serif</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span></pre></div></div>

<p>It&#8217;s actually shorter to write the CSS out rather than using the Sass mixin for it. That was my problem. And not just there. I had a few others with the same exact problem. How did I fix it? I sat there staring at the small amount of CSS I had and actually thought out everything. Where is Sass going to save me time, and where am I being stupid? So I thought about it, and rewrote the mixin. I changed it to have a defualt family since most of the time I am going to be using Arial anyway. The rare occasions where I won&#8217;t is where that variable will come in handy.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;"><span style="color: #a1a100;color: #439AD0;">@mixin font ($size, $weight, $family: &quot;Arial,Helvetica,sans-serif&quot;){</span>
  <span style="color: #000000; font-weight: bold;color: #439AD0;">font</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
    family<span style="color: #00AA00;color: #439AD0;">:</span> #<span style="color: #00AA00;color: #439AD0;">&#123;</span>$family<span style="color: #00AA00;color: #439AD0;">&#125;</span><span style="color: #00AA00;color: #439AD0;">;</span>
    <span style="color: #000000; font-weight: bold;color: #439AD0;">size</span><span style="color: #00AA00;color: #439AD0;">:</span> $size<span style="color: #00AA00;color: #439AD0;">;</span>
    weight<span style="color: #00AA00;color: #439AD0;">:</span> #<span style="color: #00AA00;color: #439AD0;">&#123;</span>$weight<span style="color: #00AA00;color: #439AD0;">&#125;</span><span style="color: #00AA00;color: #439AD0;">;</span>
  <span style="color: #00AA00;color: #439AD0;">&#125;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span></pre></div></div>

<p>Now I don&#8217;t have to type in the family every time because that is my default. Why be repetitive? That is the beauty of using this. I then wrote this mixin for using a sprite over and over again:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;"><span style="color: #a1a100;color: #439AD0;">@mixin sprite($left, $top) {</span>
    <span style="color: #000000; font-weight: bold;color: #439AD0;">background</span><span style="color: #00AA00;color: #439AD0;">:</span>  <span style="color: #993333;color: #439AD0;">url</span><span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #ff0000; font-style: italic;">../images/iconSprite.png</span><span style="color: #00AA00;color: #439AD0;">&#41;</span> <span style="color: #993333;color: #439AD0;">no-repeat</span> $left $top<span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span></pre></div></div>

<p>Now I just have to write &#8220;@include sprite(0, 0)&#8221; to get the sprite call&#8217;s position. This to me is being smart. Mixins should be used to reduce the amount of CSS you have to write later. Using Compass&#8217; &#8216;@import&#8217; to use some of the CSS3 stuff like border-radius and box-shadow was a good call too. When you use that and Sass together, it only takes one line to output the necessary 5 lines for browser pre-fixes. Brilliant! That is the kind of thing I needed to think about. I don&#8217;t want to use Sass just because it is cool, I want to use it the way it should be used &#8211; making dev time faster, and very easy to read/use stylesheets.</p>
<h3>Just because you can doesn&#8217;t mean you should</h3>
<p>This is my main point, and can be applied to any new tech we find or use in our development process. I imagine somewhere there are some people that used every dam CSS3 trick they could because they could, and because it was the new thing. You know, an element with box-shadow, text-shadow, border-radius, gradients, transitions&#8230;you name it, all on one thing. Why? For the look at what I did factor. I want to avoid that with my use of Sass. This build might take me longer than normal, but I want to make sure I&#8217;m not doing anything stupid, so I&#8217;m slowing down and thinking about what I am trying to do first. Where am I going to be calling the same thing over and over, and where will it matter?</p>
<p>I know that sounds silly, because shouldn&#8217;t we be doing that anyway? Yes. But how many times have you designed and sliced up a psd file, know exactly what divs/elements you need and just blaze ahead? I do most of the time. We just start typing away and plugging in everything &#8211; header div here, nav there, sidebar over there, footer here&#8230;need a ul for the nav and one for the footer, bunch of li&#8217;s and links. A lot of it takes no thought at all. You are done before you know it. While I am doing the layout like that no problem, the CSS is taking longer and I think it will help in the long-run. By slowing down and actually thinking about where a mixin would actually help, it&#8217;s helping me by thinking more clearly on my CSS.</p>
<p>I am hoping that by documenting what I am doing using Sass I will help you developers that are new to it, because honestly it is very hard to find information out there that is geared towards the newbie. Most of what I have found is written differently than what I am using (because they are using the original Sass syntax, where I am using its new one &#8211; SCSS) and written as if you are already familiar with it.</p>
<p>Again if you have any tips or pointers, please leave a comment and let me know. If you are just starting to use Sass/SCSS and want a good place to go to read up on it, check out <a href="http://blog.derekperez.com/">Derek Perez&#8217;s</a> blog. Tool around there and you will find some good info. I&#8217;d recommend <a href="http://twitter.com/perezd">following him on twitter</a> as well, because he&#8217;ll tweet some good stuff. He is also very helpful if you have questions.</p>
<div class="gator">
<a  href="http://secure.hostgator.com/~affiliat/cgi-bin/affiliates/clickthru.cgi?id=jcDesigns-" rel="nofollow"><img src="http://tracking.hostgator.com/img/Shared/468x60.gif" border=0></a></p>
<p>Coupon Code: webmachine</p>
</div>
 <img src="http://jc-designs.net/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=600" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://jc-designs.net/blog/2010/10/sass-rocks-over-complicating-your-css-doesnt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Sass(SCSS) On My Website Redesign</title>
		<link>http://jc-designs.net/blog/2010/10/using-sassscss-on-my-website-redesign/</link>
		<comments>http://jc-designs.net/blog/2010/10/using-sassscss-on-my-website-redesign/#comments</comments>
		<pubDate>Thu, 14 Oct 2010 04:11:45 +0000</pubDate>
		<dc:creator>jcDesigns</dc:creator>
				<category><![CDATA[Sass/Less/Compass]]></category>
		<category><![CDATA[Compass]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[sass]]></category>

		<guid isPermaLink="false">http://jc-designs.net/blog/?p=594</guid>
		<description><![CDATA[Out with 960gs, in with Sass Note: I have included at the bottom of this article, the actual Sass/CSS I have written for my redesign. When I am completely finished with the build, I will post the whole thing for you to view. If you see anything I am doing wrong, poorly, or stupid, PLEASE [...]]]></description>
			<content:encoded><![CDATA[<h3>Out with 960gs, in with Sass</h3>
<p><em><strong>Note: I have included at the bottom of this article, the actual Sass/CSS I have written for my redesign. When I am completely finished with the build, I will post the whole thing for you to view. If you see anything I am doing wrong, poorly, or stupid, PLEASE inform me. I am learning too!</strong></em><br />
If you read my post yesterday, you will know that I will not be using the 960gs on my main site redesign. Not because it is bad, but because it isn&#8217;t going to fit with the project. What I WILL be using though, is <a href="http://sass-lang.com/">Sass</a>. I&#8217;ve done a couple of articles already on it, which you can read below if you wish:</p>
<ul>
<li><a href="http://jc-designs.net/blog/2010/06/test-driving-sass-3-a-second-look-at-sass/" target="_blank">Test driving Sass 3…a second look at Sass</a></li>
<li><a href="http://jc-designs.net/blog/2010/07/taking-less-js-for-a-spin-and-how-does-it-compare-to-sass-3/" target="_blank">Taking LESS.js for a spin, and how does it compare to Sass 3</a></li>
</ul>
<p>My goal in using Sass for my redesign is to 1) get more familiar with it and learn the syntax better, and 2) well, to say that I did. Always good to learn, and if anyone happened to care, I can always stick it in the resume. One thing I have noticed is that there is no really good reference to using it. An e-book would be great, as it doesn&#8217;t need to be very long. Hell I would even settle for an article that posts the Sass styles for a complete site that uses all the CSS3 styles.</p>
<p>Take a look at what I have built so far:</p>
<p><a href="http://www.jc-designs.net/index2010.php" class="viewDemo" target="_blank">View Demo</a></p>
<p><span id="more-594"></span></p>
<h3>Speaking of CSS3 styles in SCSS</h3>
<p>If you read my other articles, you will know that SCSS is the new syntax for Sass, and reads/writes pretty close to how you would write your normal CSS. Except for the fact that it has all the extra goodies. Anyway, I using <a href="http://compass-style.org/">Compass</a> (which includes the blueprint framework &#8211; which I ditched) to compile the Sass into CSS, and while looking through its support and reference I read about CSS3 mixins. If you wanted to do a border-radius on something, you would write this in Sass:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;"><span style="color: #6666ff;color: #439AD0;">.myClass</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
<span style="color: #a1a100;color: #439AD0;">@include border-radius(5px);</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span></pre></div></div>

<p>And the output into CSS would look like this:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;"><span style="color: #6666ff;color: #439AD0;">.myClass</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
-moz-border-radius<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;color: #439AD0;">;</span>
-webkit-border-radius<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;color: #439AD0;">;</span>
-o-border-radius<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;color: #439AD0;">;</span>
-ms-border-radius<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;color: #439AD0;">;</span>
-khtml-border-radius<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;color: #439AD0;">;</span>
border-radius<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span></pre></div></div>

<p>Even if you only write 3 or 4 of those lines of CSS normally, you did it in 1 line of Sass. This is where I think the brilliance and power of Sass comes into play. Now, you can&#8217;t just get that to work by itself, the solution to actually get it to do that is by including this at the top of your .scss file and you are good to go:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;"><span style="color: #a1a100;color: #439AD0;">@import 'compass/css3';</span></pre></div></div>

<h3>Nested styles</h3>
<p>There is so much I still don&#8217;t know about the syntax and what it can do, what I do know is enough for me to want to use the hell out of it. Nested styles is one of those. Personally, I hate having to write styles for stuff like unordered lists, because you have to write out several styles (ie &#8211; nav ul, nav li, nav a, nav a:hover). In Sass, you can do it with one. Here is an example of what I have done with my redesign:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;">nav li <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">float</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">left</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">border-right</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">1px</span> $orange <span style="color: #993333;color: #439AD0;">dotted</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">margin</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #933;">12px</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #cc66cc;color: #439AD0;">0</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">padding</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #933;">12px</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #cc66cc;color: #439AD0;">0</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">line-height</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">18px</span><span style="color: #00AA00;color: #439AD0;">;</span>
	a <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> $orange<span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">text-decoration</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">none</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">display</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">block</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">float</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">left</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #a1a100;color: #439AD0;">@include font(18px);</span>
	<span style="color: #6666ff;color: #439AD0;">.byline</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
		<span style="color: #a1a100;color: #439AD0;">@include font(14px);</span>
		<span style="color: #000000; font-weight: bold;color: #439AD0;">font-weight</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">normal</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #00AA00;color: #439AD0;">&#125;</span>
	<span style="color: #00AA00;color: #439AD0;">&#125;</span>
	a<span style="color: #3333ff;">:hover </span><span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> $wht<span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span></pre></div></div>

<p>Here is the output in CSS:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;">nav <span style="color: #00AA00;color: #439AD0;">&#123;</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">position</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">absolute</span><span style="color: #00AA00;color: #439AD0;">;</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">top</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">225px</span><span style="color: #00AA00;color: #439AD0;">;</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">left</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">35px</span><span style="color: #00AA00;color: #439AD0;">;</span> <span style="color: #00AA00;color: #439AD0;">&#125;</span>
nav li <span style="color: #00AA00;color: #439AD0;">&#123;</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">float</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">left</span><span style="color: #00AA00;color: #439AD0;">;</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">border-right</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#f15c22</span> <span style="color: #993333;color: #439AD0;">dotted</span><span style="color: #00AA00;color: #439AD0;">;</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">margin</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #933;">12px</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #cc66cc;color: #439AD0;">0</span><span style="color: #00AA00;color: #439AD0;">;</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">padding</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #933;">12px</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #cc66cc;color: #439AD0;">0</span><span style="color: #00AA00;color: #439AD0;">;</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">line-height</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">18px</span><span style="color: #00AA00;color: #439AD0;">;</span> <span style="color: #00AA00;color: #439AD0;">&#125;</span>
nav li a <span style="color: #00AA00;color: #439AD0;">&#123;</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc00cc;">#f15c22</span><span style="color: #00AA00;color: #439AD0;">;</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">text-decoration</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">none</span><span style="color: #00AA00;color: #439AD0;">;</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">display</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">block</span><span style="color: #00AA00;color: #439AD0;">;</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">float</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">left</span><span style="color: #00AA00;color: #439AD0;">;</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">font-family</span><span style="color: #00AA00;color: #439AD0;">:</span> Arial<span style="color: #00AA00;color: #439AD0;">,</span>Helvetica<span style="color: #00AA00;color: #439AD0;">,</span><span style="color: #993333;color: #439AD0;">sans-serif</span><span style="color: #00AA00;color: #439AD0;">;</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">font-size</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">18px</span><span style="color: #00AA00;color: #439AD0;">;</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">font-weight</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">bold</span><span style="color: #00AA00;color: #439AD0;">;</span> <span style="color: #00AA00;color: #439AD0;">&#125;</span>
nav li a <span style="color: #6666ff;color: #439AD0;">.byline</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">font-family</span><span style="color: #00AA00;color: #439AD0;">:</span> Arial<span style="color: #00AA00;color: #439AD0;">,</span>Helvetica<span style="color: #00AA00;color: #439AD0;">,</span><span style="color: #993333;color: #439AD0;">sans-serif</span><span style="color: #00AA00;color: #439AD0;">;</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">font-size</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">14px</span><span style="color: #00AA00;color: #439AD0;">;</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">font-weight</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">bold</span><span style="color: #00AA00;color: #439AD0;">;</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">font-weight</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">normal</span><span style="color: #00AA00;color: #439AD0;">;</span> <span style="color: #00AA00;color: #439AD0;">&#125;</span>
nav li a<span style="color: #3333ff;">:hover </span><span style="color: #00AA00;color: #439AD0;">&#123;</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">white</span><span style="color: #00AA00;color: #439AD0;">;</span> <span style="color: #00AA00;color: #439AD0;">&#125;</span></pre></div></div>

<p>If you don&#8217;t know Sass at all, the above is going to be somewhat confusing, but I actually had to write less for the Sass styles AND some of what I did write (because it includes a mixin) is reusable for other styles. Nesting lets you put element styles within the parent elements. To quote the Sass site, &#8220;avoids repetition by nesting selectors within one another.</p>
<h3>Mixins are awesome</h3>
<p>So far, I am only using one mixin, and that is for declaring the font style. Here is what that looks like:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;"><span style="color: #a1a100;color: #439AD0;">@mixin font ($size){</span>
  <span style="color: #000000; font-weight: bold;color: #439AD0;">font</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
    family<span style="color: #00AA00;color: #439AD0;">:</span> Arial<span style="color: #00AA00;color: #439AD0;">,</span>Helvetica<span style="color: #00AA00;color: #439AD0;">,</span><span style="color: #993333;color: #439AD0;">sans-serif</span><span style="color: #00AA00;color: #439AD0;">;</span>
    <span style="color: #000000; font-weight: bold;color: #439AD0;">size</span><span style="color: #00AA00;color: #439AD0;">:</span> $size<span style="color: #00AA00;color: #439AD0;">;</span>
    weight<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">bold</span><span style="color: #00AA00;color: #439AD0;">;</span>
  <span style="color: #00AA00;color: #439AD0;">&#125;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span></pre></div></div>

<p>If any of you reading this knows Sass, I have a question for YOU. While this is working for me at the moment, I would like to pass the family into the mixin as a variable, so when I call it later I can do something like this, but where I can change the family in the call:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;"><span style="color: #a1a100;color: #439AD0;">@include font(18px Arial,Helvetica,sans-serif;);</span></pre></div></div>

<p>When I tried doing it, it was not putting a comma between each, and therefore not recognizing it at all. If you know how to do this, PLEASE LEAVE A COMMENT!</p>
<h3>Final Thoughts</h3>
<p>I am really falling in love with Sass, which sounds weird to me because at the moment it is actually slowing me down. I can see though that once I master it, my development time will greatly improve. A few things on my wish list if anyone out there knows the answers to these questions:</p>
<ul>
<li>How do I toggle the line comments on and off in the compiled CSS?</li>
<li>Can you change the format of the compiled CSS? Meaning from single line to block?</li>
<li>I&#8217;m using Compass for the compiling, but developing in PHP. The config file doesn&#8217;t seem to be doing a damn thing. Why? Its in my root directory, but even if I change the lines about the locations, nothing breaks like I thought it would.</li>
</ul>
<p>Here is the Sass file I have so far, in case you are interested (please leave pointers if you have any!)</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;"><span style="color: #a1a100;color: #439AD0;">@import &quot;compass/css3.scss&quot;;</span>
&nbsp;
<span style="color: #808080; font-style: italic;color: #439AD0;">/*Variables*/</span>
$dkgray<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc00cc;">#2d2d2d</span><span style="color: #00AA00;color: #439AD0;">;</span>
$orange<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc00cc;">#f15c22</span><span style="color: #00AA00;color: #439AD0;">;</span>
$wht<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc00cc;">#ffffff</span><span style="color: #00AA00;color: #439AD0;">;</span>
$w<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">1020px</span><span style="color: #00AA00;color: #439AD0;">;</span>
$r<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">right</span><span style="color: #00AA00;color: #439AD0;">;</span>
$l<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">left</span><span style="color: #00AA00;color: #439AD0;">;</span>
&nbsp;
<span style="color: #a1a100;color: #439AD0;">@mixin font ($size){</span>
  <span style="color: #000000; font-weight: bold;color: #439AD0;">font</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
    family<span style="color: #00AA00;color: #439AD0;">:</span> Arial<span style="color: #00AA00;color: #439AD0;">,</span>Helvetica<span style="color: #00AA00;color: #439AD0;">,</span><span style="color: #993333;color: #439AD0;">sans-serif</span><span style="color: #00AA00;color: #439AD0;">;</span>
    <span style="color: #000000; font-weight: bold;color: #439AD0;">size</span><span style="color: #00AA00;color: #439AD0;">:</span> $size<span style="color: #00AA00;color: #439AD0;">;</span>
    weight<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">bold</span><span style="color: #00AA00;color: #439AD0;">;</span>
  <span style="color: #00AA00;color: #439AD0;">&#125;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
&nbsp;
body <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">background</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">url</span><span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #ff0000; font-style: italic;">../images/background.jpg</span><span style="color: #00AA00;color: #439AD0;">&#41;</span> <span style="color: #993333;color: #439AD0;">repeat-x</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">left</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">top</span> $dkgray<span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> $wht<span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
a <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> $orange<span style="color: #00AA00;color: #439AD0;">;</span>
	zoom<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">1</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">outline</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">none</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
a<span style="color: #3333ff;">:hover </span><span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> $wht<span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
h1 <span style="color: #00AA00;color: #439AD0;">&#123;</span>
<span style="color: #000000; font-weight: bold;color: #439AD0;">font</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">bold</span> <span style="color: #933;">24px</span> Arial<span style="color: #00AA00;color: #439AD0;">,</span>Helvetica<span style="color: #00AA00;color: #439AD0;">,</span><span style="color: #993333;color: #439AD0;">sans-serif</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #000000; font-weight: bold;color: #439AD0;">text-shadow</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">2px</span> <span style="color: #933;">2px</span>  <span style="color: #933;">5px</span> $orange<span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#container</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">width</span><span style="color: #00AA00;color: #439AD0;">:</span> $w<span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">margin</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #993333;color: #439AD0;">auto</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">overflow</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">hidden</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
header <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">width</span><span style="color: #00AA00;color: #439AD0;">:</span> $w<span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">height</span><span style="color: #00AA00;color: #439AD0;">:</span>  <span style="color: #933;">337px</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">position</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">relative</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">background</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">url</span><span style="color: #00AA00;color: #439AD0;">&#40;</span>../images/jcIndex_01.png<span style="color: #00AA00;color: #439AD0;">&#41;</span> <span style="color: #993333;color: #439AD0;">no-repeat</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">left</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">top</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#contentRepeat</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">width</span><span style="color: #00AA00;color: #439AD0;">:</span> $w<span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">background</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">url</span><span style="color: #00AA00;color: #439AD0;">&#40;</span>../images/jcIndex_03.jpg<span style="color: #00AA00;color: #439AD0;">&#41;</span> <span style="color: #993333;color: #439AD0;">repeat-y</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">left</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">top</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#contentTop</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">width</span><span style="color: #00AA00;color: #439AD0;">:</span> $w<span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">background</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">url</span><span style="color: #00AA00;color: #439AD0;">&#40;</span>../images/jcIndex_02.jpg<span style="color: #00AA00;color: #439AD0;">&#41;</span> <span style="color: #993333;color: #439AD0;">no-repeat</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">left</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">top</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">min-height</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">500px</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">height</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">auto</span> !important<span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">height</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">500px</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">overflow</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">hidden</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">padding</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">80px</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #cc66cc;color: #439AD0;">0</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
<span style="color: #6666ff;color: #439AD0;">.ie6</span> <span style="color: #cc00cc;">#contentTop</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span><span style="color: #000000; font-weight: bold;color: #439AD0;">overflow</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">visible</span><span style="color: #00AA00;color: #439AD0;">;</span><span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#contentLeft</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">width</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">580px</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">float</span><span style="color: #00AA00;color: #439AD0;">:</span> $l<span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">margin</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #933;">60px</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">padding</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#contentRight</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">width</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">260px</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">float</span><span style="color: #00AA00;color: #439AD0;">:</span> $r<span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">margin</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #933;">60px</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #cc66cc;color: #439AD0;">0</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
footer <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">width</span><span style="color: #00AA00;color: #439AD0;">:</span> $w<span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">background</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">url</span><span style="color: #00AA00;color: #439AD0;">&#40;</span>../images/jcIndex_03.jpg<span style="color: #00AA00;color: #439AD0;">&#41;</span> <span style="color: #993333;color: #439AD0;">repeat-y</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">left</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">top</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#footerContent</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">width</span><span style="color: #00AA00;color: #439AD0;">:</span> $w<span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">min-height</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">222px</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">height</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">auto</span> !important<span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">height</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">222px</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">overflow</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">hidden</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">background</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">url</span><span style="color: #00AA00;color: #439AD0;">&#40;</span>../images/jcIndex_05.jpg<span style="color: #00AA00;color: #439AD0;">&#41;</span> <span style="color: #993333;color: #439AD0;">no-repeat</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">left</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">bottom</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
<span style="color: #6666ff;color: #439AD0;">.ie6</span> <span style="color: #cc00cc;">#footerContent</span>  <span style="color: #00AA00;color: #439AD0;">&#123;</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">overflow</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">visible</span><span style="color: #00AA00;color: #439AD0;">;</span><span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;color: #439AD0;">/*************** Navigation Styles *****************/</span>
&nbsp;
nav <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">position</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">absolute</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">top</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">225px</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">left</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">35px</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
nav li <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">float</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">left</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">border-right</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">1px</span> $orange <span style="color: #993333;color: #439AD0;">dotted</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">margin</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #933;">12px</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #cc66cc;color: #439AD0;">0</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">padding</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #933;">12px</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #cc66cc;color: #439AD0;">0</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">line-height</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">18px</span><span style="color: #00AA00;color: #439AD0;">;</span>
	a <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> $orange<span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">text-decoration</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">none</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">display</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">block</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">float</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">left</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #a1a100;color: #439AD0;">@include font(18px);</span>
	<span style="color: #6666ff;color: #439AD0;">.byline</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
		<span style="color: #a1a100;color: #439AD0;">@include font(14px);</span>
		<span style="color: #000000; font-weight: bold;color: #439AD0;">font-weight</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">normal</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #00AA00;color: #439AD0;">&#125;</span>
	<span style="color: #00AA00;color: #439AD0;">&#125;</span>
	a<span style="color: #3333ff;">:hover </span><span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> $wht<span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span></pre></div></div>

<div class="gator">
<a  href="http://secure.hostgator.com/~affiliat/cgi-bin/affiliates/clickthru.cgi?id=jcDesigns-"><img src="http://tracking.hostgator.com/img/Shared/468x60.gif" border=0></a></p>
<p>Coupon Code: webmachine</p>
</div>
 <img src="http://jc-designs.net/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=594" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://jc-designs.net/blog/2010/10/using-sassscss-on-my-website-redesign/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A review of the 960 Grid System</title>
		<link>http://jc-designs.net/blog/2010/10/a-review-of-the-960-grid-system/</link>
		<comments>http://jc-designs.net/blog/2010/10/a-review-of-the-960-grid-system/#comments</comments>
		<pubDate>Tue, 12 Oct 2010 20:32:03 +0000</pubDate>
		<dc:creator>jcDesigns</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://jc-designs.net/blog/?p=590</guid>
		<description><![CDATA[Thank god for a good tutorial! NOTE: I am going to review it, not go into detail into how things work &#8211; there are plenty of tutorials on that (one of which is listed below. If not for this tutorial by Joshua Johnson, I will have to admit that the 960gs is terribly confusing. He [...]]]></description>
			<content:encoded><![CDATA[<h3>Thank god for a good tutorial!</h3>
<p><strong><em>NOTE: I am going to review it, not go into detail into how things work &#8211; there are plenty of tutorials on that (one of which is listed below.</em></strong><br />
If not for <a href="http://sixrevisions.com/web_design/the-960-grid-system-made-easy/">this tutorial</a> by Joshua Johnson, I will have to admit that the 960gs is terribly confusing. He explains how the grid works in plain english, and what the push/pull classes do. I started my redesign build last night, and as previously stated before, I was going to try my hand at this whole grid thing. Follow along, and you will see what I think.</p>
<h3>Learning Curve</h3>
<p>Either I&#8217;m an idiot, or the 960gs is way harder than I thought it was going to be. How could I not understand what is going on under the hood from the get go? First, it didn&#8217;t help that I started  with the 16 column while designing in Photoshop, only to realize that I wanted the 24 when I started building it. I am already down for the count, because the grids do not line up the same way, due to there being more margin in the 16 column version.</p>
<p><span id="more-590"></span><br />
One thing that bugs the hell out of me is that the PSD files are at 1020px wide. Why is there nowhere that says why this is. Do I crop it exactly to 960? If so, why not just make the damn thing AT 960px? So what are you supposed to do? I designed it at the 1020px size and lined everything up at the column lines. I had stuff going beyond, but that was pure graphics stuff &#8211; nothing that needed to be lined up. This is the kind of thing that drives me nuts though&#8230;the site itself.</p>
<p>Here is the basic low down on learning how to use the 960 Grid System. The first time you use it, you will say to yourself &#8220;What the #@%#?&#8221; The second time you use it, it will be easier and things will start making a lot more sense. A few times in, and you will be pro. The problem though is that the tutorial I linked to above, was the first one that I actually understood on using some of the classes within the system. The actual site for it is not a great place for documentation.</p>
<h3>Let&#8217;s start with the pros</h3>
<p>I&#8217;ll start with the good stuff first, so you don&#8217;t feel I am trashing the system.</p>
<ul>
<li><strong>CSS</strong> &#8211; once you understand what each class does, it becomes a breeze to make a layout. Full width column for header, grid 10 there, grid 5 there, push this one, and pull that one. The 960gs can really speed up development.</li>
<li><strong>Measurements are done for you</strong> &#8211; No thinking about widths, margins, positions&#8230;everything is calculated for you.</li>
<li><strong>Pre-made templates are great</strong> &#8211; other than the size issues I had in the PS files, they are easy, well done, and very modifiable.</li>
<li><strong>Insane amount of templates</strong> &#8211; Sounds the same but not&#8230;the 960gs not only comes in 12, 16 or 24 column templates, it has all the css, sample code, and there is a template for pretty much every piece of software you could possible use (Photoshop, Illustrator, Indesign, Flash, Fireworks&#8230;and crap I haven&#8217;t heard of).</li>
<li>Templates/Prototypes &#8211; If you are making template based sites or just making a quick prototype, this is where the 960gs shines because of the speed factor.</li>
</ul>
<h3>The stuff I don&#8217;t like</h3>
<p>Please read this knowing that it is my opinion. I am not bashing the 960gs, I am just telling you what I think the pros and cons are.</p>
<ul>
<li><strong>Flexibility</strong> &#8211; If I want to shift things left, I have to modify the CSS. So what? Well, the damn thing is set at very particular sizes, and really, if I am going to have to adjust a bunch of the styles, I might as well have done it myself. A push or pull shoves the container a specified amount. I felt like if I changed the CSS, I was already ditching the grid.</li>
<li><strong>Semantics</strong> &#8211; while this doesn&#8217;t bother me much, if you had to hand this off to someone who didn&#8217;t know the system, they would look at the class names and scratch their head in confusion. I&#8217;m not pro at the semantic thing, but I do try.</li>
<li><strong>Classes</strong> &#8211; you can really start adding a ton of classes to the element you are styling. like &#8220;grid_5 push_1 prefix_2&#8243;&#8230;I am making that up, but you get the picture. I&#8217;ve read &#8220;Ya, but you put an id on it then&#8221;&#8230;so now I&#8217;m just cluttering crap up to make sense out of it?</li>
<li><strong>Extra containers</strong> &#8211; maybe this is just my not having enough experience, but if I put padding on say &#8220;grid_5&#8243;, I have to change the width of grid_5, but that hits all of them, so now I have to add a special class? Or add a container just to do the padding. I feel there is too much potential for divititis using the 960gs.</li>
<li><strong>Unused classes</strong> &#8211; there is going to be a bunch of classes that you will not use during a build, which then means you will most likely go through and weed them out.</li>
</ul>
<h3>Final thoughts</h3>
<p>I&#8217;m glad I tried it out, as it gave me something new to learn. Once you have learned how everything works, the 960gs can really speed up development time. Will I use it for my redesign now that I have worked through it? Not on this redesign. Will I use it for a different project? Yes! I liked it enough to have a full go at it. The photoshop templates alone are good just for design purposes. I feel I have less control over the CSS using the 960gs, but if you use it from the start, and have a clear idea of where you are going, then this is a good tool.</p>
<div class="gator">
<a  href="http://secure.hostgator.com/~affiliat/cgi-bin/affiliates/clickthru.cgi?id=jcDesigns-"><img src="http://tracking.hostgator.com/img/Shared/468x60.gif" border=0></a></p>
<p>Coupon Code: webmachine</p>
</div>
 <img src="http://jc-designs.net/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=590" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://jc-designs.net/blog/2010/10/a-review-of-the-960-grid-system/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Website update&#8230;Using the 960 Grid System</title>
		<link>http://jc-designs.net/blog/2010/10/website-update-using-the-960-grid-system/</link>
		<comments>http://jc-designs.net/blog/2010/10/website-update-using-the-960-grid-system/#comments</comments>
		<pubDate>Tue, 12 Oct 2010 03:55:14 +0000</pubDate>
		<dc:creator>jcDesigns</dc:creator>
				<category><![CDATA[Web Machine Updates]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://jc-designs.net/blog/?p=588</guid>
		<description><![CDATA[This is just an update I&#8217;m rebuilding my website, and I am learning multiple things at the same time while doing so. I&#8217;m using the HTML5 Boilerplate, HTML5 tags, the 960 Grid System (24-column), and will be using Sass. This isn&#8217;t a real post, just an update on why there won&#8217;t be one tonight. Tomorrow [...]]]></description>
			<content:encoded><![CDATA[<h3>This is just an update</h3>
<p>I&#8217;m rebuilding my website, and I am learning multiple things at the same time while doing so. I&#8217;m using the HTML5 Boilerplate, HTML5 tags, the 960 Grid System (24-column), and will be using Sass. This isn&#8217;t a real post, just an update on why there won&#8217;t be one tonight. Tomorrow I will write a review on the 960 Grid System now that I have the hang of it. Does anyone know if the HTML5 Boilerplate has a Sass option? Meaning it has the CSS written in SCSS? Would be awesome, because I do not look forward to rewriting that. Anyway, I&#8217;ll have a real post for you tomorrow.</p>
 <img src="http://jc-designs.net/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=588" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://jc-designs.net/blog/2010/10/website-update-using-the-960-grid-system/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Basics of CSS3 Transitions and Transforms</title>
		<link>http://jc-designs.net/blog/2010/10/the-basics-of-css3-transitions-and-transforms/</link>
		<comments>http://jc-designs.net/blog/2010/10/the-basics-of-css3-transitions-and-transforms/#comments</comments>
		<pubDate>Thu, 07 Oct 2010 02:41:10 +0000</pubDate>
		<dc:creator>jcDesigns</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://jc-designs.net/blog/?p=583</guid>
		<description><![CDATA[Let&#8217;s talk about support First off, we know for a fact that Safari and Chrome support Transitions, because we&#8217;ve all been using one of them to see the cool crap people have been doing. FireFox 4 will support it and they keep adding to it all the time. IE9, as of what I have read, [...]]]></description>
			<content:encoded><![CDATA[<h3>Let&#8217;s talk about support</h3>
<p>First off, we know for a fact that Safari and Chrome support Transitions, because we&#8217;ve all been using one of them to see the cool crap people have been doing. FireFox 4 will support it and they keep adding to it all the time. <a href="http://www.impressivewebs.com/css3-support-ie9/">IE9</a>, as of what I have read, will not. They are still missing a lot of other things, so this is not surprising. But since it is still too early to tell, who knows what the final product will have. The main thing to know is, if you haven&#8217;t started getting your CSS3 chops down, you should start. It won&#8217;t be long before we are using it on a regular basis. Personally, I use quite a few, but transitions is one that I have stayed away from.</p>
<p><span id="more-583"></span></p>
<h3>The basic syntax</h3>
<p>If you have used CSS3 styles, then you are used to the vendor prefixes. They might be annoying, but they make sense and it just means some additional copying. A simple transition you might have seen is to fade in the background color of a button. Here is what the CSS would look like:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;">a <span style="color: #00AA00;color: #439AD0;">&#123;</span> 
<span style="color: #000000; font-weight: bold;color: #439AD0;">width</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">100px</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #000000; font-weight: bold;color: #439AD0;">height</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">30px</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #000000; font-weight: bold;color: #439AD0;">text-align</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">center</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #000000; font-weight: bold;color: #439AD0;">padding</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">15px</span> <span style="color: #cc66cc;color: #439AD0;">0</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #000000; font-weight: bold;color: #439AD0;">display</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">block</span><span style="color: #00AA00;color: #439AD0;">;</span> 
<span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span><span style="color: #cc00cc;">#ffffff</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #000000; font-weight: bold;color: #439AD0;">background-color</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc00cc;">#000000</span><span style="color: #00AA00;color: #439AD0;">;</span>  
-webkit-transition<span style="color: #00AA00;color: #439AD0;">:</span><span style="color: #000000; font-weight: bold;color: #439AD0;">background-color</span> 1s ease-in<span style="color: #00AA00;color: #439AD0;">;</span>  
-moz-transition<span style="color: #00AA00;color: #439AD0;">:</span><span style="color: #000000; font-weight: bold;color: #439AD0;">background-color</span> 1s ease-in<span style="color: #00AA00;color: #439AD0;">;</span>  
-o-transition<span style="color: #00AA00;color: #439AD0;">:</span><span style="color: #000000; font-weight: bold;color: #439AD0;">background-color</span> 1s ease-in<span style="color: #00AA00;color: #439AD0;">;</span>  
transition<span style="color: #00AA00;color: #439AD0;">:</span><span style="color: #000000; font-weight: bold;color: #439AD0;">background-color</span> 1s ease-in<span style="color: #00AA00;color: #439AD0;">;</span>  
<span style="color: #00AA00;color: #439AD0;">&#125;</span> 
&nbsp;
a<span style="color: #3333ff;">:hover </span><span style="color: #00AA00;color: #439AD0;">&#123;</span>
<span style="color: #000000; font-weight: bold;color: #439AD0;">background-color</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc00cc;">#ff0000</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span></pre></div></div>

<p>It turns out that I had nothing to be afraid of, and neither should you. Type in the vendor prefix, then the colon, followed by the property you are transitioning, the amount of time you want the transition to take, and finally the type.</p>
<h3>Skew, Scale, Rotate, and Translate</h3>
<p>What? These are simple, yet cool. Ever create a button where the text was set at an angle, but you had to use Photoshop to do it? Well, Rotate will keep the text as actual text, and make it easier to fix if someone needs to change what it is saying. Here is what the CSS would look like for each of these:</p>
<p>Skew:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;"><span style="color: #6666ff;color: #439AD0;">.box</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
-moz-transform<span style="color: #00AA00;color: #439AD0;">:</span>skew<span style="color: #00AA00;color: #439AD0;">&#40;</span>20deg<span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">;</span>
-webkit-transform<span style="color: #00AA00;color: #439AD0;">:</span>skew<span style="color: #00AA00;color: #439AD0;">&#40;</span>20deg<span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">;</span>
-o-transform<span style="color: #00AA00;color: #439AD0;">:</span>skew<span style="color: #00AA00;color: #439AD0;">&#40;</span>20deg<span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">;</span>
transform<span style="color: #00AA00;color: #439AD0;">:</span>skew<span style="color: #00AA00;color: #439AD0;">&#40;</span>20deg<span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span></pre></div></div>

<p>Scale &#8211; the numbers are percentages, where 1 = 100%:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;"><span style="color: #6666ff;color: #439AD0;">.box</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
-moz-transform<span style="color: #00AA00;color: #439AD0;">:</span>scale<span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #cc66cc;color: #439AD0;">1</span><span style="color: #00AA00;color: #439AD0;">,</span> <span style="color: #cc66cc;color: #439AD0;">1.5</span><span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">;</span>
-webkit-transform<span style="color: #00AA00;color: #439AD0;">:</span>scale<span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #cc66cc;color: #439AD0;">1</span><span style="color: #00AA00;color: #439AD0;">,</span> <span style="color: #cc66cc;color: #439AD0;">1.5</span><span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">;</span>
-o-transform<span style="color: #00AA00;color: #439AD0;">:</span>scale<span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #cc66cc;color: #439AD0;">1</span><span style="color: #00AA00;color: #439AD0;">,</span> <span style="color: #cc66cc;color: #439AD0;">1.5</span><span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">;</span>
transform<span style="color: #00AA00;color: #439AD0;">:</span>scale<span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #cc66cc;color: #439AD0;">1</span><span style="color: #00AA00;color: #439AD0;">,</span> <span style="color: #cc66cc;color: #439AD0;">1.5</span><span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span></pre></div></div>

<p>Rotate:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;"><span style="color: #6666ff;color: #439AD0;">.box</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
-moz-transform<span style="color: #00AA00;color: #439AD0;">:</span>rotate<span style="color: #00AA00;color: #439AD0;">&#40;</span>30deg<span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">;</span>
-webkit-transform<span style="color: #00AA00;color: #439AD0;">:</span>rotate<span style="color: #00AA00;color: #439AD0;">&#40;</span>30deg<span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">;</span>
-o-transform<span style="color: #00AA00;color: #439AD0;">:</span>rotate<span style="color: #00AA00;color: #439AD0;">&#40;</span>30deg<span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">;</span>
transform<span style="color: #00AA00;color: #439AD0;">:</span>rotate<span style="color: #00AA00;color: #439AD0;">&#40;</span>30deg<span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span></pre></div></div>

<p>Translate:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;"><span style="color: #6666ff;color: #439AD0;">.box</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
-moz-transform<span style="color: #00AA00;color: #439AD0;">:</span>translate<span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #933;">100px</span><span style="color: #00AA00;color: #439AD0;">,</span> <span style="color: #933;">100px</span><span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">;</span>
-webkit-transform<span style="color: #00AA00;color: #439AD0;">:</span>translate<span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #933;">100px</span><span style="color: #00AA00;color: #439AD0;">,</span> <span style="color: #933;">100px</span><span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">;</span>
-o-transform<span style="color: #00AA00;color: #439AD0;">:</span>translate<span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #933;">100px</span><span style="color: #00AA00;color: #439AD0;">,</span> <span style="color: #933;">100px</span><span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">;</span>
transform<span style="color: #00AA00;color: #439AD0;">:</span>translate<span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #933;">100px</span><span style="color: #00AA00;color: #439AD0;">,</span> <span style="color: #933;">100px</span><span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span></pre></div></div>

<p>Easy right? Just remember that skew will distort, scale changes size, rotate turns, and translate moves. But what if you want to do more than one transition or transform? That&#8217;s what you want to know now, right? Well, good thing I did the demo that I&#8217;ll link to later, or I wouldn&#8217;t have known. There was a lot of trial and error, smiles and clapping, swearing and finger pointing at the screen, and&#8230;.some discovery.</p>
<h3>You can&#8217;t eat just one!</h3>
<p>First thing to remember: you can only have one transform or transition&#8230;how do I say this without confusing the crap out of you&#8230;property &#8216;line&#8217;. Better if I show you&#8230;</p>
<p>This is the BAD:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;">-webkit-transform<span style="color: #00AA00;color: #439AD0;">:</span> scale<span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #cc66cc;color: #439AD0;">1.5</span><span style="color: #00AA00;color: #439AD0;">,</span><span style="color: #cc66cc;color: #439AD0;">1.5</span><span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">;</span>
-webkit-transform<span style="color: #00AA00;color: #439AD0;">:</span> rotate<span style="color: #00AA00;color: #439AD0;">&#40;</span>30deg<span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">;</span></pre></div></div>

<p>Why is that bad? Oh my god, I just pasted that in, give me a second you impatient lot. Because like every other property, the second one overwrites the first. For some reason I thought the above would be different though. They are different transitions right? Yes, but of course&#8230;no. Here is what it should look like:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;">-webkit-transform<span style="color: #00AA00;color: #439AD0;">:</span> scale<span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #cc66cc;color: #439AD0;">1.5</span><span style="color: #00AA00;color: #439AD0;">,</span><span style="color: #cc66cc;color: #439AD0;">1.5</span><span style="color: #00AA00;color: #439AD0;">&#41;</span> rotate<span style="color: #00AA00;color: #439AD0;">&#40;</span>30deg<span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">;</span></pre></div></div>

<p>There is one main syntax part to note when doing multiple transitions vs transforms: use a space between each different transform, and a comma to seperate each transition. You can view my little demo below (Safari or Chrome at the moment), and immediately after is the CSS for the bottom button.</p>
<p><a href="http://www.jc-designs.net/demo/transition.html">View Demo</a></p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;"><span style="color: #cc00cc;">#backMovement</span> a <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc00cc;">#ffffff</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">display</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">block</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">width</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">120px</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">height</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">50px</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">padding</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">15px</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #933;">5px</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">text-decoration</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">none</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">text-transform</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">uppercase</span><span style="color: #00AA00;color: #439AD0;">;</span>
	-moz-border-radius<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">12px</span><span style="color: #00AA00;color: #439AD0;">;</span>
	-webkit-border-radius<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">12px</span><span style="color: #00AA00;color: #439AD0;">;</span>
	border-radius<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">12px</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">border</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#f60</span> <span style="color: #993333;color: #439AD0;">solid</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">text-shadow</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">1px</span> <span style="color: #933;">4px</span> <span style="color: #933;">8px</span> <span style="color: #cc00cc;">#F60</span><span style="color: #00AA00;color: #439AD0;">;</span>
	-moz-box-shadow<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">1px</span> <span style="color: #933;">4px</span> <span style="color: #933;">8px</span> <span style="color: #cc00cc;">#F60</span><span style="color: #00AA00;color: #439AD0;">;</span>
	-webkit-box-shadow<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">1px</span> <span style="color: #933;">4px</span> <span style="color: #933;">8px</span> <span style="color: #cc00cc;">#F60</span><span style="color: #00AA00;color: #439AD0;">;</span>
	box-shadow<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">1px</span> <span style="color: #933;">4px</span> <span style="color: #933;">8px</span> <span style="color: #cc00cc;">#F60</span><span style="color: #00AA00;color: #439AD0;">;</span>
	-moz-transform<span style="color: #00AA00;color: #439AD0;">:</span> scale<span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #cc66cc;color: #439AD0;">1.5</span><span style="color: #00AA00;color: #439AD0;">,</span><span style="color: #cc66cc;color: #439AD0;">1.5</span><span style="color: #00AA00;color: #439AD0;">&#41;</span> rotate<span style="color: #00AA00;color: #439AD0;">&#40;</span>30deg<span style="color: #00AA00;color: #439AD0;">&#41;</span> translate<span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #933;">50px</span><span style="color: #00AA00;color: #439AD0;">,</span> <span style="color: #933;">50px</span><span style="color: #00AA00;color: #439AD0;">&#41;</span> skew<span style="color: #00AA00;color: #439AD0;">&#40;</span>20deg<span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">;</span>
	-webkit-transform<span style="color: #00AA00;color: #439AD0;">:</span> scale<span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #cc66cc;color: #439AD0;">1.5</span><span style="color: #00AA00;color: #439AD0;">,</span><span style="color: #cc66cc;color: #439AD0;">1.5</span><span style="color: #00AA00;color: #439AD0;">&#41;</span> rotate<span style="color: #00AA00;color: #439AD0;">&#40;</span>30deg<span style="color: #00AA00;color: #439AD0;">&#41;</span> translate<span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #933;">50px</span><span style="color: #00AA00;color: #439AD0;">,</span> <span style="color: #933;">50px</span><span style="color: #00AA00;color: #439AD0;">&#41;</span> skew<span style="color: #00AA00;color: #439AD0;">&#40;</span>20deg<span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">;</span>
	-o-transform<span style="color: #00AA00;color: #439AD0;">:</span> scale<span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #cc66cc;color: #439AD0;">1.5</span><span style="color: #00AA00;color: #439AD0;">,</span><span style="color: #cc66cc;color: #439AD0;">1.5</span><span style="color: #00AA00;color: #439AD0;">&#41;</span> rotate<span style="color: #00AA00;color: #439AD0;">&#40;</span>30deg<span style="color: #00AA00;color: #439AD0;">&#41;</span> translate<span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #933;">50px</span><span style="color: #00AA00;color: #439AD0;">,</span> <span style="color: #933;">50px</span><span style="color: #00AA00;color: #439AD0;">&#41;</span> skew<span style="color: #00AA00;color: #439AD0;">&#40;</span>20deg<span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">;</span>
	transform<span style="color: #00AA00;color: #439AD0;">:</span> scale<span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #cc66cc;color: #439AD0;">1.5</span><span style="color: #00AA00;color: #439AD0;">,</span><span style="color: #cc66cc;color: #439AD0;">1.5</span><span style="color: #00AA00;color: #439AD0;">&#41;</span> rotate<span style="color: #00AA00;color: #439AD0;">&#40;</span>30deg<span style="color: #00AA00;color: #439AD0;">&#41;</span> translate<span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #933;">50px</span><span style="color: #00AA00;color: #439AD0;">,</span> <span style="color: #933;">50px</span><span style="color: #00AA00;color: #439AD0;">&#41;</span> skew<span style="color: #00AA00;color: #439AD0;">&#40;</span>20deg<span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">background</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">url</span><span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #ff0000; font-style: italic;">images/grid.jpg</span><span style="color: #00AA00;color: #439AD0;">&#41;</span> <span style="color: #993333;color: #439AD0;">no-repeat</span> <span style="color: #933;">0px</span> <span style="color: #933;">-104px</span><span style="color: #00AA00;color: #439AD0;">;</span>
	-moz-transition<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">background-position</span> 1s<span style="color: #00AA00;color: #439AD0;">,</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">color</span> 1s ease-in<span style="color: #00AA00;color: #439AD0;">,</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">text-shadow</span> 1s ease-in<span style="color: #00AA00;color: #439AD0;">;</span>
	-webkit-transition<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">background-position</span> 1s<span style="color: #00AA00;color: #439AD0;">,</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">color</span> 1s ease-in<span style="color: #00AA00;color: #439AD0;">;</span>
	-o-transition<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">background-position</span> 1s<span style="color: #00AA00;color: #439AD0;">,</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">color</span> 1s ease-in<span style="color: #00AA00;color: #439AD0;">;</span>
	transition<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">background-position</span> 1s<span style="color: #00AA00;color: #439AD0;">,</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">color</span> 1s ease-in<span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#backMovement</span> a<span style="color: #3333ff;">:hover</span><span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">background-position</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #cc66cc;color: #439AD0;">0</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc00cc;">#F60</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">text-shadow</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">1px</span> <span style="color: #933;">4px</span> <span style="color: #933;">8px</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span></pre></div></div>

<h3>Let&#8217;s wrap this up</h3>
<p>You can obviously see that there is a LOT of lines of css for this stupid button. It&#8217;s not even that great looking and it took 31 lines of CSS (block form of course)! Now, think about this&#8230;you want to add a gradient, use multiple images, and god knows what. I realize that realistically a lot of the CSS would be trimmed off of this button because most likely you are not going to rotate, skew, translate, color change, background position movement and who knows what else I put on there. BUT&#8230;if you think about it, most of that is not that far fetched.</p>
<p>Here is something else to consider. Let&#8217;s say you make the button in Photoshop and it is on an image sprite. Which can you do faster, the CSS method or the image method, and what will the actual file size contribution  be? Meaning which will weigh more? You do still need the background image for the CSS method. What you do save in the long run, is time on any changes.</p>
<p>One thing I like about the making a button this way is that you can have chunks of the CSS stored in snippets, so that if you need a particular part, you don&#8217;t have to write it from scratch every time.</p>
<p>What are your thoughts on this? Let&#8217;s here &#8216;em!</p>
<div class="gator">
<a  href="http://secure.hostgator.com/~affiliat/cgi-bin/affiliates/clickthru.cgi?id=jcDesigns-"><img src="http://tracking.hostgator.com/img/Shared/468x60.gif" border=0></a></p>
<p>Coupon Code: webmachine</p>
</div>
<div class="jBox">
<h2 class="jq">jQuery junkBox</h2>
<p><strong>.scroll();</strong><br />
This event is sent to an element when a person scrolls to a different place in the element. Below, a message displays when a person scrolls within an element with the class &#8216;content&#8217;.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;color: #439AD0; font-weight: bold;">$<span style="color: #009900;color: #439AD0;">&#40;</span><span style="color: #3366CC;color: #439AD0;">'.content'</span><span style="color: #009900;color: #439AD0;">&#41;</span>.<span style="color: #000066;color: #439AD0;">scroll</span><span style="color: #009900;color: #439AD0;">&#40;</span><span style="color: #003366; font-weight: bold;color: #439AD0;">function</span><span style="color: #009900;color: #439AD0;">&#40;</span><span style="color: #009900;color: #439AD0;">&#41;</span> <span style="color: #009900;color: #439AD0;">&#123;</span>
<span style="color: #000066;color: #439AD0;">alert</span><span style="color: #009900;color: #439AD0;">&#40;</span><span style="color: #3366CC;color: #439AD0;">'You are scrolling'</span><span style="color: #009900;color: #439AD0;">&#41;</span><span style="color: #339933;color: #439AD0;">;</span>
<span style="color: #009900;color: #439AD0;">&#125;</span><span style="color: #009900;color: #439AD0;">&#41;</span><span style="color: #339933;color: #439AD0;">;</span></pre></div></div>

</div>
 <img src="http://jc-designs.net/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=583" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://jc-designs.net/blog/2010/10/the-basics-of-css3-transitions-and-transforms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

