<?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>Aarron Walter &#187; CSS</title>
	<atom:link href="http://aarronwalter.com/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://aarronwalter.com</link>
	<description></description>
	<lastBuildDate>Thu, 02 Feb 2012 19:54:19 +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>Color Mixing With RGBa</title>
		<link>http://aarronwalter.com/2010/11/01/color-mixing-with-rgba/</link>
		<comments>http://aarronwalter.com/2010/11/01/color-mixing-with-rgba/#comments</comments>
		<pubDate>Mon, 01 Nov 2010 22:21:33 +0000</pubDate>
		<dc:creator>Aarron</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Inspiration]]></category>
		<category><![CDATA[Web Standards]]></category>
		<category><![CDATA[color]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[rgba]]></category>

		<guid isPermaLink="false">http://aarronwalter.com/?p=894</guid>
		<description><![CDATA[Using RGBa, a fancy new color specification tool in CSS3, you can easily mix colors, and create tints and shades of hues. It's the secret sauce behind the design concept of this website.]]></description>
			<content:encoded><![CDATA[<p>
A few months back I launched a long overdue redesign of this site. I&#8217;ve often thought of the content on my site as information layers, like the strata you would see in a cross section of the earth. Perhaps it&#8217;s an expression of my subconscious memories of growing up in the midwest where the earth and agriculture are a central part of life. Though I&#8217;ve long since moved away, the landscape still drives my aesthetic. Similarly, web pages stack content sections. A blog post, for example, would have a layer for the article, a layer for meta data like tags, and yet another layer for comments.
</p>
<p><span id="more-894"></span></p>
<p>
The new site design reflects that concept by structuring each page as an unordered list grouping each content layer as a list item. Just as the strata of the earth change color as you descend, I wanted to let content layers darken in the content stack to reflect a hierarchy of information. I also wanted to use color to define the various sections of the site not only to create visual distinction that can inform navigation and location recognition, but also to simply pacify my fickle design aesthetic. Varying the color of the strata and the color of each page or section of a website makes for a lot of color mixing.
</p>
<p>
To pull this off, I had to find a solution that was practical. I couldn&#8217;t see myself manually defining the color for each list item in a page. I am too busy (read as lazy) to make a lasting development and maintenance commitment. Doing it manually would certainly keep me from publishing as frequently on my site.
</p>
<h3>RGBa to the Rescue</h3>
<p>
My idea was made ever so simple through the use of <strong>RGBa</strong>, an elegant way to define color in CSS with an alpha channel making transparency easy. RGBa has four values: one each to define red, green, and blue, and one for alpha transparency. Here&#8217;s a simple CSS code example:
</p>
<pre><code>.myelement { background: rgba(255,255,255,0.25); } </code></pre>
<p>
In this example, the background color is being set to black at 25% opacity. The cool thing about this approach is that you can stack color blocks to mix hues, add white to a color to create a <strong>tint</strong>, or add black to create a <strong>shade</strong>. To create the shades in my strata design concept, all I had to do was set a base background color of a page, then set a transparent black background on of each of the strata to crate shades getting ever darker as you get further down the page. I called my content list &#8220;stratosphere&#8221;, and set the class &#8220;strata&#8221; on each list item (<strong>note:</strong> <em>the list item class was necessary to prevent the script we&#8217;ll see shortly from applying colors to any list I might drop in a page.</em>). The CSS looks like this:
</p>
<pre><code>
	.home #stratosphere { background:#4681bd; }
	.home #stratosphere li.strata { background: rgba(255,255,255,0.25); }

</code></pre>
<p>
That solves the color mixing problem, but it doesn&#8217;t solve the challenge of automatically setting the background color on each of the strata, and varying the opacity of the black overlay to create the color shift effect as you scroll down a page. To do that, I had to use some simple jQuery. In order to get a smooth transition between the shades of the strata, I had to first figure out how many layers are in the page, then divide 1 by that number to get the increment of opacity  change (<strong>note:</strong> <em>with RGBa, 1 is 100% opaque, hence dividing 1 by the number of layers</em>). So if there were five layers in a page the equation would be: 1 ⁄5 = 0.2. That means we&#8217;d increase the amount of black in each layer by 20%. Here&#8217;s that simple math expressed in JavaScript:
</p>
<pre><code>
	// Draw Layers
	var numLayers = $('#stratosphere .layer').size();
	var alpha = 0;
	var alphaIncrement = (1/numLayers);

</code></pre>
<p>
Once you know the increment of change, all you have to do is loop through the list items to dynamically set the RGBa value bumping up opacity as you go.
</p>
<pre><code>
	$('#stratosphere .layer').each(function(){
		$(this).css("background-color","rgba(0,0,0,"+alpha+")");
		alpha = (alpha+alphaIncrement);
	});

</code></pre>
<p>
Now I can simply change the background color of the stratosphere list, and the color mixing to create the various layer shades will happen automatically.
</p>
<p>
You can also use RGBa to make buttons and navigation that will work with any color palette, as I&#8217;ve done on this site as well. Semi-transparent buttons inherit the color on which they sit, as does a semi-transparent navigation bar. The result is a site composed of  flexible components that adapt to any color situation. The color mixing possibilities with RGBa are endless.
</p>
<h3>Learn More About RGBa</h3>
<ul class="content-list">
<li><a href="http://24ways.org/2009/working-with-rgba-colour" target="_blank">24Ways.org: Working With RGBA Colour</a></li>
<li><a href="http://css-tricks.com/rgba-browser-support/" target="_blank">CSS Tricks: RGBa Browser Support</a></li>
<li><a href="http://www.w3.org/TR/css3-color/" target="_blank">W3C: CSS3 Color</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://aarronwalter.com/2010/11/01/color-mixing-with-rgba/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Dive Into the Modern Web Workshop at Web Directions USA</title>
		<link>http://aarronwalter.com/2010/09/22/dive-into-the-modern-web-workshop-at-web-directions-usa/</link>
		<comments>http://aarronwalter.com/2010/09/22/dive-into-the-modern-web-workshop-at-web-directions-usa/#comments</comments>
		<pubDate>Wed, 22 Sep 2010 14:48:01 +0000</pubDate>
		<dc:creator>Aarron</dc:creator>
				<category><![CDATA[Conferences]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Tools & Utilities]]></category>
		<category><![CDATA[Web Standards]]></category>
		<category><![CDATA[conference]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[education]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[learning]]></category>
		<category><![CDATA[presentation]]></category>

		<guid isPermaLink="false">http://aarronwalter.com/?p=829</guid>
		<description><![CDATA[I'm co-presenting with <a href="http://morellc.com" target="_blank">Leslie Jensen-Inman</a> and <a href="http://www.glendathegood.com/blog/" target="_blank">Glenda Sims</a> a workshop called "<a href="http://usa10.webdirections.org/workshops#dive-into-the-modern-web-a-workshop-for-educators" target="_blank">Dive Into the Modern Web</a>" today at <a href="http://usa10.webdirections.org/" target="_blank">Web Directions US</a> in Atlanta, GA. This workshop will help educators and self-guided learners get up to speed with the changing landscape of the modern Web.]]></description>
			<content:encoded><![CDATA[<p>
			I&#8217;m co-presenting with <a href="http://morellc.com" target="_blank">Leslie Jensen-Inman</a> and <a href="http://www.glendathegood.com/blog/" target="_blank">Glenda Sims</a> a workshop called &#8220;<a href="http://usa10.webdirections.org/workshops#dive-into-the-modern-web-a-workshop-for-educators" target="_blank">Dive Into the Modern Web</a>&#8221; today at <a href="http://usa10.webdirections.org/" target="_blank">Web Directions US</a> in Atlanta, GA. This workshop will help educators and self-guided learners get up to speed with the changing landscape of the modern Web.
		</p>
<p><span id="more-829"></span></p>
<p>
			I&#8217;m doing presentations on HTML5 and CSS3, which will cover a lot of ideas, technologies, and resources. Below are my slides, the exercise files, and the resources mentioned in the presentation.
		</p>
<h4>The Files</h4>
<ul class="content-list">
<li><a href="http://aarronwalter.com/downloads/wdusa.zip" target="_blank">exercise files</a></li>
<li><a href="http://aarronwalter.com/downloads/wdusa-slides.zip" target="_blank">slide decks</a></li>
</ul>
<h4>The Resources</h4>
<ul class="content-list">
<li><a href="http://9elements.com/io/projects/html5/canvas/" target="_blank">HTML5 and Canvas Experiment</a></li>
<li><a href="http://typekit.com" target="_blank">Typekit</a></li>
<li><a href="http://lostworldsfairs.com" target="_blank">Lost Worlds Fairs</a></li>
<li><a href="" target="_blank">HTML5 Doctor</a></li>
<li><a href="http://www.miketaylr.com/code/input-type-attr.html" target="_blank">HTML5 Form Support Test Tool</a></li>
<li><a href="http://www.nihilogic.dk/labs/pocket_full_of_html5/" target="_blank">Pocket Full of HTML5</a></li>
<li><a href="http://html5test.com" target="_blank">HTML5 Test Tool</a></li>
<li><a href="http://remysharp.com/2009/01/07/html5-enabling-script/" target="_blank">Remy Sharp&#8217;s IE Fix Script</a></li>
<li><a href="http://www.findmebyip.com/litmus/" target="_blank">CSS3 Support Grid</a></li>
<li><a href="http://www.westciv.com/tools/gradients/" target="_blank">CSS3 Gradient Generation Tool</a></li>
<li><a href="http://msdn.microsoft.com/en-us/ie/ff468705.aspx" target="_blank">IE9 HTML5, CSS3, and JavaScript support</a></li>
<li><a href="http://www.nevermindthebullets.com/" target="_blank">Never Mind the Bullets</a></li>
<li><a href="http://www.beautyoftheweb.com/" target="_blank">Beauty of the Web</a></li>
<li><a href="http://24ways.org/2009/going-nuts-with-css-transitions" target="_blank">Going Nuts With CSS Transitions</a></li>
<li><a href="http://www.fontsquirrel.com/" target="_blank">Font Squirrel</a></li>
<li><a href="http://css3exp.com/moon/" target="_blank">Things We Left on the Moon</a></li>
<li><a href="http://interactwithwebstandards.com" target="_blank">Book: InterACT With Web Standards</a></li>
<li><a href="http://interact.webstandards.org" target="_blank">InterACT Curriculum Project</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://aarronwalter.com/2010/09/22/dive-into-the-modern-web-workshop-at-web-directions-usa/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Blueprint: A Practical CSS Framework</title>
		<link>http://aarronwalter.com/2007/08/11/blueprint-a-practical-css-framework/</link>
		<comments>http://aarronwalter.com/2007/08/11/blueprint-a-practical-css-framework/#comments</comments>
		<pubDate>Sat, 11 Aug 2007 13:48:32 +0000</pubDate>
		<dc:creator>Aarron</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Tools & Utilities]]></category>

		<guid isPermaLink="false">http://aarronwalter.com/2007/08/11/blueprint-a-practical-css-framework/</guid>
		<description><![CDATA[There&#8217;s a fair bit of tedium and redundancy that goes into the set up of a new site. Most web designers start with the same tasks like reseting all default margins, padding, and other values to a common baseline for cross-browser support, you define your layout, wrestle with type, maybe even set up a print [...]]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s a fair bit of tedium and redundancy that goes into the set up of a new site. Most web designers start with the same tasks like reseting all default margins, padding, and other values to a common baseline for cross-browser support, you define your layout, wrestle with type, maybe even set up a print style sheet. We often find ourselves repeating what we&#8217;ve already done many times over on other projects. Blueprint, a recently released CSS framework created by Norwegian student <a href="http://bjorkoy.com/" title="Olav Bjorkoy's site" target="_blank">Olav Frihagen Bjorkoy</a>, seeks to eliminate this common tedium by providing a concise set of style sheets that make setup and design quick and easy.</p>
<p><span id="more-207"></span></p>
<p>If you are unfamiliar with the concept of a framework, you can think of it as a base structure of prefabricated code utilities that function both as a toolbox and a skeletal structure for a project. Many great frameworks have been created for both client-side (<a href="http://www.prototypejs.org/" title="Prototype framework for JavaScript" target="_blank">Prototype</a>, <a href="http://dojotoolkit.org/" title="Dojo JavaScript Toolkit" target="_blank">Dojo</a>, <a href="http://jquery.com/" title="JQuery framework for JavaScript" target="_blank">JQuery</a>) and server-side development (<a href="http://rubyonrails.com/" title="Rails framework for Ruby" target="_blank">Ruby on Rails</a>, <a href="http://www.cakephp.org/" title="CakePHP framework" target="_blank">CakePHP</a>, <a href="http://codeigniter.com" title="Code Igniter PHP framework">Code Igniter</a>), and have revolutionized the way web applications are built. The goal of a framework is to allow you to concentrate more on the project concept and mission rather than micro-focusing on the details of the inner pinnings of the code.</p>
<figure><img src="http://aarronwalter.com/wp-content/uploads/2007/08/blueprint-css.png" id="image174" alt="Blueprint CSS Framework in action" class="bigimg" /></figure>
<p>That&#8217;s exactly what Blueprint delivers for CSS design. It brings together the solutions from many recent articles on <a href="http://www.subtraction.com/archives/2005/0901_the_funniest.php" title="Khoi Vinh's funniest grid for the Onion" target="_blank">grid-based layout</a>, <a href="http://www.alistapart.com/articles/settingtypeontheweb" title="Setting Type on the Web to a Baseline Grid">page rhythm</a>, <a href="http://www.alistapart.com/stories/goingtoprint/" title="Eric Meyer on Print Style Sheets" target="_blank">print style sheets</a>, and <a href="http://webtypography.net/" title="The Elements of Web Typography">typography</a> and packages them neatly into a practical system with a low learning curve. By default, Blueprint creates a flexible 14 column grid to guide your layout. Using very simple class combinations, you can define the size of a div to span any number of horizontal units in the grid. For example, a div like the following will span 5 units of the grid and will sit on the right side of the layout.</p>
<p>[source language='css']
<div class="column span-5 last">&#8230;</div>
<p>[/source]</p>
<p>Blueprint also creates flowlines that define the type baseline, and create a uniform rhythm to the page. Background images can be turned on to draw out the grid columns and flowlines as guides while refining your layout.</p>
<p>Although still undergoing refinements to create consistent cross-browser support, Blueprint is in a relatively stable state for project development. If you&#8217;re curious about the story behind the project, check out <a href="http://www.subtraction.com/archives/2007/0807_the_framewor.php" title="Khoi Vinh's blog post about Blueprint" target="_blank">Khoi Vinh&#8217;s recent blog post on the subject</a>, which includes an interview with Olav Bjorkoy, Blueprint&#8217;s creator.</p>
]]></content:encoded>
			<wfw:commentRss>http://aarronwalter.com/2007/08/11/blueprint-a-practical-css-framework/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Visible Design Evolution</title>
		<link>http://aarronwalter.com/2006/11/25/visible-design-evolution/</link>
		<comments>http://aarronwalter.com/2006/11/25/visible-design-evolution/#comments</comments>
		<pubDate>Sat, 25 Nov 2006 20:11:13 +0000</pubDate>
		<dc:creator>Aarron</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>

		<guid isPermaLink="false">http://www.aarronwalter.com/2006/11/25/visible-design-evolution/</guid>
		<description><![CDATA[I&#8217;m usually averse to blogging about things that are already hot topics of everyone else&#8217;s blog, but I think all of my students who read this blog should take a look at this recent post on Ajaxian. A web designer took a screen shot after adding content to a page or modifying the CSS, revealing [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m usually averse to blogging about things that are already hot topics of everyone else&#8217;s blog, but I think all of my students who read this blog should take a look at <a target="_blank" title="Css Evolution" href="http://ajaxian.com/archives/css-evolution">this recent post on Ajaxian</a>. A web designer took a screen shot after adding content to a page or modifying the CSS, revealing and interesting look at the  evolution of the web page development process. The screen shots are rolled into an animated Gif to show the design through time.</p>
]]></content:encoded>
			<wfw:commentRss>http://aarronwalter.com/2006/11/25/visible-design-evolution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Yahoo! UI: Reset Style Sheet</title>
		<link>http://aarronwalter.com/2006/11/19/yahoo-ui-reset-style-sheet/</link>
		<comments>http://aarronwalter.com/2006/11/19/yahoo-ui-reset-style-sheet/#comments</comments>
		<pubDate>Sun, 19 Nov 2006 20:03:10 +0000</pubDate>
		<dc:creator>Aarron</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Tools & Utilities]]></category>

		<guid isPermaLink="false">http://www.aarronwalter.com/2006/11/19/yahoo-ui-reset-style-sheet/</guid>
		<description><![CDATA[Yahoo! has a really nice style sheet that will reset all browser default rendering of padding, margins, fonts, etc. so you can build your style sheets for projects on a level playing field. This is going to prevent a lot of (though not all) cross-browser formatting issues as all browsers will get the same design [...]]]></description>
			<content:encoded><![CDATA[<p>Yahoo! has a <a title="Yahoo! Reset Style Sheet" target="_blank" href="http://developer.yahoo.com/yui/reset/">really nice style sheet</a> that will reset all browser default rendering of padding, margins, fonts, etc. so you can build your style sheets for projects on a level playing field. This is going to prevent a lot of (though not all) cross-browser formatting issues as all browsers will get the same design instructions rather than inheriting default browser styles. Yahoo! has already done all of the cross browser testing to ensure that their reset style sheet forces all browsers to start on a consistent base.</p>
]]></content:encoded>
			<wfw:commentRss>http://aarronwalter.com/2006/11/19/yahoo-ui-reset-style-sheet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Layout Library</title>
		<link>http://aarronwalter.com/2006/10/31/css-layout-library/</link>
		<comments>http://aarronwalter.com/2006/10/31/css-layout-library/#comments</comments>
		<pubDate>Tue, 31 Oct 2006 18:19:26 +0000</pubDate>
		<dc:creator>Aarron</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Tools & Utilities]]></category>

		<guid isPermaLink="false">http://www.aarronwalter.com/2006/10/31/css-layout-library/</guid>
		<description><![CDATA[Dynamic Drive has put together a nice collection of common CSS layouts that demonstrate positioning and floating methods. There are other collections that have been around for some time, but this one seems to have more variety than most. It&#8217;s a great way to learn about CSS positioning.]]></description>
			<content:encoded><![CDATA[<p>Dynamic Drive has put together a <a title="Dynamic Drive CSS Layouts" target="_blank" href="http://www.dynamicdrive.com/style/layouts/">nice collection of common CSS layouts</a> that demonstrate positioning and floating methods. There are <a title="Glish CSS layout" target="_blank" href="http://glish.com/css/">other</a> <a title="Blue Roboto CSS Layout Resevoir" target="_blank" href="http://www.bluerobot.com/web/layouts/">collections</a> that have been around for some time, but this one seems to have more variety than most. It&#8217;s a great way to learn about CSS positioning.</p>
]]></content:encoded>
			<wfw:commentRss>http://aarronwalter.com/2006/10/31/css-layout-library/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

