<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>CSS Formula</title> <link>http://www.cssformula.com</link> <description>Web Design Gallery and Inspiration</description> <lastBuildDate>Mon, 27 Dec 2010 16:23:09 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/cssformula" /><feedburner:info uri="cssformula" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>cssformula</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><feedburner:feedFlare href="http://add.my.yahoo.com/rss?url=http%3A%2F%2Ffeeds.feedburner.com%2Fcssformula" src="http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif">Subscribe with My Yahoo!</feedburner:feedFlare><feedburner:feedFlare href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Fcssformula" src="http://www.newsgator.com/images/ngsub1.gif">Subscribe with NewsGator</feedburner:feedFlare><feedburner:feedFlare href="http://feeds.my.aol.com/add.jsp?url=http%3A%2F%2Ffeeds.feedburner.com%2Fcssformula" src="http://o.aolcdn.com/favorites.my.aol.com/webmaster/ffclient/webroot/locale/en-US/images/myAOLButtonSmall.gif">Subscribe with My AOL</feedburner:feedFlare><feedburner:feedFlare href="http://www.bloglines.com/sub/http://feeds.feedburner.com/cssformula" src="http://www.bloglines.com/images/sub_modern11.gif">Subscribe with Bloglines</feedburner:feedFlare><feedburner:feedFlare href="http://www.netvibes.com/subscribe.php?url=http%3A%2F%2Ffeeds.feedburner.com%2Fcssformula" src="http://www.netvibes.com/img/add2netvibes.gif">Subscribe with Netvibes</feedburner:feedFlare><feedburner:feedFlare href="http://fusion.google.com/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2Fcssformula" src="http://buttons.googlesyndication.com/fusion/add.gif">Subscribe with Google</feedburner:feedFlare><feedburner:feedFlare href="http://www.plusmo.com/add?url=http%3A%2F%2Ffeeds.feedburner.com%2Fcssformula" src="http://plusmo.com/res/graphics/fbplusmo.gif">Subscribe with Plusmo</feedburner:feedFlare><feedburner:feedFlare href="http://www.thefreedictionary.com/_/hp/AddRSS.aspx?http%3A%2F%2Ffeeds.feedburner.com%2Fcssformula" src="http://img.tfd.com/hp/addToTheFreeDictionary.gif">Subscribe with The Free Dictionary</feedburner:feedFlare><feedburner:feedFlare href="http://www.bitty.com/manual/?contenttype=rssfeed&amp;contentvalue=http%3A%2F%2Ffeeds.feedburner.com%2Fcssformula" src="http://www.bitty.com/img/bittychicklet_91x17.gif">Subscribe with Bitty Browser</feedburner:feedFlare><feedburner:feedFlare href="http://www.live.com/?add=http%3A%2F%2Ffeeds.feedburner.com%2Fcssformula" src="http://tkfiles.storage.msn.com/x1piYkpqHC_35nIp1gLE68-wvzLZO8iXl_JMledmJQXP-XTBOLfmQv4zhj4MhcWEJh_GtoBIiAl1Mjh-ndp9k47If7hTaFno0mxW9_i3p_5qQw">Subscribe with Live.com</feedburner:feedFlare><feedburner:feedFlare href="http://mix.excite.eu/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2Fcssformula" src="http://image.excite.co.uk/mix/addtomix.gif">Subscribe with Excite MIX</feedburner:feedFlare><feedburner:feedFlare href="http://www.webwag.com/wwgthis.php?url=http%3A%2F%2Ffeeds.feedburner.com%2Fcssformula" src="http://www.webwag.com/images/wwgthis.gif">Subscribe with Webwag</feedburner:feedFlare><feedburner:feedFlare href="http://www.podcastready.com/oneclick_bookmark.php?url=http%3A%2F%2Ffeeds.feedburner.com%2Fcssformula" src="http://www.podcastready.com/images/podcastready_button.gif">Subscribe with Podcast Ready</feedburner:feedFlare><feedburner:feedFlare href="http://www.wikio.com/subscribe?url=http%3A%2F%2Ffeeds.feedburner.com%2Fcssformula" src="http://www.wikio.com/shared/img/add2wikio.gif">Subscribe with Wikio</feedburner:feedFlare><feedburner:feedFlare href="http://www.dailyrotation.com/index.php?feed=http%3A%2F%2Ffeeds.feedburner.com%2Fcssformula" src="http://www.dailyrotation.com/rss-dr2.gif">Subscribe with Daily Rotation</feedburner:feedFlare><feedburner:browserFriendly>Subscribe to CSS Formula for the latest news, information, and updates on CSS.</feedburner:browserFriendly><item><title>PR4 Consultancy</title><link>http://feedproxy.google.com/~r/cssformula/~3/Sn9TTs04qF4/</link> <comments>http://www.cssformula.com/gallery/pr4-consultancy/#comments</comments> <pubDate>Mon, 10 Jan 2011 20:02:26 +0000</pubDate> <dc:creator>ashblue</dc:creator> <guid isPermaLink="false">http://www.cssformula.com/?post_type=gallery&amp;p=338</guid> <description><![CDATA[<img
width="620" height="300" src="http://www.cssformula.com/wp-content/uploads/2011/01/PR41.jpg" class="attachment-gallery-featured wp-post-image" alt="PR4" title="PR4" string="" /><br>London PR Consultancy. The website is built using the Joomla! CMS.]]></description> <content:encoded><![CDATA[<img
width="620" height="300" src="http://www.cssformula.com/wp-content/uploads/2011/01/PR41.jpg" class="attachment-gallery-featured wp-post-image" alt="PR4" title="PR4" string="" /><br><p>London PR Consultancy. The website is built using the Joomla! CMS.</p> <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/cssformula?a=Sn9TTs04qF4:POrrLikAN4c:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/cssformula?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=Sn9TTs04qF4:POrrLikAN4c:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/cssformula?i=Sn9TTs04qF4:POrrLikAN4c:-BTjWOF_DHI" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=Sn9TTs04qF4:POrrLikAN4c:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/cssformula?i=Sn9TTs04qF4:POrrLikAN4c:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=Sn9TTs04qF4:POrrLikAN4c:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/cssformula?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=Sn9TTs04qF4:POrrLikAN4c:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/cssformula?i=Sn9TTs04qF4:POrrLikAN4c:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=Sn9TTs04qF4:POrrLikAN4c:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/cssformula?d=7Q72WNTAKBA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/cssformula/~4/Sn9TTs04qF4" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.cssformula.com/gallery/pr4-consultancy/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.cssformula.com/gallery/pr4-consultancy/</feedburner:origLink></item> <item><title>Doodlage</title><link>http://feedproxy.google.com/~r/cssformula/~3/ftGkjk2mSPI/</link> <comments>http://www.cssformula.com/gallery/doodlage/#comments</comments> <pubDate>Mon, 27 Dec 2010 17:00:30 +0000</pubDate> <dc:creator>rachelblue</dc:creator> <guid isPermaLink="false">http://www.cssformula.com/?post_type=gallery&amp;p=335</guid> <description><![CDATA[<img
width="620" height="300" src="http://www.cssformula.com/wp-content/uploads/2010/12/doodlage.jpg" class="attachment-gallery-featured wp-post-image" alt="doodlage" title="doodlage" string="" /><br>]]></description> <content:encoded><![CDATA[<img
width="620" height="300" src="http://www.cssformula.com/wp-content/uploads/2010/12/doodlage.jpg" class="attachment-gallery-featured wp-post-image" alt="doodlage" title="doodlage" string="" /><br><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/cssformula?a=ftGkjk2mSPI:WjOHgwZEY0E:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/cssformula?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=ftGkjk2mSPI:WjOHgwZEY0E:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/cssformula?i=ftGkjk2mSPI:WjOHgwZEY0E:-BTjWOF_DHI" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=ftGkjk2mSPI:WjOHgwZEY0E:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/cssformula?i=ftGkjk2mSPI:WjOHgwZEY0E:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=ftGkjk2mSPI:WjOHgwZEY0E:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/cssformula?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=ftGkjk2mSPI:WjOHgwZEY0E:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/cssformula?i=ftGkjk2mSPI:WjOHgwZEY0E:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=ftGkjk2mSPI:WjOHgwZEY0E:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/cssformula?d=7Q72WNTAKBA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/cssformula/~4/ftGkjk2mSPI" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.cssformula.com/gallery/doodlage/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.cssformula.com/gallery/doodlage/</feedburner:origLink></item> <item><title>Delicious Days</title><link>http://feedproxy.google.com/~r/cssformula/~3/ZSU5l6cDpKY/</link> <comments>http://www.cssformula.com/gallery/delicious-days/#comments</comments> <pubDate>Mon, 27 Dec 2010 16:53:46 +0000</pubDate> <dc:creator>rachelblue</dc:creator> <guid isPermaLink="false">http://www.cssformula.com/?post_type=gallery&amp;p=332</guid> <description><![CDATA[<img
width="620" height="300" src="http://www.cssformula.com/wp-content/uploads/2010/12/delicious-days.jpg" class="attachment-gallery-featured wp-post-image" alt="delicious-days" title="delicious-days" string="" /><br>An inspirationally clean blog design. Delicious Days has great recipes and fantastic use of images.]]></description> <content:encoded><![CDATA[<img
width="620" height="300" src="http://www.cssformula.com/wp-content/uploads/2010/12/delicious-days.jpg" class="attachment-gallery-featured wp-post-image" alt="delicious-days" title="delicious-days" string="" /><br><p>An inspirationally clean blog design. Delicious Days has great recipes and fantastic use of images.</p> <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/cssformula?a=ZSU5l6cDpKY:hGVLmjZGzsA:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/cssformula?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=ZSU5l6cDpKY:hGVLmjZGzsA:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/cssformula?i=ZSU5l6cDpKY:hGVLmjZGzsA:-BTjWOF_DHI" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=ZSU5l6cDpKY:hGVLmjZGzsA:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/cssformula?i=ZSU5l6cDpKY:hGVLmjZGzsA:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=ZSU5l6cDpKY:hGVLmjZGzsA:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/cssformula?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=ZSU5l6cDpKY:hGVLmjZGzsA:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/cssformula?i=ZSU5l6cDpKY:hGVLmjZGzsA:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=ZSU5l6cDpKY:hGVLmjZGzsA:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/cssformula?d=7Q72WNTAKBA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/cssformula/~4/ZSU5l6cDpKY" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.cssformula.com/gallery/delicious-days/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.cssformula.com/gallery/delicious-days/</feedburner:origLink></item> <item><title>Felicia Day</title><link>http://feedproxy.google.com/~r/cssformula/~3/jRPNqrxJly4/</link> <comments>http://www.cssformula.com/gallery/felicia-day/#comments</comments> <pubDate>Mon, 27 Dec 2010 16:44:49 +0000</pubDate> <dc:creator>rachelblue</dc:creator> <guid isPermaLink="false">http://www.cssformula.com/?post_type=gallery&amp;p=330</guid> <description><![CDATA[<img
width="620" height="300" src="http://www.cssformula.com/wp-content/uploads/2010/12/Felicia-Day.jpg" class="attachment-gallery-featured wp-post-image" alt="Felicia-Day" title="Felicia-Day" string="" /><br>The online portfolio and internet hub for Felicia Day&#8217;s online presence.]]></description> <content:encoded><![CDATA[<img
width="620" height="300" src="http://www.cssformula.com/wp-content/uploads/2010/12/Felicia-Day.jpg" class="attachment-gallery-featured wp-post-image" alt="Felicia-Day" title="Felicia-Day" string="" /><br><p>The online portfolio and internet hub for Felicia Day&#8217;s online presence.</p> <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/cssformula?a=jRPNqrxJly4:K7_5BpzpHg4:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/cssformula?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=jRPNqrxJly4:K7_5BpzpHg4:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/cssformula?i=jRPNqrxJly4:K7_5BpzpHg4:-BTjWOF_DHI" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=jRPNqrxJly4:K7_5BpzpHg4:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/cssformula?i=jRPNqrxJly4:K7_5BpzpHg4:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=jRPNqrxJly4:K7_5BpzpHg4:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/cssformula?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=jRPNqrxJly4:K7_5BpzpHg4:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/cssformula?i=jRPNqrxJly4:K7_5BpzpHg4:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=jRPNqrxJly4:K7_5BpzpHg4:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/cssformula?d=7Q72WNTAKBA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/cssformula/~4/jRPNqrxJly4" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.cssformula.com/gallery/felicia-day/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.cssformula.com/gallery/felicia-day/</feedburner:origLink></item> <item><title>XHTML to HTML5 Tutorial</title><link>http://feedproxy.google.com/~r/cssformula/~3/sDTniXyj1pM/</link> <comments>http://www.cssformula.com/2010/12/xhtml-to-html5-tutorial/#comments</comments> <pubDate>Mon, 27 Dec 2010 16:00:15 +0000</pubDate> <dc:creator>Andrew Peacock</dc:creator> <category><![CDATA[HTML5]]></category> <category><![CDATA[html]]></category> <category><![CDATA[tutorial]]></category><guid isPermaLink="false">http://www.cssformula.com/?p=304</guid> <description><![CDATA[For many websites and designers div classes and IDs are common place and the basis of every website. The most common elements, containers, headers, footers, and menus are usually the first to be IDed or classed. However, change is coming....]]></description> <content:encoded><![CDATA[<p>For many websites and designers div classes and IDs are common place and the basis of every website. The most common elements, containers, headers, footers, and menus are usually the first to be IDed or classed. However, change is coming.</p><p><span
id="more-304"></span></p><p>Recently HTML5 has become very popular, and is continuing to rise in popularity. There have already been books about it even though HTML5 is not yet completed or supported 100%. The design blogosphere has been populated with tutorials about HTML5, reasons to love HTML5, how HTML5 can clean your house for you, and many other things that seem unreal. While somethings seem to good to be true, canvas feature I’m looking at you, there is no reason to shy away from using HTML5, quite the opposite, it should be embraced by all. With the rise of designers HTML5 is aimed at making things easier and more design-centric than previous versions.</p><p>In order to offer a better comparison or illustration of the change, I will first show a layout of a website in XHTML 1.1, and then demonstrate how HTML5 is doing away with the old ways of div classes and IDs.</p><h3>Generic XHTML Layout</h3><pre class="brush: xml; title: ;">

&lt;div id=&quot;wrapper&quot;&gt;
  &lt;div id=&quot;header&quot;&gt;
    &lt;!-- Header content --&gt;
  &lt;/div&gt;

  &lt;div id=&quot;menu&quot;&gt;
    &lt;ul&gt;
      &lt;li&gt;List item&lt;/li&gt;
      &lt;li&gt;List item&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/div&gt;

  &lt;div id=&quot;container&quot;&gt;
    &lt;div id=&quot;content&quot;&gt;
      &lt;h1&gt;Content here!&lt;/h1&gt;
      &lt;p&gt;Here is my content&lt;/p&gt;
    &lt;/div&gt;
  &lt;/div&gt;

  &lt;div id=&quot;sidebar&quot;&gt;
    &lt;ul&gt;
      &lt;li&gt;List item&lt;/li&gt;
      &lt;li&gt;List item&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/div&gt;

  &lt;div id=&quot;footer&quot;&gt;
    &lt;p&gt;Copyright info&lt;/p&gt;
  &lt;/div&gt;
&lt;/div&gt;
</pre><h4>Section Tag</h4><p>Most of the new HTML5 tags are easily understand as a result of their names, however, the &lt;section&gt; and &lt;article&gt; tags break that rule. While it seems clear that the &lt;article&gt; tag must go inside the &lt;section&gt; tag, it is possible to have a &lt;section&gt; within an &lt;article&gt; tag. Now this is all a bit confusing, so for simplicities sake I will show how a &lt;section&gt; tag can be used as a wrapper or container, and avoid getting into the confusing hierarchy of its other uses. For now at least.</p><p>Often a wrapper or container is created in order to hold the entire website together and to allow it to be positioned without having to move multiple single elements. With the introduction of HTML5 it is now possible to use a &lt;section&gt; tag to contain everything in order to rid oneself of yet another ID or class.</p><p>In the XHTML example at the start of this article, the first thing used is a wrapper tag. It starts off as:</p><pre class="brush: xml; title: ;">

&lt;div id=”wrapper”&gt;
  &lt;!-- Content inside the wrapper --&gt;
&lt;/div&gt;
</pre><p>While this hold the entire website together, it can be replaced with a section tag instead, resulting in it looking as so:</p><pre class="brush: xml; title: ;">

&lt;section&gt;
  &lt;!-- Content inside the wrapper --&gt;
&lt;/section&gt;
</pre><p>With the ability to use &lt;section&gt; tags within &lt;article&gt; tags it’s now possible for a &lt;section&gt; tag to be a containing element for the entire site, and to also use it as a containing element for other parts, or sections, of the site.</p><h4>Header Tag</h4><p>Beginning at the top of a web page, the header ID, or #header, or another name along those lines serving the same purpose, now has its very own HTML5 tag. Instead of creating an ID or class to represent it a designer can now simply insert &lt;header&gt; . Not only does this remove excess text from the web site, it makes the source code easier to navigate. However, there is more than one use for the tag. It can also be placed at the beginning of a &lt;section&gt; tag or at the beginning of an &lt;article&gt; tag, thus giving it great flexibility.</p><p>In the XHTML layout at the start of the page the header is displayed as:</p><pre class="brush: xml; title: ;">

&lt;div id=&quot;header&quot;&gt;
  &lt;!-- Header content --&gt;
&lt;/div&gt;
</pre><p>In HTML5 the header ID is done away with, and instead replaced with:</p><pre class="brush: xml; title: ;">

&lt;header&gt;
  &lt;!-- Header content --&gt;
&lt;/header&gt;
</pre><h4>Nav Tag</h4><p>Depending on how one creates a website the menu could come later on, but for the sake of the article it will go here. Instead of a menu ID or class, a &lt;nav&gt; tag is now used instead. As discernible from the name, the tag is meant to be used for navigation items. This tag many not be as versatile as the previous &lt;header&gt; tag, but its purpose is clearly defined.</p><p>While the article tag can do away with an a few extra lines of code, the &lt;nav&gt; tag does not do the same. In XHTML a menu is often displayed as a menu ID like so:</p><pre class="brush: xml; title: ;">

&lt;div id=&quot;menu&quot;&gt;
  &lt;ul&gt;
    &lt;li&gt;List item&lt;/li&gt;
    &lt;li&gt;List item&lt;/li&gt;
  &lt;/ul&gt;
&lt;/div&gt;
</pre><p>In HTML5 format the ID is done away with and replaced with the &lt;nav&gt; tag, this makes the code easier to navigate and understand, and also cleaner.</p><pre class="brush: xml; title: ;">

&lt;nav&gt;
  &lt;ul&gt;
    &lt;li&gt;List item&lt;/li&gt;
    &lt;li&gt;List item&lt;/li&gt;
  &lt;/ul&gt;
&lt;/nav&gt;
</pre><h4>Article Tag</h4><p>I have recently began a foray into coding WordPress themes, and when I style the entries I’ll often use a class called entry. The new &lt;article&gt; tag changes this though and, once again, eliminates another div. While w3school defines an article as a container for external content, I see it most often used for the same use as its title, articles.</p><p>Towards the middle of the layout the first container ID is used to hold the content.</p><pre class="brush: xml; title: ;">

&lt;div id=&quot;container&quot;&gt;
  &lt;div id=&quot;content&quot;&gt;
    &lt;h1&gt;Content here!&lt;/h1&gt;
    &lt;p&gt;Here is my content&lt;/p&gt;
  &lt;/div&gt;
&lt;/div&gt;
</pre><p>There are different ways to go about applying HTML5 elements to that part of the layout. One is to do away with the container ID completely, resulting in the layout looking like so:</p><pre class="brush: xml; title: ;">

&lt;article&gt;
  &lt;h1&gt;Content here!&lt;/h1&gt;
  &lt;p&gt;Here is my content&lt;/p&gt;
&lt;/article&gt;
</pre><p>Another way to attack the layout is to replace the container with a section tag, but instead of a simple tag, a class is added to the section tag.</p><pre class="brush: xml; title: ;">

&lt;section class=&quot;container&quot;&gt;
  &lt;article&gt;
    &lt;h1&gt;Content here!&lt;/h1&gt;
    &lt;p&gt;Here is my content&lt;/p&gt;
  &lt;/article&gt;
&lt;/section&gt;
</pre><p>The second method is far less desirable than the first though because it uses a class, which is no different than simply using a container ID. The first method is even better than normal though since it gets rid of not only a class, but also a few lines of code. If there are multiple articles then classes may be necessary, but for a simple layout, the first method should suffice.</p><h4>Aside Tag</h4><p>The &lt;aside&gt; tag, like the header tag can be used in a multitude of places for the same thing. It is used to define information that is separate from the main text or the article. I often use the tag instead of a sidebar class or ID, and have seen many others do the same.</p><p>In XHTML a sidebar is generally written as:</p><pre class="brush: xml; title: ;">

&lt;div id=&quot;sidebar&quot;&gt;
  &lt;ul&gt;
    &lt;li&gt;List item&lt;/li&gt;
    &lt;li&gt;List item&lt;/li&gt;
  &lt;/ul&gt;
&lt;/div&gt;
</pre><p>HTML5 doesn’t shorten the code any, as an aside is represented the same as all the previous elements, by its name.</p><pre class="brush: xml; title: ;">

&lt;aside&gt;
  &lt;ul&gt;
    &lt;li&gt;List item&lt;/li&gt;
    &lt;li&gt;List item&lt;/li&gt;
  &lt;/ul&gt;
&lt;/aside&gt;
</pre><h4>Footer Tag</h4><p>Generally last in a website is the footer class or ID. It is now its own tag, and like the &lt;header&gt; tag can be used in a multitude of places. It can be placed at the very end of an entire website or placed at the bottom of a post or article.</p><p>It is most often represented like so in XHTML:</p><pre class="brush: xml; title: ;">

&lt;div id=&quot;footer&quot;&gt;
  &lt;p&gt;Copyright info&lt;/p&gt;
&lt;/div&gt;
</pre><p>In HTML5 it is now changed to a simple tag with the same name as the often used ID or class.</p><pre class="brush: xml; title: ;">

&lt;footer&gt;
  &lt;p&gt;Copyright info&lt;/p&gt;
&lt;/footer&gt;
</pre><h3>HTML5 Layout</h3><p>When putting it together it somewhat resembles the XHTML layout, but is easier to understand and is a bit cleaner. It also helps prevent you from losing the endings to div tags and having too many or too few.</p><pre class="brush: xml; title: ;">

&lt;section&gt;
  &lt;header&gt;
    &lt;!-- Header content --&gt;
  &lt;/header&gt;

  &lt;nav&gt;
    &lt;ul&gt;
      &lt;li&gt;List item&lt;/li&gt;
      &lt;li&gt;List item&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/nav&gt;

  &lt;article&gt;
    &lt;h1&gt;Content here!&lt;/h1&gt;
    &lt;p&gt;Here is my content&lt;/p&gt;
  &lt;/article&gt;

  &lt;aside&gt;
    &lt;ul&gt;
      &lt;li&gt;List item&lt;/li&gt;
      &lt;li&gt;List item&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/aside&gt;

  &lt;footer&gt;
    &lt;p&gt;Copyright info&lt;/p&gt;
  &lt;/footer&gt;
&lt;/section&gt;
</pre><h3>IE</h3><p>The red-headed step-child of Internet browsers does not currently support HTML5 at all. Shocker. There is a way to make HTML5 work in Internet Explorer with a JavaScript work around, which is good because everyone loves HTML5 and wants to use it. Again, shocker. I use a few short lines of code and a few conditional statements to make HTML5 work in IE.</p><pre class="brush: xml; title: ;">

&lt;!--/*Google Chrome Frame*/--&gt;

&lt;!--[if IE]&gt;
  &lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;chrome=1&quot;&gt;
  &lt;script src=&quot;http://s12.in/cfinstall.js&quot;&gt;&lt;/script&gt;
&lt;![endif]--&gt;

&lt;!--/*GCF Fallback*/--&gt;

&lt;!--[if lt IE 9]&gt;&lt;script src=&quot;http://s12.in/html5/shiv.js&quot;&gt;&lt;/script&gt;&lt;![endif]--&gt;

&lt;!--[if lt IE 8]&gt;&lt;script src=&quot;http://s12.in/ie.js&quot;&gt;&lt;/script&gt;&lt;![endif]--&gt;
</pre><h4>Conclusion</h4><p>While Internet Explorer doesn’t support HTML5 without a work-around, that’s no reason to not use it. It is cleaner, less confusing, and takes up less space than the current way of doing things. It’s simply better. Therefore use it. Not only that, but everyone else in the web design world is salivating over it so it must be the greatest thing ever. In all seriousness though, it is a definite upgrade from the old way of doing things and will become the way that all websites are done soon, so learn it now!</p> <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/cssformula?a=sDTniXyj1pM:yZDSaf7Fn7w:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/cssformula?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=sDTniXyj1pM:yZDSaf7Fn7w:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/cssformula?i=sDTniXyj1pM:yZDSaf7Fn7w:-BTjWOF_DHI" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=sDTniXyj1pM:yZDSaf7Fn7w:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/cssformula?i=sDTniXyj1pM:yZDSaf7Fn7w:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=sDTniXyj1pM:yZDSaf7Fn7w:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/cssformula?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=sDTniXyj1pM:yZDSaf7Fn7w:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/cssformula?i=sDTniXyj1pM:yZDSaf7Fn7w:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=sDTniXyj1pM:yZDSaf7Fn7w:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/cssformula?d=7Q72WNTAKBA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/cssformula/~4/sDTniXyj1pM" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.cssformula.com/2010/12/xhtml-to-html5-tutorial/feed/</wfw:commentRss> <slash:comments>2</slash:comments> <feedburner:origLink>http://www.cssformula.com/2010/12/xhtml-to-html5-tutorial/</feedburner:origLink></item> <item><title>Keurig</title><link>http://feedproxy.google.com/~r/cssformula/~3/uW76FkTQZMU/</link> <comments>http://www.cssformula.com/gallery/keurig/#comments</comments> <pubDate>Sun, 26 Dec 2010 23:16:51 +0000</pubDate> <dc:creator>rachelblue</dc:creator> <guid isPermaLink="false">http://www.cssformula.com/?post_type=gallery&amp;p=318</guid> <description><![CDATA[<img
width="620" height="300" src="http://www.cssformula.com/wp-content/uploads/2010/12/Keurig.jpg" class="attachment-gallery-featured wp-post-image" alt="Keurig" title="Keurig" string="" /><br>Keurig brews the perfect cup of coffee, tea, and hot cocoa. Their eCommerce site holds a lot of information in a clean and organized way.]]></description> <content:encoded><![CDATA[<img
width="620" height="300" src="http://www.cssformula.com/wp-content/uploads/2010/12/Keurig.jpg" class="attachment-gallery-featured wp-post-image" alt="Keurig" title="Keurig" string="" /><br><p>Keurig brews the perfect cup of coffee, tea, and hot cocoa. Their eCommerce site holds a lot of information in a clean and organized way.</p> <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/cssformula?a=uW76FkTQZMU:VuR3xwu2rZY:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/cssformula?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=uW76FkTQZMU:VuR3xwu2rZY:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/cssformula?i=uW76FkTQZMU:VuR3xwu2rZY:-BTjWOF_DHI" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=uW76FkTQZMU:VuR3xwu2rZY:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/cssformula?i=uW76FkTQZMU:VuR3xwu2rZY:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=uW76FkTQZMU:VuR3xwu2rZY:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/cssformula?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=uW76FkTQZMU:VuR3xwu2rZY:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/cssformula?i=uW76FkTQZMU:VuR3xwu2rZY:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=uW76FkTQZMU:VuR3xwu2rZY:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/cssformula?d=7Q72WNTAKBA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/cssformula/~4/uW76FkTQZMU" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.cssformula.com/gallery/keurig/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.cssformula.com/gallery/keurig/</feedburner:origLink></item> <item><title>Pura Vida Coffee</title><link>http://feedproxy.google.com/~r/cssformula/~3/R9xjKNOsS0s/</link> <comments>http://www.cssformula.com/gallery/pura-vida-coffee/#comments</comments> <pubDate>Sun, 26 Dec 2010 23:09:31 +0000</pubDate> <dc:creator>rachelblue</dc:creator> <guid isPermaLink="false">http://www.cssformula.com/?post_type=gallery&amp;p=314</guid> <description><![CDATA[<img
width="620" height="300" src="http://www.cssformula.com/wp-content/uploads/2010/12/Pura-Vida-Coffee.jpg" class="attachment-gallery-featured wp-post-image" alt="Pura-Vida-Coffee" title="Pura-Vida-Coffee" string="" /><br>&#8220;Selling coffee as a means to create good&#8221; Pura Vida sells organic and fair trade coffee.]]></description> <content:encoded><![CDATA[<img
width="620" height="300" src="http://www.cssformula.com/wp-content/uploads/2010/12/Pura-Vida-Coffee.jpg" class="attachment-gallery-featured wp-post-image" alt="Pura-Vida-Coffee" title="Pura-Vida-Coffee" string="" /><br><p>&#8220;Selling coffee as a means to create good&#8221; Pura Vida sells organic and fair trade coffee.</p> <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/cssformula?a=R9xjKNOsS0s:2P7oJmXY6oo:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/cssformula?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=R9xjKNOsS0s:2P7oJmXY6oo:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/cssformula?i=R9xjKNOsS0s:2P7oJmXY6oo:-BTjWOF_DHI" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=R9xjKNOsS0s:2P7oJmXY6oo:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/cssformula?i=R9xjKNOsS0s:2P7oJmXY6oo:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=R9xjKNOsS0s:2P7oJmXY6oo:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/cssformula?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=R9xjKNOsS0s:2P7oJmXY6oo:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/cssformula?i=R9xjKNOsS0s:2P7oJmXY6oo:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=R9xjKNOsS0s:2P7oJmXY6oo:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/cssformula?d=7Q72WNTAKBA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/cssformula/~4/R9xjKNOsS0s" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.cssformula.com/gallery/pura-vida-coffee/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.cssformula.com/gallery/pura-vida-coffee/</feedburner:origLink></item> <item><title>Highly Caffeinated</title><link>http://feedproxy.google.com/~r/cssformula/~3/v53OCAPfFvs/</link> <comments>http://www.cssformula.com/gallery/highly-caffeinated/#comments</comments> <pubDate>Sun, 26 Dec 2010 22:58:08 +0000</pubDate> <dc:creator>rachelblue</dc:creator> <guid isPermaLink="false">http://www.cssformula.com/?post_type=gallery&amp;p=309</guid> <description><![CDATA[<img
width="620" height="300" src="http://www.cssformula.com/wp-content/uploads/2010/12/Highly-Caffeinated-1.jpg" class="attachment-gallery-featured wp-post-image" alt="Highly-Caffeinated-1" title="Highly-Caffeinated-1" string="" /><br>The online portfolio of Surrey based web designer Katy Hockham.]]></description> <content:encoded><![CDATA[<img
width="620" height="300" src="http://www.cssformula.com/wp-content/uploads/2010/12/Highly-Caffeinated-1.jpg" class="attachment-gallery-featured wp-post-image" alt="Highly-Caffeinated-1" title="Highly-Caffeinated-1" string="" /><br><p>The online portfolio of Surrey based web designer Katy Hockham.</p> <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/cssformula?a=v53OCAPfFvs:FMiiQHS7YSM:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/cssformula?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=v53OCAPfFvs:FMiiQHS7YSM:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/cssformula?i=v53OCAPfFvs:FMiiQHS7YSM:-BTjWOF_DHI" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=v53OCAPfFvs:FMiiQHS7YSM:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/cssformula?i=v53OCAPfFvs:FMiiQHS7YSM:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=v53OCAPfFvs:FMiiQHS7YSM:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/cssformula?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=v53OCAPfFvs:FMiiQHS7YSM:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/cssformula?i=v53OCAPfFvs:FMiiQHS7YSM:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=v53OCAPfFvs:FMiiQHS7YSM:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/cssformula?d=7Q72WNTAKBA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/cssformula/~4/v53OCAPfFvs" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.cssformula.com/gallery/highly-caffeinated/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.cssformula.com/gallery/highly-caffeinated/</feedburner:origLink></item> <item><title>Lakeshore Branding</title><link>http://feedproxy.google.com/~r/cssformula/~3/8CmEeqsL8b8/</link> <comments>http://www.cssformula.com/gallery/lakeshore-branding/#comments</comments> <pubDate>Sun, 26 Dec 2010 22:51:10 +0000</pubDate> <dc:creator>ashblue</dc:creator> <guid isPermaLink="false">http://www.cssformula.com/?post_type=gallery&amp;p=302</guid> <description><![CDATA[<img
width="620" height="300" src="http://www.cssformula.com/wp-content/uploads/2010/12/Lakeshore-Branding1.jpg" class="attachment-gallery-featured wp-post-image" alt="Lakeshore-Branding1" title="Lakeshore-Branding1" string="" /><br>Lakeshore Branding is a digital agency based in the River North neighborhood of Chicago. We work with clients and brands on digital initiatives that include strategy, design, user experience and development. We influence communication and commerce.]]></description> <content:encoded><![CDATA[<img
width="620" height="300" src="http://www.cssformula.com/wp-content/uploads/2010/12/Lakeshore-Branding1.jpg" class="attachment-gallery-featured wp-post-image" alt="Lakeshore-Branding1" title="Lakeshore-Branding1" string="" /><br><p>Lakeshore Branding is a digital agency based in the River North neighborhood of Chicago. We work with clients and brands on digital initiatives that include strategy, design, user experience and development. We influence communication and commerce.</p> <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/cssformula?a=8CmEeqsL8b8:5z6wqHjEkzQ:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/cssformula?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=8CmEeqsL8b8:5z6wqHjEkzQ:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/cssformula?i=8CmEeqsL8b8:5z6wqHjEkzQ:-BTjWOF_DHI" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=8CmEeqsL8b8:5z6wqHjEkzQ:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/cssformula?i=8CmEeqsL8b8:5z6wqHjEkzQ:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=8CmEeqsL8b8:5z6wqHjEkzQ:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/cssformula?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=8CmEeqsL8b8:5z6wqHjEkzQ:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/cssformula?i=8CmEeqsL8b8:5z6wqHjEkzQ:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=8CmEeqsL8b8:5z6wqHjEkzQ:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/cssformula?d=7Q72WNTAKBA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/cssformula/~4/8CmEeqsL8b8" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.cssformula.com/gallery/lakeshore-branding/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.cssformula.com/gallery/lakeshore-branding/</feedburner:origLink></item> <item><title>Richard Beckett</title><link>http://feedproxy.google.com/~r/cssformula/~3/vChQH9AfJoQ/</link> <comments>http://www.cssformula.com/gallery/richard-beckett/#comments</comments> <pubDate>Mon, 06 Dec 2010 17:21:58 +0000</pubDate> <dc:creator>ashblue</dc:creator> <guid isPermaLink="false">http://www.cssformula.com/?post_type=gallery&amp;p=299</guid> <description><![CDATA[<img
width="620" height="300" src="http://www.cssformula.com/wp-content/uploads/2010/12/Richard-Beckett.jpg" class="attachment-gallery-featured wp-post-image" alt="Richard-Beckett" title="Richard-Beckett" string="" /><br>Web design company based in Leeds, UK. We specialize in Joomla development.]]></description> <content:encoded><![CDATA[<img
width="620" height="300" src="http://www.cssformula.com/wp-content/uploads/2010/12/Richard-Beckett.jpg" class="attachment-gallery-featured wp-post-image" alt="Richard-Beckett" title="Richard-Beckett" string="" /><br><p>Web design company based in Leeds, UK.  We specialize in Joomla development.</p> <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/cssformula?a=vChQH9AfJoQ:SER44lo6PA0:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/cssformula?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=vChQH9AfJoQ:SER44lo6PA0:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/cssformula?i=vChQH9AfJoQ:SER44lo6PA0:-BTjWOF_DHI" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=vChQH9AfJoQ:SER44lo6PA0:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/cssformula?i=vChQH9AfJoQ:SER44lo6PA0:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=vChQH9AfJoQ:SER44lo6PA0:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/cssformula?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=vChQH9AfJoQ:SER44lo6PA0:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/cssformula?i=vChQH9AfJoQ:SER44lo6PA0:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=vChQH9AfJoQ:SER44lo6PA0:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/cssformula?d=7Q72WNTAKBA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/cssformula/~4/vChQH9AfJoQ" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.cssformula.com/gallery/richard-beckett/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.cssformula.com/gallery/richard-beckett/</feedburner:origLink></item> <item><title>A Guide To The CSS Position Property</title><link>http://feedproxy.google.com/~r/cssformula/~3/JPAsQioD3CU/</link> <comments>http://www.cssformula.com/2010/11/a-guide-to-the-css-position-property/#comments</comments> <pubDate>Mon, 08 Nov 2010 14:00:52 +0000</pubDate> <dc:creator>ashblue</dc:creator> <category><![CDATA[CSS]]></category> <category><![CDATA[basics]]></category> <category><![CDATA[guide]]></category><guid isPermaLink="false">http://www.cssformula.com/?p=234</guid> <description><![CDATA[One of the essential elements to becoming a CSS expert is understanding how the position property works. If you don&#8217;t know how its various properties function you&#8217;ll be severely limited graphically and unable to fix various CSS elements that crash...]]></description> <content:encoded><![CDATA[<p>One of the essential elements to becoming a CSS expert is understanding how the position property works. If you don&#8217;t know how its various properties function you&#8217;ll be severely limited graphically and unable to fix various CSS elements that crash on your pages. Whether you are an experienced web design veteran or a beginner this guide will help advance your CSS arsenal.</p><p><span
id="more-234"></span></p><h3>Static Positioning</h3><h4>Definition</h4><p>To start with the basics of CSS, let&#8217;s talk about static positioning. Everything set to this property conforms to the natural page order. Think of statically positioned elements as a cement wall, it cannot be removed completely, nor can it be moved at all. Everything you write in CSS defaults to this positioning.</p><h4>Diagram</h4><p><img
class="alignnone size-full wp-image-257" title="Static Positioning" src="http://www.cssformula.com/wp-content/uploads/2010/11/static-positioning.jpg" alt="" width="620" height="220" /></p><h4>Snippet</h4><pre class="brush: css; title: ;">

p { display: static }
</pre><h4>Example</h4><p><img
class="alignnone size-full wp-image-262" title="Position Static Example" src="http://www.cssformula.com/wp-content/uploads/2010/11/position-static-example.jpg" alt="" width="620" height="220" /></p><p>Here is an example of Amazon.com without any CSS. By default all elements are displaying with a position of static. Although, if IE 6 somehow managed to violate this principal, I wouldn&#8217;t be surprised.</p><h4>Practical Application</h4><p>Everything you create by default will assume its position like an orderly flock of lemmings. The reason why I use this analogy is sometimes you might get an element that will inherit something other than static positioning and start flying across the page. For example, in a few instances I&#8217;ve had header items inherit non-static positioning. Just use the position: static property to fix it.</p><h3>Relative Positioning</h3><h4>Definition</h4><p>If static positioning is a cement wall, then that would make relative positioning more like a brick. A brick is still used in a house and has placement, but it can be moved around relatively easily (unlike our solid wall). Relative positioning accepts positive and negative values for top, right, bottom, and left properties. Think of using these properties as a way of &#8220;nudging&#8221; elements from their original position. The browser will read relatively positioned elements as if they are static, but also allows you to move them.</p><p>So, if we move an element. The browser will nudge it as indicated, but at the same time it won&#8217;t fly out of the flow of items either (see diagram below).</p><h4>Diagram</h4><p><img
class="alignnone size-full wp-image-267" title="Relative Positioning Example" src="http://www.cssformula.com/wp-content/uploads/2010/11/relative-positioning-exampl.jpg" alt="" width="620" height="197" /></p><h4>Code Snippet</h4><pre class="brush: css; title: ;">

p { position: relative; top: 15px; left: 20px }
</pre><h4>Example</h4><p><img
class="alignnone size-full wp-image-275" title="Relative positioning example" src="http://www.cssformula.com/wp-content/uploads/2010/11/relative-positioning-exampl1.jpg" alt="" width="620" height="197" /></p><p>The following logo has a gradient with a png on the background. Because the logo doesn&#8217;t quite fit inside the container for the rest of the site, we can nudge it to the left with relative positioning.</p><h4>Practical Application</h4><p>To be honest, I rarely use relatively positioned elements in my project. The only time I really use them is to tweak images and containers a couple pixels. What they&#8217;re really meant for is containing absolutely positioned elements from flying off the screen (more to follow on that next).</p><h3>Absolute Positioning</h3><h4>Definition</h4><p>This property makes page elements fly out of their container until they shoot off screen or hit the &lt;html&gt; block. The only super power in the world that may contain them is position: relative. This property is your only hope, as it will keep the absolutely positioned elements inside of it. You&#8217;ll need this in your arsenal for creating heavily graphic based designs.</p><h4>Diagram</h4><p><img
class="alignnone size-full wp-image-270" title="Position Absolute Example" src="http://www.cssformula.com/wp-content/uploads/2010/11/position-absolute-example.jpg" alt="" width="620" height="197" /></p><h4>Code Snippet</h4><pre class="brush: css; title: ;">

div { position: relative }
img { position: absolute; top: 50px; right: 0; }
</pre><h4>Example</h4><p><img
class="alignnone size-full wp-image-276" title="Absolute positioning example" src="http://www.cssformula.com/wp-content/uploads/2010/11/absolute-positioning-exampl.jpg" alt="" width="620" height="197" /></p><p>CSS Formula&#8217;s social media box has a Twitter, Facebook, and RSS icon above positioned via absolute positioning. Instead of individually positioning all of the icons, we are moving the container (a div) all the way to the right.</p><h4>Practical Application</h4><p>If there is one thing you learn about absolute positioning it should be Fahrner Image Replacement. This technique replaces text with an image in a user friendly way. I could go into more detail on this, but this technique is quite complex for an introduction to the CSS position property. If you are interested in more information check out the <a
href="http://en.wikipedia.org/wiki/Fahrner_Image_Replacement" target="_blank">Wikipedia page</a>.</p><h3>Fixed Positioning</h3><p>When using fixed positioning your targeted html element will align itself according to the browser&#8217;s window. This means no matter how much somebody scroll&#8217;s on a website, the element will be in the exact same place. Think of it as &#8220;pinning&#8221; an element to the browser&#8217;s window and removing it from the flow of everything else in the website.</p><h4>Diagram</h4><p><img
class="alignnone size-full wp-image-277" title="Position Fixed Diagram" src="http://www.cssformula.com/wp-content/uploads/2010/11/position-fixed-diagram.jpg" alt="" width="620" height="197" /></p><h4>Snippet</h4><pre class="brush: css; title: ;">

img { position: fixed; top: 0; left: 150px }
</pre><h4>Example</h4><p><img
class="alignnone size-full wp-image-279" title="Fixed positioning example" src="http://www.cssformula.com/wp-content/uploads/2010/11/fixed-positioning-example.jpg" alt="" width="620" height="197" /></p><p>The popular Twitter hybrid known as TweetMeme sports fixed positioning for their Feedback and Help buttons. When scrolling on their site the buttons stay fixed to the left of the browser&#8217;s window and don&#8217;t move at all.</p><h4>Practical Application</h4><p>Rarely will you use fixed position with anything on a website unless you are an evil marketing guru bent on shoveling as much advertising as possible on top of innocent people (not a good practice). Most of the time you see it being used to position sidebars and put icons on the side of your screen. Nothing too fancy, but it&#8217;s good to be aware of fixed positioning.</p> <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/cssformula?a=JPAsQioD3CU:zOnAS8Ye3X0:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/cssformula?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=JPAsQioD3CU:zOnAS8Ye3X0:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/cssformula?i=JPAsQioD3CU:zOnAS8Ye3X0:-BTjWOF_DHI" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=JPAsQioD3CU:zOnAS8Ye3X0:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/cssformula?i=JPAsQioD3CU:zOnAS8Ye3X0:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=JPAsQioD3CU:zOnAS8Ye3X0:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/cssformula?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=JPAsQioD3CU:zOnAS8Ye3X0:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/cssformula?i=JPAsQioD3CU:zOnAS8Ye3X0:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=JPAsQioD3CU:zOnAS8Ye3X0:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/cssformula?d=7Q72WNTAKBA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/cssformula/~4/JPAsQioD3CU" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.cssformula.com/2010/11/a-guide-to-the-css-position-property/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.cssformula.com/2010/11/a-guide-to-the-css-position-property/</feedburner:origLink></item> <item><title>Will Barron</title><link>http://feedproxy.google.com/~r/cssformula/~3/T6u1OZVV9-A/</link> <comments>http://www.cssformula.com/gallery/will-barron/#comments</comments> <pubDate>Sun, 07 Nov 2010 08:43:22 +0000</pubDate> <dc:creator>rachelblue</dc:creator> <guid isPermaLink="false">http://www.cssformula.com/?post_type=gallery&amp;p=250</guid> <description><![CDATA[<img
width="620" height="300" src="http://www.cssformula.com/wp-content/uploads/2010/11/will-barron.jpg" class="attachment-gallery-featured wp-post-image" alt="will-barron" title="will-barron" string="" /><br>The portfolio of web designer Will Barron.]]></description> <content:encoded><![CDATA[<img
width="620" height="300" src="http://www.cssformula.com/wp-content/uploads/2010/11/will-barron.jpg" class="attachment-gallery-featured wp-post-image" alt="will-barron" title="will-barron" string="" /><br><p>The portfolio of web designer Will Barron.</p> <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/cssformula?a=T6u1OZVV9-A:lSEwaPebf58:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/cssformula?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=T6u1OZVV9-A:lSEwaPebf58:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/cssformula?i=T6u1OZVV9-A:lSEwaPebf58:-BTjWOF_DHI" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=T6u1OZVV9-A:lSEwaPebf58:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/cssformula?i=T6u1OZVV9-A:lSEwaPebf58:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=T6u1OZVV9-A:lSEwaPebf58:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/cssformula?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=T6u1OZVV9-A:lSEwaPebf58:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/cssformula?i=T6u1OZVV9-A:lSEwaPebf58:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cssformula?a=T6u1OZVV9-A:lSEwaPebf58:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/cssformula?d=7Q72WNTAKBA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/cssformula/~4/T6u1OZVV9-A" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.cssformula.com/gallery/will-barron/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.cssformula.com/gallery/will-barron/</feedburner:origLink></item> </channel> </rss><!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced)
Database Caching using disk
Object Caching 2268/2413 objects using disk

Served from: www.cssformula.com @ 2012-01-24 05:18:39 -->

