<?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>610 Design &#187; coding</title>
	<atom:link href="http://www.610design.com/category/coding/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.610design.com</link>
	<description>Design the code</description>
	<lastBuildDate>Tue, 08 Feb 2011 12:57:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Our Solar System – An experiment with CSS3</title>
		<link>http://www.610design.com/coding/our-solar-system-%e2%80%93-an-experiment-with-css3/</link>
		<comments>http://www.610design.com/coding/our-solar-system-%e2%80%93-an-experiment-with-css3/#comments</comments>
		<pubDate>Tue, 08 Feb 2011 12:47:20 +0000</pubDate>
		<dc:creator>schoey</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[design]]></category>

		<guid isPermaLink="false">http://www.610design.com/?p=435</guid>
		<description><![CDATA[Oh. My. God. Somebody has recreated the solar system using just HTML and CSS, and yes, they didn&#8217;t forget to make it drop dead beautiful. The animation is so smooth on my iMac, and even presentable on the iPad. The attention to detail goes down to the space junk between Mars and Jupiter, and the [...]]]></description>
			<content:encoded><![CDATA[<p>Oh. My. God. Somebody has recreated the solar system using just HTML   and CSS, and yes, they didn&rsquo;t forget to make it drop dead beautiful. The   animation is so smooth on my iMac, and even presentable on the iPad.   The attention to detail goes down to the space junk between Mars and   Jupiter, and the eclipsing of the moon as it revolves around the earth.</p>
<p><a href="http://neography.com/experiment/circles/solarsystem/" target="_blank">Our Solar System</a> is by Alex Giron (@<a href="http://twitter.com/alexgiron" target="_blank">alexgiron</a>), a web developer and designer from &lsquo;Old Town Alexandria&rsquo; Virginia. He <a href="http://neography.com/journal/our-solar-system-in-css3/" target="_blank">explains his experiment</a> in a blog post:</p>
<blockquote>
<p>These past few months I&rsquo;ve been exploring CSS3, trying to   learn some of it&rsquo;s new fea&shy;tures and getting a feel for which browsers   support it. A few weeks back I put out my first experiment exploring @<a href="http://twitter.com/font">font</a>-face   and transforms. This time, I set out to experiment with border-radius,   and what I thought was going to be a boring little project turned out to   be quite interesting.</p>
</blockquote>
<p>While you&rsquo;re there, don&rsquo;t hesitate to further explore Giron&rsquo;s site <a href="http://neography.com/" target="_blank">&lsquo;neograhy&rsquo;</a>.   Take a look at the twitter counter on his front page, or try copying a   block of text from his site and notice how some words are broken up (yet   appear normal on the site), or drool over the beautiful layout of his   photography portfolio. We&rsquo;ll definitely be keeping a close eye on him   from now on. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.610design.com/coding/our-solar-system-%e2%80%93-an-experiment-with-css3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS3 Sample Code</title>
		<link>http://www.610design.com/coding/css3-sample-code/</link>
		<comments>http://www.610design.com/coding/css3-sample-code/#comments</comments>
		<pubDate>Tue, 08 Feb 2011 03:16:07 +0000</pubDate>
		<dc:creator>schoey</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[design]]></category>

		<guid isPermaLink="false">http://www.610design.com/?p=429</guid>
		<description><![CDATA[The cross browser css3 generator. Copy and edit Box Round Box shadow Box Gradient Box RGBA Box Rotate Box Transition Box Text Shadow Font Face]]></description>
			<content:encoded><![CDATA[<p>The cross browser css3 generator. Copy and edit</p>
<h2>Box Round</h2>
<pre class="brush: xml; title: ; notranslate">
.box_round {
-moz-border-radius: 12px;
-webkit-border-radius: 12px;
border-radius: 12px;
}
</pre>
<h2>Box shadow</h2>
<pre class="brush: css; title: ; notranslate">
.box_shadow {
-moz-box-shadow: 0px 0px 4px #ffffff; /* FF3.5+ */
-webkit-box-shadow: 0px 0px 4px #ffffff; /* Saf3.0+, Chrome */
box-shadow: 0px 0px 4px #ffffff; /* Opera 10.5, IE9 */
}
</pre>
<h2>Box Gradient</h2>
<pre class="brush: css; title: ; notranslate">
.box_gradient {
background-color: #444444;
background-image: -moz-linear-gradient(top, #444444, #999999); /* FF3.6 */
background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0, #444444),color-stop(1, #999999)); /* Saf4+, Chrome */
background-image: linear-gradient(top, #444444, #999999);
filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#444444', EndColorStr='#999999'); /* IE6–IE9 */
}
</pre>
<h2>Box RGBA</h2>
<p>
<pre class="brush: css; title: ; notranslate">
  .box_rgba {
  background-color: #B4B490;
  background-color: rgba(180, 180, 144, 0.6);  /* FF3+, Saf3+, Opera 10.10+, Chrome, IE9
  filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#99B4B490',EndColorStr='#99B4B490'); /* IE6–IE9
  }
  </pre>
</p>
<h2>Box Rotate</h2>
<p>
<pre class="brush: css; title: ; notranslate">
  .box_rotate {
  -moz-transform: rotate(7.5deg);  /* FF3.5+
  -o-transform: rotate(7.5deg);  /* Opera 10.5
  -webkit-transform: rotate(7.5deg);  /* Saf3.1+, Chrome
  -ms-transform: rotate(7.5deg);  /* IE9
  transform: rotate(7.5deg);
  filter: progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand', /* IE6–IE9
  M11=0.9914448613738104, M12=-0.13052619222005157,M21=0.13052619222005157, M22=0.9914448613738104);
  }
  </pre>
</p>
<h2>Box Transition</h2>
<p>
<pre class="brush: css; title: ; notranslate">
  .box_transition {
  -moz-transition: all 0.3s ease-out;  /* FF3.7+ */
  -o-transition: all 0.3s ease-out;  /* Opera 10.5 */
  -webkit-transition: all 0.3s ease-out;  /* Saf3.2+, Chrome */
  transition: all 0.3s ease-out;
  }
  </pre>
</p>
<h2>Box Text Shadow</h2>
<p>
<pre class="brush: css; title: ; notranslate">
  .box_textshadow {
  text-shadow: 1px 1px 3px #888; /* FF3.5+, Opera 9+, Saf1+, Chrome */
  }
  </pre>
</p>
<h2>Font Face</h2>
<p>
<pre class="brush: css; title: ; notranslate">
  @font-face {
  font-family: 'WebFont';
  src: url('myfont.eot');  /* IE6–8 */
  src: local('☺'),
  url('myfont.woff') format('woff'),  /* FF3.6, IE9 */
  url('myfont.ttf') format('truetype');  /* Saf3+, Chrome, FF3.5, Opera 10+ */
  }
  </pre></p>
]]></content:encoded>
			<wfw:commentRss>http://www.610design.com/coding/css3-sample-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Create CSS3 Christmas Tree Ornaments</title>
		<link>http://www.610design.com/coding/how-to-create-css3-christmas-tree-ornaments/</link>
		<comments>http://www.610design.com/coding/how-to-create-css3-christmas-tree-ornaments/#comments</comments>
		<pubDate>Thu, 23 Dec 2010 13:35:17 +0000</pubDate>
		<dc:creator>schoey</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[resources]]></category>
		<category><![CDATA[web-design]]></category>

		<guid isPermaLink="false">http://www.610design.com/?p=419</guid>
		<description><![CDATA[In this guide, we will display the power of CSS3 in drawing complex shapes. We will magically create Christmas tree ornaments using only CSS3 and HTML (no images). In particular, we will be drawing baubles, which are the hallmark ornamentation of Christmas trees. Note that this is merely a fun, proof-of-concept that explores the possible [...]]]></description>
			<content:encoded><![CDATA[<p>In this guide, we will display the power of CSS3 in drawing complex   shapes. We will magically create Christmas tree ornaments using only   CSS3 and HTML (no images). In particular, we will be drawing <a href="http://en.wikipedia.org/wiki/Bauble" title="Bauble - en.wikipedia.org">baubles</a>, which are the hallmark ornamentation of Christmas trees.</p>
<p>Note that this is merely a fun, proof-of-concept that explores the   possible applications of CSS3. If you intend to use this in production,   you should be aware that what we will be creating uses W3C   specifications that are not yet, or will never be, supported in many   browsers (such as IE6 through IE8). Also, the markup must be updated in   order to avoid empty div elements.</p>
<h3>CSS Ingredients</h3>
<p>Before we get started, let&rsquo;s just quickly go over what we be using.</p>
<ol>
<li><strong>:before</strong><strong> and :after&nbsp;<a href="http://www.w3.org/TR/CSS2/generate.html#before-after-content" target="_blank">pseudo-elements</a>:</strong> Using pseudo-elements will help us in reducing the amount of   unnecessary HTML we need to use. If you have worked with rounded corners   in CSS2 before, you probably know that, in order to produce flexible   rounded corners that accommodate various sizes of content, you had to   use a lot of empty divs and such. By using these elements, we will have   minimal markup. In this case, just one empty div per   bauble, which, if you were enterprising, you would fill with some text   content. Note that these pseudo-elements are in CSS2 specs.</li>
<li><strong>CSS3 linear and radial&nbsp;<a href="http://www.red-team-design.com/css-gradients-quick-tutorial">gradients</a>:</strong> To get the metallic color fills and shines of the baubles, we will use color gradients.</li>
<li><strong>Box shadows, transformations, border radius, etc.:</strong> To create the shapes, we will be using a combination of box-shadow, transform, and border-radius (for rounded corners).</li>
</ol>
<h3>HTML</h3>
<p>First, let us create the markup. As you can see below, the structure   is quite minimal and contains only the minimum amount of markup   necessary.</p>
<p>Since the globes need to be block elements, I chose to go with &lt;div&gt; instead of &lt;span&gt;, however, if you are not comfortable with that, you can use &lt;span&gt; tags and then use the display: block CSS property/value pair.</p>
<p>I have placed them in an unordered list because I decided that they are a group of items with no particular hierarchy (e.g. red-bauble is not greater than green-bauble), and so, to me, the metaphor of unordered lists is retained.</p>
<pre class="brush: css; title: ; notranslate">
&lt;ul id=&quot;bauble-container&quot;&gt;
  &lt;li&gt;
    &lt;div class=&quot;bauble red-bauble&quot;&gt;&lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;div class=&quot;bauble blue-bauble&quot;&gt;&lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;div class=&quot;bauble yellow-bauble&quot;&gt;&lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;div class=&quot;bauble green-bauble&quot;&gt;&lt;/div&gt;
  &lt;/li&gt;
&lt;/ul&gt;
</pre>
<h4>Explanation of the IDs/classes:</h4>
<ol>
<li>#bauble-container is our unordered list, which will be used for targeting the list items (&lt;li&gt;) with greater specificity.</li>
<li>.bauble is the main part of the ornament; the spherical shape.</li>
<li>.red-bauble, .blue-bauble, .yellow-bauble and .green-bauble&nbsp;are   the classes used for adding color variations. It makes our work   flexible so that, if you wanted various combinations, you&rsquo;re not stuck   with the color combinations I chose. For example, you could have two   yellow baubles or no yellow baubles&ndash;that&rsquo;s why we use classes, and not   IDs, for these.</li>
</ol>
<h3>CSS</h3>
<p>What follows are the style rules that will turn our boring unordered list above into a magical set of Christmas tree ornaments.</p>
<p>For discussion, I have commented the CSS below so that you can see how it works to highlight the major parts of the CSS.</p>
<p>Note that, in production, you would not want this much commenting in   your stylesheet because it is over the top and because it can increase   your stylesheet&rsquo;s file size.</p>
<p>
<pre class="brush: css; title: ; notranslate">
  /* General */
  html
  {
  background: #f2f5f6; /* Fallback background color if gradients are not supported */
  background: -moz-linear-gradient(top, #f2f5f6, #c8d7dc);
  background: -webkit-gradient(linear,left bottom,left top,color-stop(0, #c8d7dc),color-stop(1, #f2f5f6));
  height: 100%;
  }

  #bauble-container
  {
  list-style: none; /* Remove bullets */
  width: 568px;
  margin: 150px auto; /* Center it */
  padding: 0;
  }

  #bauble-container li
  {
  margin: 0 20px; /* let's add some space */
  float: left; /* place them in line */
  }

  /* This is the part where the Christmas bauble string is added */
  #bauble-container li:before
  {
  content: &quot;&quot;;
  background: #dadada; /* Fallback */
  background: -moz-linear-gradient(bottom, #9c9c9c, rgba(255,255,255,0) );
  background: -webkit-gradient(linear, left bottom, right top, from(#9c9c9c), color-stop(100%, rgba(255,255,255,0)));
  height: 50px;
  width: 2px;
  display: block;
  margin: 0 auto;
  }

  /* Alernatively rotate them */
  #bauble-container li:nth-child(odd)
  {
  -moz-transform: rotate(-5deg); /* Firefox */
  -webkit-transform: rotate(-5deg); /* Chrome and Safari */
  -o-transform: rotate(-5deg); /* Opera */
  -ms-transform: rotate(-5deg); /* Surprise! IE9 with its own prefix */
  }

  #bauble-container li:nth-child(even)
  {
  -moz-transform: rotate(5deg);
  -webkit-transform: rotate(5deg);
  -o-transform: rotate(5deg);
  -ms-transform: rotate(5deg);
  }

  /* Style the bauble */
  .bauble
  {
  -moz-border-radius: 100px;
  border-radius: 100px;

  -moz-box-shadow: 0 0 5px #777777;
  box-shadow: 0 0 5px #777777;
  -webkit-box-shadow: 0 0 5px #777777;

  border: 1px solid rgba(0,0,0,0.3);
  position: relative;
  height: 100px;
  width: 100px;
  }

  /* Style the bauble head */
  .bauble:before
  {
  content: &quot;&quot;;

  background: #fff; /* Fallback */
  background: -moz-linear-gradient(left, #fff, #9c9c9c, #fff, #9c9c9c );
  background: -webkit-gradient(linear, left center, right center, from(#fff), color-stop(25%, #9c9c9c), color-stop(50%, #fff), color-stop(75%, #9c9c9c)); 

  -moz-border-radius: 2px;
  border-radius: 2px;

  -moz-box-shadow: 0 1px 0 rgba(0,0,0,0.2), 0 -1px 0 rgba(255,255,255,0.3) inset;
  box-shadow: 0 1px 0 rgba(0,0,0,0.2), 0 -1px 0 rgba(255,255,255,0.3) inset;
  -webkit-box-shadow: 0 1px 0 rgba(0,0,0,0.2), 0 -1px 0 rgba(255,255,255,0.3) inset;

  border: 1px solid #dadada ;
  height: 10px;
  width: 20px;
  position: absolute;
  left: 50%;
  top: -12px;
  margin-left: -10px;
  }

  /* Add bauble light reflection */
  .bauble:after
  {
  content: &quot;&quot;;

  -moz-border-radius: 100px;
  border-radius: 100px;

  background: #fff; /* Fallback */
  background: -moz-linear-gradient(bottom, #fff, rgba(255,255,255,0.1) );
  background: -webkit-gradient(linear, left bottom, right top, from(#fff), color-stop(100%, rgba(255,255,255,0.1))); 

  position: absolute;
  top: 0;
  left: 50%;
  margin-left: -40px;
  opacity: 0.15;
  height: 80px;
  width: 80px;
  }

  /* Colorize them */
  .red-bauble
  {
  background: #c8171f;
  background: -moz-radial-gradient(center 45deg,circle cover, #f9d0be, #c8171f);
  background: -webkit-gradient(radial, 40% 40%, 0, 40% 40%, 50, from(#f9d0be), to(#c8171f));
  }

  .blue-bauble
  {
  background: #00a1ee; /* Fallback */
  background: -moz-radial-gradient(center 45deg,circle cover, #cde6f9, #00a1ee);
  background: -webkit-gradient(radial, 40% 40%, 0, 40% 40%, 50, from(#cde6f9), to(#00a1ee));
  }

  .yellow-bauble
  {
  background: #fcb83d; /* Fallback */
  background: -moz-radial-gradient(center 45deg,circle cover, #fcf3a6, #fcb83d);
  background: -webkit-gradient(radial, 40% 40%, 0, 40% 40%, 50, from(#fcf3a6), to(#fcb83d));
  }

  .green-bauble
  {
  background: #4d8d00; /* Fallback */
  background: -moz-radial-gradient(center 45deg,circle cover, #d1e5b2, #4d8d00);
  background: -webkit-gradient(radial, 40% 40%, 0, 40% 40%, 50, from(#d1e5b2), to(#4d8d00));
  }
</pre>
</p>
<p><a href="http://www.610design.com/sandbox/css3-christmas.html">View Demo</a></p>
<p>IE6 and IE7 couldn’t join our Christmas party for well-known reasons: they lack more than just CSS3 specifications support, but also the :before and :after pseudo-elements; so we would just have four squares with different colors in these two browsers.</p>
<p>I hope you were inspired to learn about CSS3 in this guide and that you have discovered a trick or two that you can use in your projects. I wish you a Merry Christmas and Happy Holidays!</p>
<p class="source">Soucre <a href="http://sixrevisions.com" target="_blank">Six Revisions</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.610design.com/coding/how-to-create-css3-christmas-tree-ornaments/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>10 Useful jQuery Plugins and Techniques</title>
		<link>http://www.610design.com/coding/10-useful-jquery-plugins-and-techniques/</link>
		<comments>http://www.610design.com/coding/10-useful-jquery-plugins-and-techniques/#comments</comments>
		<pubDate>Fri, 12 Nov 2010 11:54:53 +0000</pubDate>
		<dc:creator>schoey</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[resources]]></category>

		<guid isPermaLink="false">http://www.610design.com/?p=416</guid>
		<description><![CDATA[jQuery is great for enhancing a website. Whether it be by adding effects that give the site a wow factor, or by making navigation easier, jQuery can have a big impact on the way a website is perceived and used. jQuery is extremely popular among web designers and developers for it&#8217;s flexibility, ease-of-use, and of [...]]]></description>
			<content:encoded><![CDATA[<p>jQuery is great for enhancing a website. Whether it be by adding effects   that give the site a wow factor, or by making navigation easier, jQuery   can have a big impact on the way a website is perceived and used.   jQuery is extremely popular among web designers and developers for it&rsquo;s   flexibility, ease-of-use, and of course it&rsquo;s plugins. So for this post,   we&rsquo;ve rounded up 10 more jQuery plugins and techniques that you should   find very useful.</p>
<ul>
<li>
<h3><a href="http://buildinternet.com/2010/11/supersized-3-0-full-screen-background-slideshow-jquery-plugin/" target="_blank">Supersized 3.0 Plugin</a></h3>
<p>This plugin produces a full screen slideshow complete with transitions, preloading, and navigation controls.</p>
</li>
<li>
<h3><a href="http://tutorialzine.com/2010/06/apple-like-retina-effect-jquery-css/" target="_blank">Apple-like Retina Effect</a></h3>
<p>Learn how to create an Apple Retina Display magnifying effect with jQuery and CSS.</p>
</li>
<li>
<h3><a href="http://lab.smashup.it/flip/" target="_blank">Flip!</a></h3>
<p>Flip is a jQuery plugin that will flip easily your elements in four directions.</p>
</li>
<li>
<h3><a href="http://www.marcofolio.net/webdesign/jslickmenu_a_jquery_plugin_for_slick_css3_menus.html" target="_blank">jSlickmenu</a></h3>
<p>jSlickmenu, creates, well, slick menus with jQuery. Combined with some   great CSS3 features likes rotation and shadows, this plugin can really   lift up your design. It&rsquo;s fairly easy to use, highly customizable and   pretty cool (and fun!) to see.</p>
</li>
<li>
<h3><a href="http://www.asual.com/jquery/address/" target="_blank">jQuery Address</a></h3>
<p>The jQuery Address plugin provides powerful deep linking capabilities   and allows the creation of unique virtual addresses that can point to a   website section or an application state.</p>
</li>
<li>
<h3><a href="http://www.azoffdesign.com/plugins/js/overscroll" target="_blank">Overscroll</a></h3>
<p>Overscroll is a jQuery plug-in that mimics the iphone/ipad scrolling   experience in a browser. The plug-in adds a draggable drift to   overflowed DOM elements as well as a set of fading &lsquo;thumbs&rsquo;.</p>
</li>
<li>
<h3><a href="http://elliottkember.com/sexy_curls.html#none" target="_blank">jQuery Page Curl</a></h3>
<p>This jQuery plugin allows you to add an interactive page curl to your website.</p>
</li>
<li>
<h3><a href="http://theodin.co.uk/blog/ajax/contactable-jquery-plugin.html" target="_blank">Contactable</a></h3>
<p>Contactable is a jQuery plugin designed to make contact/feedback forms   simpler and more accessible. This plugin will enable you to create a   contact form on any page of a site with minimal effort.</p>
</li>
<li>
<h3><a href="http://buildinternet.com/2010/02/animate-panning-slideshow-with-jquery/" target="_blank">Panning Slideshow</a></h3>
<p>In this tutorial you&rsquo;ll take the makings of a classic slideshow, but use   a different kind of transition to animate between slides.</p>
</li>
<li>
<h3><a href="http://www.csskarma.com/blog/sliding-labels-plugin/" target="_blank">Sliding Labels</a></h3>
<p>Sliding Labels is a nifty plugin that displays text fields with the   labels inside. When the field is clicks, the labels slide out allowing   the user to input text.</p>
</li>
</ul>
<p class="source">Source: <a href="http://webdesignledger.com" target="_blank">web design ledger</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.610design.com/coding/10-useful-jquery-plugins-and-techniques/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CSS3 Media Queries</title>
		<link>http://www.610design.com/coding/css3-media-queries/</link>
		<comments>http://www.610design.com/coding/css3-media-queries/#comments</comments>
		<pubDate>Thu, 19 Aug 2010 11:25:28 +0000</pubDate>
		<dc:creator>schoey</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[ipad]]></category>

		<guid isPermaLink="false">http://www.610design.com/?p=412</guid>
		<description><![CDATA[CSS2 allows you to specify stylesheet for specific media type such as screen or print. Now CSS3 makes it even more efficient by adding media queries. You can add expressions to media type to check for certain conditions and apply different stylesheets. For example, you can have one stylesheet for large displays and a different [...]]]></description>
			<content:encoded><![CDATA[<p>CSS2 allows you to specify stylesheet for specific media type such as screen or print.   Now CSS3 makes it even more efficient by adding media queries. You can   add expressions to media type to check for certain conditions and apply   different stylesheets. For example, you can have one stylesheet for   large displays and a different stylesheet specifically for mobile   devices. It is quite powerful because it allows you to tailor to   different resolutions and devices without changing the content. Continue   on this post to read the tutorial and see some websites that make good   use of media queries.</p>
<h3>CSS3 Media Queries (<a href="http://www.610design.com/sandbox/mediaquery.html">demo</a>)</h3>
<p>Check my <a href="http://www.610design.com/sandbox/mediaquery.html">demo</a> and resize your browser window to see it in action.</p>
<h4>Max Width</h4>
<p>The following CSS will apply if the viewing area is smaller than 600px.</p>
<pre class="brush: css; title: ; notranslate">
@media screen and (max-width: 600px) {
  .class {
    background: #ccc;
  }
}
</pre>
<p>If you want to link to a separate stylesheet, put the following line of code in between the <code>&lt;head&gt;</code> tag.</p>
<pre class="brush: xml; title: ; notranslate">&lt;link rel=&quot;stylesheet&quot; media=&quot;screen and (max-width: 600px)&quot; href=&quot;small.css&quot; /&gt;
</pre>
<h4>Min Width</h4>
<p>The following CSS will apply if the viewing area is greater than 900px.</p>
<pre class="brush: css; title: ; notranslate">
@media screen and (min-width: 900px) {
  .class {
    background: #666;
  }
}
</pre>
<h4>Multiple Media Queries</h4>
<p>You can  combine multiple media queries. The following code will apply if the viewing area is between 600px and 900px.</p>
<pre class="brush: css; title: ; notranslate">
@media screen and (min-width: 600px) and (max-width: 900px) {
  .class {
    background: #333;
  }
}
</pre>
<h4>Device Width</h4>
<p>The following code will apply if the max-device-width is 480px (eg.   iPhone display). Note: max-device-width means the actual resolution of   the device and max-width means the viewing area resolution.</p>
<pre class="brush: css; title: ; notranslate">
@media screen and (max-device-width: 480px) {
  .class {
    background: #000;
  }
}
</pre>
<h4>For iPhone 4</h4>
<p>The following stylesheet is specifically for iPhone 4 <em>(credits: <a href="http://thomasmaier.me/2010/06/css-for-iphone-4-retina-display/">Thomas Maier</a>)</em>.</p>
<pre class="brush: xml; title: ; notranslate">
&lt;link rel=&quot;stylesheet&quot; media=&quot;only screen and (-webkit-min-device-pixel-ratio: 2)&quot; type=&quot;text/css&quot; href=&quot;iphone4.css&quot; /&gt;
</pre>
<h4>For iPad</h4>
<p>You can also use media query to detect orientation (portrait or landscapse)  on the iPad <em>(credits: <a href="http://www.cloudfour.com/ipad-css/">Cloud Four</a>)</em>.</p>
<pre class="brush: xml; title: ; notranslate">
&lt;link rel=&quot;stylesheet&quot; media=&quot;all and (orientation:portrait)&quot; href=&quot;portrait.css&quot;&gt;
&lt;link rel=&quot;stylesheet&quot; media=&quot;all and (orientation:landscape)&quot; href=&quot;landscape.css&quot;&gt;
</pre>
<h3>Media Queries for Internet Explorer</h3>
<p>Unfortunately, media query is not supported in Internet Explorer 8 or   older. You can use Javascript to hack around. Below are some solutions:</p>
<ul>
<li><a href="http://css-tricks.com/resolution-specific-stylesheets/">CSS Tricks &#8211; using jQuery to detect browser size</a></li>
<li><a href="http://www.themaninblue.com/experiment/ResolutionLayout/">The Man in Blue &#8211; using Javascript</a> (this article is written 6 years ago)</li>
<li><a href="http://plugins.jquery.com/project/MediaQueries">jQuery Media Queries Plugin</a></li>
</ul>
<h3>Sample Sites</h3>
<p>You need to view the following sites with a browser that supports   media queries such as Firefox, Chrome, and Safari. Go to each site and   see how the layout responds base on the size of your browser winow.</p>
<h4><a href="http://hicksdesign.co.uk" target="_blank">Hicksdesign</a></h4>
<ul>
<li><strong>Large size:</strong> 3 columns sidebar</li>
<li><strong>Smaller:</strong> 2 columns sidebar (the middle column drops to the left column)</li>
<li><strong>Even smaller:</strong> 1 column sidebar (the right column shift up below the logo)</li>
<li><strong>Smallest:</strong> no sidebar (logo &amp; right column shift up and the other sidebar columns move below)</li>
</ul>
<h4><a href="http://colly.com" target="_blank">Colly</a></h4>
<p>The layout switches between one column, 2 columns, and 4 columns depend on the viewing area of your browser.</p>
<h4><a href="http://www.alistapart.com/d/responsive-web-design/ex/ex-site-FINAL.html" target="_blank">A List Apart</a></h4>
<ul>
<li><strong>Large size:</strong> navigation at the top, 1 row of pictures</li>
<li><strong>Medium size:</strong> navigation on the left side, 3 columns of pictures</li>
<li><strong>Small size:</strong> navigation at the top, no background image on logo, 3 columns of pictures</li>
</ul>
<h4><a href="http://teegallery.com" target="_blank">Tee Gallery</a></h4>
<p>This one is very similar to previous example Colly, but the   difference is the images of TeeGallery resize as the layout stretchs.   The trick here is use relative percentage value instead of fixed pixel   (ie. width=100%).</p>
<h3>Conclusion</h3>
<p>Keep in mind: having an optimized stylesheet for mobile devices   doesn&rsquo;t mean your site is optimized for mobile. To be truly optimized   for mobile devices, your images and markups need to cut on the load size   as well. Media queries are meant for design presentation, not   optimization.</p>
<p class="source"><em>Source: <a href="http://www.webdesignerwall.com" target="_blank">Web Designer Wall</a></em><a href="http://www.webdesignerwall.com"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.610design.com/coding/css3-media-queries/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Useful CSS3 Tools</title>
		<link>http://www.610design.com/coding/useful-css3-tools/</link>
		<comments>http://www.610design.com/coding/useful-css3-tools/#comments</comments>
		<pubDate>Tue, 10 Aug 2010 10:41:05 +0000</pubDate>
		<dc:creator>schoey</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[resources]]></category>

		<guid isPermaLink="false">http://www.610design.com/?p=407</guid>
		<description><![CDATA[CSS3 continues to gain popularity as we’re seeing it used in more and more websites. However, there are still those out there that are holding out on learning it and using it. This is probably due to the fact that it’s not fully supported yet in all browsers. Nevertheless, if you’re one of those that [...]]]></description>
			<content:encoded><![CDATA[<p>CSS3 continues to gain popularity as we’re seeing it used in more and more websites. However, there are still those out there that are holding out on learning it and using it. This is probably due to the fact that it’s not fully supported yet in all browsers. Nevertheless, if you’re one of those that haven’t started using CSS3 or you’re a CSS3 pro just looking to speed up your work flow, here are six CSS3 tools that you should find useful.</p>
<h3><a href="http://css-tricks.com/examples/ButtonMaker/" target="_blank">CSS3 Button Maker</a></h3>
<p>The CSS3 Button Maker gives you a number of sliders and color pickers to style your own CSS3 button. Then you can grab the code to use in your own project.</p>
<h3><a href="http://www.css3generator.com/" target="_blank">CSS3 Generator</a></h3>
<p>Select from a list of CSS3 properties, fill in a few parameters to fit your needs, and it spits out the generated code along with a live preview.</p>
<h3><a href="http://css3please.com/" target="_blank">CSS3 Please!</a></h3>
<p>CSS3 Please! is a CSS3 rule generator that acts as a sort of playground. It allows you make various CSS3 tweaks and see a live preview. Then you can copy and paste into your own file.</p>
<h3><a href="http://gradients.glrzad.com/" target="_blank">CSS3 Gradient Generator</a></h3>
<p>The CSS3 Gradient Generator was created as a showcase of the power of CSS based gradients as well as a tool for developers and designers to generate a gradient in CSS.</p>
<h3><a href="http://westciv.com/tools/transforms/index.html" target="_blank">CSS3 Transforms</a></h3>
<p>CSS3 Transforms gives you a set of sliders to experiment with various transforms such as position, rotation, skew and more. It also generates the corresponding code on the fly.</p>
<h3><a href="http://tools.css3.info/selectors-test/test.html" target="_blank">CSS3 Selectors Test</a></h3>
<p>CSS3 Selectors Test automatically runs a large number of small tests which determines if your browser is compatible with a large number of CSS selectors. If it is not compatible with a particular selector it is marked as such. You can click on each CSS selector to see the results, including a small example and explanation for each of tests.</p>
<p class="source">Source: <a href="http://webdesignledger.com">Web Design Ledger</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.610design.com/coding/useful-css3-tools/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE-only Styles: Where Should They Be Placed?</title>
		<link>http://www.610design.com/coding/ie-only-styles-where-should-they-be-placed/</link>
		<comments>http://www.610design.com/coding/ie-only-styles-where-should-they-be-placed/#comments</comments>
		<pubDate>Wed, 07 Jul 2010 10:30:34 +0000</pubDate>
		<dc:creator>schoey</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[ie]]></category>

		<guid isPermaLink="false">http://www.610design.com/?p=405</guid>
		<description><![CDATA[Dealing with Internet Explorer is a fact of web design, and it isn’t going to go away anytime soon. If not for some of the differences in the way IE6 and IE7 handle certain areas of CSS (whether it be margins bugs, float bugs, or other problems), CSS development would be so much easier. Of [...]]]></description>
			<content:encoded><![CDATA[<p>Dealing with Internet Explorer is a fact of web design, and it isn’t   going to go away anytime soon.</p>
<p>If not for some of the differences in the way IE6 and IE7 handle   certain areas of CSS (whether it be margins bugs, float bugs, or other   problems), CSS development would be so much easier.</p>
<p>Of course, as I’ve said in past articles on this website and others, I   believe IE-only styles can be kept to a bare minimum, and in some cases   you may not need any, but it’s unlikely that developers will end up so   fortunate. So how do you divide your IE-only CSS styles? The options we   have are as follows:</p>
<h2>Option #1</h2>
<p>A single IE-only stylesheet inside of a conditional comment; inside   that file, different versions of IE are targeted with hacks.</p>
<p><strong>Drawbacks to #1</strong></p>
<ul>
<li>Every version of IE will load the extra styles, even the unused ones</li>
<li>Potentially adds an extra HTTP request</li>
<li>Changing something in the main stylesheet may require that you hunt   down IE-only styles in a separate file</li>
</ul>
<p><strong>Benefits to #1</strong></p>
<ul>
<li>IE styles are in one file, so they’re easy to maintain</li>
</ul>
<h2>Option #2</h2>
<p>Multiple IE-only stylesheets inside conditionals, each targeting a   different version of IE.</p>
<p><strong>Drawbacks to #2</strong></p>
<ul>
<li>Changing something in the main stylesheet may require that you hunt   down IE-only styles in as many as 2 or more extra files</li>
</ul>
<p><strong>Benefits to #2</strong></p>
<ul>
<li>No unnecessary HTTP requests</li>
<li>No unnecessary lines of code loaded in the main stylesheet</li>
</ul>
<h2>Option #3</h2>
<p>A single stylesheet that targets all browser, but within that   stylesheet, IE-only hacks are present.</p>
<p><strong>Drawbacks to #3</strong></p>
<ul>
<li>Unnecessary lines of code are loaded for all browsers</li>
</ul>
<p><strong>Benefits to #3</strong></p>
<ul>
<li>No extra HTTP requests</li>
<li>No need to open multiple CSS files to adjust something that’s hacked   for IE</li>
</ul>
<h2>Option #4</h2>
<p>One or more JavaScript files inside of conditional comments that   target different versions of IE, dynamically adding or removing styles   and/or class names.</p>
<p><strong>Drawbacks to #4</strong></p>
<ul>
<li>IE Browsers without scripting enabled will not see the corrected CSS</li>
<li>A slow loading script could cause the styles to be applied late,   making the layout temporarily look awkward</li>
<li>Will be complicated to maintain, and could also require extra   IE-only stylesheets, adding to the page bloat and slowness</li>
</ul>
<p><strong>Benefits to #4</strong></p>
<ul>
<li>Could work on buggy elements that won’t behave with pure CSS (I’ve   seen this happen and have used this method when time/budget was limited   and the CSS was too messy to deal with normally)</li>
</ul>
<h2>Option #5</h2>
<p>Ignore IE.</p>
<p><strong>Drawbacks to #5</strong></p>
<ul>
<li>Locking out a significant portion of your potential traffic/sales</li>
<li>Client screaming at you because the website looks like crap in IE</li>
</ul>
<p><strong>Benefits to #5</strong></p>
<ul>
<li>Only one hack-less stylesheet to maintain</li>
<li>Peace of mind (but short-lived because of the screaming client)</li>
</ul>
<h2>Conclusion</h2>
<p>In most cases, you’ll be using option #2 (multiple conditionals that   target different versions of IE). But don’t rule out using #3. In   situations where you’ve only got 2 or 3 lines of CSS to target a single   version of IE, I think the best option is to just put those extra styles   in the main stylesheet and allow it to load for every browser.</p>
<p>Remember that for most client projects, Internet Explorer is the most   used browser. If you’re adding multiple extra files for all those   users, that’s more HTTP requests, and so you’re making the pages   unnecessarily slow for most of your users. I think a few lines of CSS in   the main stylesheet is much better than adding one or more extra HTTP   requests.</p>
<p>Feel free to offer your thoughts if there are any benefits/drawbacks   (or even methods) I haven’t mentioned.</p>
<p class="source">Source: <a href="http://www.impressivewebs.com">impressivewebs</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.610design.com/coding/ie-only-styles-where-should-they-be-placed/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Bits of JavaScript Every Designer Needs to Know</title>
		<link>http://www.610design.com/coding/bits-of-javascript-every-designer-needs-to-know/</link>
		<comments>http://www.610design.com/coding/bits-of-javascript-every-designer-needs-to-know/#comments</comments>
		<pubDate>Thu, 10 Jun 2010 11:37:45 +0000</pubDate>
		<dc:creator>schoey</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[designers]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[resources]]></category>

		<guid isPermaLink="false">http://www.610design.com/?p=402</guid>
		<description><![CDATA[Although not programmers, every web designer needs to know at least a bit of JavaScript to do decently in one&#8217;s career. XHTML and CSS are great, but they can only do so much for a web page. Adding the interactivity and/or special effects that JavaScript can allow can not only enhance a design, but also [...]]]></description>
			<content:encoded><![CDATA[<p>Although not programmers, every web designer needs to know <strong>at least a bit of JavaScript</strong> to do decently in one&#8217;s career. XHTML and CSS are great, but they can  only do so much for a web page. Adding the interactivity and/or special  effects that JavaScript can allow can not only enhance a design, but  also lead to a more pleasant user experience.</p>
<p>This is not going to be an in-depth post on JavaScript, or anything  like object-oriented material. Instead, this post will cover the basics  of JavaScript that every designer must know to become better <em>designers</em>.  In this post, we&#8217;ll cover some JavaScript features (and trends) that  focus more on user experience and design elements themselves.</p>
<h2>Accessing HTML Elements with JavaScript</h2>
<p>Once a web page is loaded in plain HTML, it is set. There&#8217;s no more  the browser can do with it to alter the image of a button, the style of  a form, or the display of certain pieces of content. What the user sees  is what the user gets.</p>
<p>However, JavaScript can play an excellent role in changing up the  page after it&#8217;s loaded. This means we can do image rollovers (changing  the image <em>after</em> the first image has been loaded), and we can  change the style of a form as the user interacts with it. We can also  use JavaScript to do some even cooler things, like show or hide <code>divs </code>for tabbed content.</p>
<h4>How to Change up the HTML</h4>
<p>So how do you change the HTML of a page after it&#8217;s loaded to do all  the neat things we&#8217;ve mentioned above? First, we must access the  element:</p>
<pre class="brush: jscript; title: ; notranslate">document.getElementById(&quot;elementid&quot;).HTMLATTRIBUTE = &quot;value&quot;;</pre>
<p>Once we&#8217;ve gotten a hold of a piece of HTML with JavaScript, we can  change its attribute to whatever we like. Our main piece of code here  is a built-in JavaScript function: <code>getElementById()</code>. With  it, as long as we give any HTML element an id, we can grab it with our  JavaScript code. Let&#8217;s take a look at a more specific example below:</p>
<pre class="brush: jscript; title: ; notranslate">&lt;img id=&quot;slideshowimage&quot; src=&quot;flower.jpg&quot; alt=&quot;An image of a flower.&quot; /&gt;</pre>
<p>Above is some basic HTML showing an image, with an id of  &#8220;sideshowimage&#8221;. We can use the id to style it any way we want in our  stylesheet, just as anyone would expect. We&#8217;ve also given our image an <code>alt </code>tag with an adequate description.</p>
<pre class="brush: jscript; title: ; notranslate">document.getElementById(&quot;slideshowimage&quot;).src = &quot;bear.jpg&quot;;</pre>
<p>Now, by using our JavaScript to grab out &#8220;slideshowimage&#8221; id element,  we can change the source of our image. We can also change the alt tag to make it more relevant:</p>
<pre class="brush: jscript; title: ; notranslate">document.getElementById(&quot;slideshowimage&quot;).alt = &quot;An image of a bear by the water.&quot;;</pre>
<p>JavaScript has now altered our code, which with only HTML and CSS was set, to the following code:</p>
<pre class="brush: jscript; title: ; notranslate">&lt;img id=&quot;slideshowimage&quot; src=&quot;bear.jpg&quot; alt=&quot;An image of a bear by the water.&quot; /&gt;</pre>
<p>Easy enough right? Simple knowledge of this kind of JavaScript action is the start to making pages more dynamic.</p>
<h2>Accessing CSS with JavaScript</h2>
<p>Accessing CSS styles is very similar to getting and changing the  HTML attributes via JavaScript. In fact, it technically is changing an  HTML attribute itself: the <code>style </code>attribute:</p>
<pre class="brush: xml; title: ; notranslate">&lt;img src=&quot;image.gif&quot; alt=&quot;An Image&quot; id=&quot;myImage&quot; style=&quot;padding: 5px; background: #fff; border: 1px solid #ccc;&quot; /&gt;</pre>
<p>As anyone can guess, we just place style for the HTML attribute when accessing the image:</p>
<pre class="brush: jscript; title: ; notranslate">document.getElementById(&quot;elementid&quot;).style.STYLEATTRIBUTE = &quot;value&quot;;</pre>
<p>Because the style attribute in HTML can hold so many different values,  we must get a bit more specific with our JavaScript code. We have to  include &#8220;style&#8221; then the name of the specific CSS attribute afterwards.  To clarify, below are the correct and incorrect ways of changing up the  CSS:</p>
<p><strong>Incorrect:</strong></p>
<pre class="brush: jscript; title: ; notranslate">document.getElementById(&quot;elementid&quot;).style = &quot;padding: 5px; background: #fff; border: 1px solid #ccc;&quot;; </pre>
<p><strong>Correct:</strong></p>
<pre class="brush: jscript; title: ; notranslate">document.getElementById(&quot;elementid&quot;).style.padding = &quot;10px&quot;;
document.getElementById(&quot;elementid&quot;).style.backgroundColor = &quot;#aaa&quot;;
document.getElementById(&quot;elementid&quot;).style.border = &quot;1px solid #555&quot;; </pre>
<p>One more thing to point out is that CSS styles can vary a bit from  JavaScript&#8217;s style syntax. For example, notice that in JavaScript, to  change the background color we had to use <code>backgroundColor</code>. In CSS, we would use <code>background </code>or <code>background-color</code>. For the most part JavaScript abides by camelCase <em>(first word lower case, and all remaining words capitalized, no spaces/dashes/underscores)</em>. However, if any others have you stumped there are plenty of resources online.</p>
<h2>Events: Making it All Actually Happen</h2>
<p>Just as the word implies, JavaScript events make things happen.  We&#8217;ve covered so far the syntax for how to alter code, but we currently  have no way to trigger it. Events are what do this.</p>
<p>The <code>onClick </code>event is one of the more popular JavaScript  events. It can be applied to any HTML element, and when the described  event happens — when the element is clicked — the event inside the  quotes is triggered.</p>
<pre class="brush: xml; title: ; notranslate">&lt;button onClick=&quot;changeImage()&quot;&gt;Change Image&lt;/button&gt;
</pre>
<p>The code above creates a basic HTML button, and uses the <code>onClick</code> attribute for a JavaScript event. When the user clicks the button, the <code>changeImage()</code> function is called.</p>
<pre class="brush: xml; title: ; notranslate">&lt;button onClick=&quot;this.style.border = '2px solid #555'&quot;&gt;Change Border&lt;/button&gt;</pre>
<p>We can also put our JavaScript code directly in our event, without  going to an external function. Note that we had to change our double  quotes into single quotes within our JavaScript code, to keep our HTML  from getting confused on when the attribute begins and ends. We can  also use the &#8220;this&#8221; keyword to access the element we&#8217;re currently in —  no need to grab an element by its ID if we&#8217;re already there.</p>
<h2>Other Important and Commonly-Used Events</h2>
<p><strong>onLoad</strong> — Used in the  tag of an HTML page. The event triggers when the page is loaded. Example:  (Calls the sayHello() function right when the page is loaded. Will re-trigger on every <strong>Refresh</strong>.)</p>
<p><strong>onBlur</strong> — Triggers when an element is clicked, and  then clicked off. A common use of this is in forms for validation. If a  user clicked on field, then clicks away, <code>onBlur</code> can run a validation function or any other piece of JavaScript code. Basically, <code>onBlur</code> triggers when something is <strong>clicked away from</strong>.</p>
<p><strong>onFocus</strong> — The opposite of <code>onBlur</code>. Triggers when an element that can be focused is clicked. For example, a form input field.</p>
<p><strong>onMouseDown, onMouseUp, onMouseOut, onMouseOver</strong> —  All used with the interaction of the mouse. This is usually how image  rollovers are created. When the mouse moves over an image &#8211; <code>onMouseOver</code>, the image changes, and then changes again when it moves away from the image &#8211; <code>onMouseOut</code>. <code>onMouseDown</code> and <code>onMouseUp</code> are similar, but with actual clicks of the mouse.</p>
<p>Check out <a href="http://www.elated.com/articles/events-and-event-handlers/">Events and Event Handlers</a> for more information on events and a more descriptive list of available events to use.</p>
<h2>JavaScript Libraries</h2>
<p>While JavaScript can do a lot on its own, libraries are increasing  in popularity because they can provide even more features. Of course,  what designers like most, is that these new libraries can provide a lot  more in terms of design.</p>
<p>Many designers just jump into learning JavaScript through a library  like jQuery or Mootools. However, a step-by-step guide to easy jQuery  tabs or something similar will not help anyone as a designer long-term.  It is still essential to learn the basics of plain JavaScript before  jumping into using a JavaScript library.</p>
<p>While learning JavaScript is a great start, any library requires its  own learning curve and has its own syntax or plugins. For a list of all  JavaScript libraries, and even features organized by special features  and effects, check out the <a href="http://javascriptlibraries.com/">JavaScript Libraries</a> website. Despite the many options for JavaScript libraries, there are two that are most popular: jQuery and Mootools.</p>
<p>Learning how to work with these two, or any other libraries, is a  great way to expand JavaScript&#8217;s capabilities. However, that is for  another post. In the meantime, be sure to check out at least the <a href="http://jquery.com/">jQuery</a> and <a href="http://mootools.net/">Mootools</a> websites.</p>
<h2>Conclusion</h2>
<p>Anyone can see that JavaScript can be a powerful force to adding  interaction and variation to web pages. Yet, even with all we&#8217;ve  covered above, we&#8217;ve only touched the surface of what JavaScript can  really do — for either developers or designers.</p>
<p>If you&#8217;d like to get more advanced, be sure to check out what AJAX,  along with JavaScript has to offer, or just get into some more advanced  JavaScript topics, from arrays to object-oriented programming. Also be  sure to check out some of the resources we have listed above to find  out more. Your web applications will be able to go much further with  just a bit more learning!</p>
<p class="source">source: <a href="http://www.onextrapixel.com" target="_blank">onextrapixel</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.610design.com/coding/bits-of-javascript-every-designer-needs-to-know/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Best Practices for CSS3</title>
		<link>http://www.610design.com/coding/best-practices-for-css3/</link>
		<comments>http://www.610design.com/coding/best-practices-for-css3/#comments</comments>
		<pubDate>Fri, 28 May 2010 14:14:07 +0000</pubDate>
		<dc:creator>schoey</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[user experience]]></category>
		<category><![CDATA[web-design]]></category>

		<guid isPermaLink="false">http://www.610design.com/?p=391</guid>
		<description><![CDATA[Since CSS3 has become such a big deal in the future-thinking minds of web designers today, I think it would be appropriate for front-end developers to begin formulating some best-practice habits and techniques so that any CSS3 development we do is done right, and we therefore are able to get CSS3 development off to a [...]]]></description>
			<content:encoded><![CDATA[<p>Since CSS3 has become such a big deal in the future-thinking minds of   web designers today, I think it would be appropriate for front-end   developers to begin formulating some best-practice habits and techniques   so that any CSS3 development we do is done right, and we therefore are   able to get CSS3 development off to a good start.</p>
<p>By no means do I assume that everything in this article is etched in   stone and error-free, but I think this will be a good starting point for   this topic, and I will be happy to add to or amend any points that   anyone feels need adjusting or clarification.</p>
<p>Consider this a starting point for discussing best practices for   CSS3, especially since there don&#8217;t seem to be many articles available   yet that exclusively discuss CSS3 best practices.</p>
<h2>Think Progressive Enhancement</h2>
<p>The most accessible and widely-supported websites are those created   with progressive enhancement in mind. Standards proponents have for   years discussed the benefits of accessible, backwards-compatible content   &ndash; specifically in relation to <a href="http://www.impressivewebs.com/ajax-progressive-enhancement/">JavaScript   and Ajax-based websites and applications</a>.</p>
<p>The same principles apply to CSS3 development. Website and app   visuals that are critical to the user experience should not be dependent   on CSS3. CSS3 should be used to enrich and enhance an already   fully-functional experience.</p>
<p>Since CSS3 has now crossed into a <a href="http://www.marcofolio.net/reviews/your_two_cents_css3_animation_and_lazy_loading.html">gray   area of event-driven features</a>, more care needs to be taken to   ensure that non-supporting browsers do not greatly hinder the user   experience.</p>
<h2>Organize and Comment Vendor-Specific Syntax</h2>
<p>Unfortunately, since many CSS3 features are supported with different   proprietary syntaxes, this means that some parts of your CSS code will   become bloated. But you can still keep those areas of your code   organized by inserting comments indicating the browser version that the   code is for, and also by keeping the different lines of code in a   recognizable order with the standard format listed last.</p>
<p>It&#8217;s also best practice to list your CSS3 items last in the CSS   declaration. So, for example, if you&#8217;re rotating an item with CSS3, your   code might look something like this:</p>
<pre class="brush: css; title: ; notranslate">
#rotation {
	float: left;
	width: 200px;
	-webkit-transform: rotate(-5deg); // chrome, safari
	-moz-transform: rotate(-5deg); // firefox
	-o-transform: rotate(-5deg); // opera
	transform: rotate(-5deg);
}
</pre>
<p>In the example above, I don&#8217;t believe the standard syntax is   supported by any browser, but this code just serves as a way to   theoretically demonstrate the method of listing CSS3 properties last,   and the standard property at the end of the declaration. Keeping the   CSS3 properties last will also ensure that any &ldquo;fallback&rdquo; properties are   in their correct place. Which brings us to the next point.</p>
<h2>Use Fallbacks for Background-Related Enhancements</h2>
<p>Some of the new CSS3 features require that the background   property be used. The background property is nothing new   to CSS, but the possible values have been upgraded with CSS3, allowing   use of RGBA, HSLA, gradients and even multiple background images.</p>
<p>In most cases, a non-supporting browser will still display a similar   feature, and the lack of an HSLA or RGBA color will not affect the   result. But with a gradient, you may need to declare an IE-only fallback   in a separate stylesheet, or a background color that it will fall back   to if a gradient is not supported.</p>
<p>So, you might need something like this:</p>
<pre class="brush: css; title: ; notranslate">
#element {
	background-image: url(images/bg-transparent.png);
	background-color: rgba(98, 135, 167, .5);
}
</pre>
<p>In the case of multiple backgrounds, be sure to list the most   important element first, so it serves as the fallback.</p>
<p>For most situations, I don&#8217;t think this particular practice will be   necessary, but it&#8217;s good to keep in mind the possibility that a fallback   color or background image may be needed.</p>
<h2>Use Rotations, Animations &amp; Scaling Sparingly</h2>
<p>Although WebKit-based browsers have opened up some incredible   possibilities with CSS3, we don&#8217;t want to get carried away. Subtle,   tastefully selected events and animations are usually the best choice.</p>
<p>There&#8217;s a reason that Flash intro pages became a tiresome practice;   they were often self-indulgent and pretty pointless, doing nothing but   slowing down the user and making them download more resources than   necessary.</p>
<p>To prevent the web from becoming filled with CSS3 trash, let&#8217;s use   the new features carefully and in a dignified manner that doesn&#8217;t harm   or slow down the user experience.</p>
<h2>Be Careful With Typography</h2>
<p>Making enhancements on text with CSS3 has become more common, and   many sites are now employing the @font-face technique to   use custom fonts.</p>
<p>Make sure that any typography-related enhancements do not affect the   readability of the site. Sometimes, as designers, we take an overall   view of a website&#8217;s layout, and try to make every little detail as   beautiful as possible, but forget the most important thing: That the   content should be accessible and readable.</p>
<p>So, if you&#8217;re considering using shadows, gradients, or transforms on   typographical elements, think twice about it, and strip out any   unnecessary enhancements that cause undue harm to the readability or   accessibility of the site.</p>
<h2>Test in All Browsers With Fallbacks Enabled</h2>
<p>Testing of course is one of the most important parts of successfully   adding enhancements. But the advent of CSS3 features may add more   pressure in this area.</p>
<p>Don&#8217;t be content to just test the enhancements at full-throttle in   the most supportive browsers; test in the non-supporting browsers while   temporarily removing some of the enhancements, maybe one by one, to see   the experience with fallback options enabled.</p>
<p>This makes commenting and organizing code even more important, and   will likely add more quality assurance testing to many design teams&#8217;   schedules.</p>
<h2>What Did I Miss?</h2>
<p>Surely this is not a complete list. Add your comments below if you   feel there are important CSS3 enhancements that require a best practice   method or technique, and I&#8217;ll be happy to add to a few end-points to   this article to round it out.</p>
<p class="source">Source: <a href="http://www.impressivewebs.com" target="_blank">impressivewebs</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.610design.com/coding/best-practices-for-css3/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>5 awesome HTML5 demos</title>
		<link>http://www.610design.com/coding/5-awesome-html5-demos/</link>
		<comments>http://www.610design.com/coding/5-awesome-html5-demos/#comments</comments>
		<pubDate>Tue, 27 Apr 2010 18:21:22 +0000</pubDate>
		<dc:creator>schoey</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[web-design]]></category>

		<guid isPermaLink="false">http://www.610design.com/?p=372</guid>
		<description><![CDATA[You’ve probably seen a bunch of tutorials or articles about HTML5 on design blogs recently, but didn’t try to use it because most users will not be able to view it anyway. Now to motivate you, I compiled a few HTML5 demos that should make you want to start learning this new markup. Be aware [...]]]></description>
			<content:encoded><![CDATA[<p>You’ve probably seen a bunch of tutorials or articles about HTML5 on design blogs recently, but didn’t try to use it because most users will not be able to view it anyway. Now to motivate you, I compiled a few HTML5 demos that should make you want to start learning this new markup.</p>
<p>Be aware that you may not be able to see some of the demos. To know what elements of HTML5 your browser supports, take a look at <a href="http://findmebyip.com/litmus#target-selector" target="_blank">this chart</a>.</p>
<h3>1. <a href="http://apirocks.com/html5/html5.html" target="_blank">APIrocks HTML5 slideshow</a></h3>
<p>If you only have time to watch one of the demos suggested in this article, take a look at this great slideshow by APIrocks. It is not the most spectacular demo in the list, but it gives some cool examples with explanations and code examples.</p>
<h3>2. <a href="http://jilion.com/sublime/video" target="_blank">Sublime Video: a HTML5 video player</a></h3>
<p>Ready to see some videos in your browser with no plugin or flash required? If so go take a look at SublimeVideo. I’m not even mentionning how gorgeous the player is or how cool the full-window functionality is.</p>
<h3>3. <a href="http://www.craftymind.com/2010/04/20/blowing-up-html5-video-and-mapping-it-into-3d-space/" target="_blank">Blowing up HTML5 video</a></h3>
<p>This will probably not only blow a video in your browser, it will also blow your mind. It’s very experimental and hard to see a use for this, but it’s good to see that technical limits will be pushed.</p>
<h3>4. <a href="http://www.benjoffe.com/code/" target="_blank">HTML5 canvas games</a></h3>
<p>The screenshot that you see under this text is taken from the Tetris 3D created in javascript by Ben Joffe using the HTML5 canvas element. Don’t miss his other games and demos, it’s just amazing.</p>
<h3>5. <a href="http://alteredqualia.com/canvasmol/" target="_blank">Canvasmol</a></h3>
<p>Another HTML5 demo using canvas, it shows you some molecules in a rotation.</p>
<h3>And much more</h3>
<p>On the <a href="http://html5demos.com/" target="_blank">HTML5 demo site</a>, go take a look there.</p>
<p class="source">Source: <a href="http://www.designer-daily.com" target="_blank">designer-daily</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.610design.com/coding/5-awesome-html5-demos/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

