<?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>Tristar Web Design &#187; html5</title>
	<atom:link href="http://www.webdesignlondon-tristar.co.uk/tag/html5/feed" rel="self" type="application/rss+xml" />
	<link>http://www.webdesignlondon-tristar.co.uk</link>
	<description>Website Designed from £199</description>
	<lastBuildDate>Tue, 31 Jan 2012 09:29:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>HTML5 WordPress Themes &amp; Frameworks&#8230;</title>
		<link>http://www.webdesignlondon-tristar.co.uk/wordpress/html5-wordpress-themes-frameworks</link>
		<comments>http://www.webdesignlondon-tristar.co.uk/wordpress/html5-wordpress-themes-frameworks#comments</comments>
		<pubDate>Thu, 05 May 2011 10:48:38 +0000</pubDate>
		<dc:creator>Jack</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[themes]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress frameworks]]></category>
		<category><![CDATA[wordpress themes]]></category>

		<guid isPermaLink="false">http://www.tristarwebdesign.co.uk/?p=2189</guid>
		<description><![CDATA[Developing WordPress themes is a lot easier these days. With the variety of theme development frameworks available to work from, we can now spend less time producing the default/standard code that WordPress needs to function, and more time designing and &#8230; <a class="readmore" href="http://www.webdesignlondon-tristar.co.uk/wordpress/html5-wordpress-themes-frameworks">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Developing <a href="/blog/category/wordpress/" title="wordpress">WordPress</a> themes is a lot easier these days. With the variety of theme development frameworks available to work from, we can now spend less time producing the default/standard code that WordPress needs to function, and more time designing and developing the actual website we want to create. No longer do we need to type endless lines of repetitive code, or browsing the WordPress codex for hours on end, looking for functions we require.</p>
<p>While it is always worth having the knowledge of building a theme from the ground up (yes, it is worth trying this, it&#8217;s the best way of learning what each WordPress function/<a href="/website-templates/" title="template">template</a> tag does), it&#8217;s generally accepted that using a theme framework is the best way of starting your new WordPress project.</p>
<p>There are a wide variety of different frameworks out there &#8211; notable frameworks include the default WordPress theme <a href="http://2010dev.wordpress.com/" target="_blank" rel="nofollow" title="TwentyTen">TwentyTen</a>, the awesome blank canvas from Elliot Jay Stocks known as <a href="http://starkerstheme.com/" target="_blank" rel="nofollow" title="Starkers">Starkers</a>, and the powerful <a href="http://themehybrid.com/hybrid-core" target="_blank" rel="nofollow" title="Hybrid Core">Hybrid Core</a>.</p>
<p>Some developers prefer to work with a blank framework (like Starkers), or use frameworks with built in &#8220;bespoke&#8221; functionality (like Hybrid) that may suit a particular project. For the majority of my websites, I&#8217;ll begin with a blank canvas framework, with my theme of choice being Starkers.</p>
<p>However, with the web now ready to accept HTML5 a whole lot more, I&#8217;ve recently been on the hunt for HTML5 frameworks. Here&#8217;s a round up of the best (in no particular order)&#8230;<a href="http://www.twentytenfive.com/" target="_blank" rel="nofollow" title="Twenty Ten Five"><br />
<h2>1. Twenty Ten Five</h2>
<p></a></p>
<p><a href="http://www.twentytenfive.com/" target="_blank" rel="nofollow" title="Twenty Ten Five"><img src="http://www.tristarwebdesign.co.uk/wp-content/uploads/2011/05/1TwentyTenFive.jpg" alt="Twenty Ten Five" title="Twenty Ten Five" width="543" height="180" class="alignnone size-full wp-image-2193" /></a></p>
<p>Despite including a HTML5 doctype, Twenty Ten doesn&#8217;t offer much HTML5 markup. Richard Shephard has made the effort to change that. Check out Twenty Ten Five for a fully HTML5 developed version of the Twenty Ten theme we know and love.<a href="http://html5reset.org/#wordpress" target="_blank" rel="nofollow" title="HTML5 Reset"><br />
<h2>2. HTML5 Reset (WordPress)</h2>
<p></a></p>
<p><a href="http://html5reset.org/#wordpress" target="_blank" rel="nofollow" title="HTML5 Reset"><img src="http://www.tristarwebdesign.co.uk/wp-content/uploads/2011/05/2HTML5Reset.jpg" alt="HTML5 Reset" title="HTML5 Reset" width="543" height="180" class="alignnone size-full wp-image-2194" /></a></p>
<p>HTML5 Reset is a clever collection of files, perfect for starting new HTML5 projects. A WordPress theme/framework is also available. It makes of awesome HTML5 markup (as you&#8217;d expect), browser specific css (e.g. &#8220;.ie body&#8221;), and both Modernizr and Analytics are built in. Sound good?<a href="http://www.rootstheme.com/" target="_blank" rel="nofollow" title="Roots"><br />
<h2>3. Roots</h2>
<p></a></p>
<p><a href="http://www.rootstheme.com/" target="_blank" rel="nofollow" title="Roots"><img src="http://www.tristarwebdesign.co.uk/wp-content/uploads/2011/05/3Roots.jpg" alt="Roots WordPress" title="Roots WordPress" width="543" height="180" class="alignnone size-full wp-image-2195" /></a></p>
<p>The &#8220;Roots&#8221; theme offers some lovely clean HTML5 microformat markup, a Boilerprint base, and also some cool customisation with the 960 grid system. <a href="http://nathanstaines.com/archive/starkers-html5" target="_blank" rel="nofollow" title="Starkers HTML5"><br />
<h2>4. Starkers (HTML5 Version)</h2>
<p></a></p>
<p><a href="http://nathanstaines.com/archive/starkers-html5" target="_blank" rel="nofollow" title="Starkers HTML5"><img src="http://www.tristarwebdesign.co.uk/wp-content/uploads/2011/05/4Starkers.jpg" alt="Starkers HTML5" title="Starkers HTML5" width="543" height="180" class="alignnone size-full wp-image-2196" /></a></p>
<p>Like Twenty Ten, Starkers includes a HTML5 doctype, but no real HTML5 markup. Nathan Staines has taken the best blank canvas around, and introduced plenty of HTML5 goodness. <a href="http://whiteboardframework.com/" target="_blank" rel="nofollow" title="Whiteboard"><br />
<h2>5. Whiteboard</h2>
<p></a></p>
<p><a href="http://whiteboardframework.com/" target="_blank" rel="nofollow" title="Whiteboard"><img src="http://www.tristarwebdesign.co.uk/wp-content/uploads/2011/05/5Whiteboard.jpg" alt="Whiteboard Theme" title="Whiteboard Theme" width="543" height="180" class="alignnone size-full wp-image-2197" /></a></p>
<p>Probably my personal favourite at the moment&#8230; The Whiteboard framework&#8217;s biggest feature is it&#8217;s fully responsive layout (perfect for mobile and tablet viewing). However, it&#8217;s HTML5 markup isn&#8217;t the best, and you may find yourself redoing a fair bit of code. Your choice!<a href="http://themble.com/bones/" target="_blank" rel="nofollow" title="Bones"><br />
<h2 style="margin-bottom: 3px;">6. Bones</h2>
<p></a><em>*Reader Recommendation</em></p>
<p><a href="http://themble.com/bones/" target="_blank" rel="nofollow" title="Bones"><img src="http://www.tristarwebdesign.co.uk/wp-content/uploads/2011/05/6Bones.jpg" alt="Bones" title="Bones" width="543" height="180" class="alignnone size-full wp-image-2211" /></a></p>
<p>Recommended by JSEL in the comments below, this is a development theme that has somehow escaped me! Upon inspection, it looks pretty amazing. It&#8217;s been built with HTML5 boilerplate, has 960 grid compatibility, built in functions and post types have been included, and the HTML5 markup looks very tidy. I&#8217;ll be trying it out&#8230;</p>
<h2>Conclusion</h2>
<p>As you all know, I&#8217;m a big believer in HTML5, so in terms of WordPress development, these frameworks and themes are what I&#8217;m switching my attention to. If you haven&#8217;t had much experience with HTML5, I recommend you check out my previous <a href="http://www.tristarwebdesign.co.uk/blog/general/developing-html5-and-css3-layouts/" title="HTML5 Tutorial">HTML5 Template Building</a> <a href="/blog/" title="blog">blog</a>, before working with the markup in WordPress!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdesignlondon-tristar.co.uk/wordpress/html5-wordpress-themes-frameworks/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>CSS3 Media Queries &amp; Responsive Web Design</title>
		<link>http://www.webdesignlondon-tristar.co.uk/website-design-london/css3-media-queries-responsive-web-design</link>
		<comments>http://www.webdesignlondon-tristar.co.uk/website-design-london/css3-media-queries-responsive-web-design#comments</comments>
		<pubDate>Wed, 13 Apr 2011 14:50:09 +0000</pubDate>
		<dc:creator>Jack</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Website Design London]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[media queries]]></category>
		<category><![CDATA[responsive web design]]></category>

		<guid isPermaLink="false">http://www.tristarwebdesign.co.uk/?p=2064</guid>
		<description><![CDATA[Following on from my previous blog on HTML5 and CSS3 template building, I&#8217;d thought I&#8217;d introduce this more in depth CSS3 technique&#8230; media queries. Responsive web design refers to the idea that a web page can respond and adjust to &#8230; <a class="readmore" href="http://www.webdesignlondon-tristar.co.uk/website-design-london/css3-media-queries-responsive-web-design">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.tristarwebdesign.co.uk/wp-content/uploads/2011/04/introimage.jpg" alt="" title="CSS3 Media Queries" width="543" height="205" class="alignnone size-full wp-image-2103" /></p>
<p>Following on from my previous <a href="/blog/" title="blog">blog</a> on <a href="http://www.tristarwebdesign.co.uk/blog/general/developing-html5-and-css3-layouts/" title="HTML5 Template Building">HTML5 and CSS3 template building</a>, I&#8217;d thought I&#8217;d introduce this more in depth CSS3 technique&#8230; media queries.</p>
<p>Responsive <a href="/" title="web design">web design</a> refers to the idea that a web page can respond and adjust to match it&#8217;s environment, taking note of factors such as screen resolution, screen orientation, and device type. Using responsive techniques, it is now possible to make the same website display perfectly in a 1920&#215;1080 widescreen monitor, and the original iPhone resolution of 320&#215;480. Pretty awesome indeed.</p>
<p>So what are these &#8220;responsive techniques&#8221; I speak of. As already mentioned, CSS3 media queries is one. Fluid percentage based grids is another. And don&#8217;t forget fluid images. Mix these all together and you&#8217;ve got some groundbreaking code.</p>
<p>For this blog, I&#8217;ll be looking at the media query side of things. With the recent boom in interest with responsive web design, many assume that a responsive layout needs to be fluid. This is not true. Many of the limitations and problems with the old school fluid layouts from the 90&#8242;s still exist, so sometimes I feel using multiple fixed width layouts is the better option (which can be achieved using media queries only). Simon Collison has displayed this technique perfectly on his <a href="http://www.colly.com/" title="Simon Collison" rel="nofollow" target="_blank">portfolio website</a>. Resize the window and watch the magic happen.</p>
<p>In one of my previous blogs, I showed you how to construct a fully HTML5 web <a href="/website-templates/" title="template">template</a>. It&#8217;s time to make that template responsive&#8230;</p>
<h2>Planning the Widths</h2>
<p><a href="http://www.tristarwebdesign.co.uk/blog/general/developing-html5-and-css3-layouts/" title="HTML5 template tutorial"><img src="http://www.tristarwebdesign.co.uk/wp-content/uploads/2011/04/html5thumb.png" alt="" title="HTML5 Goodness" width="350" height="161" class="alignright size-full wp-image-2076" /></a> If you&#8217;ve forgotten what the layout looked like, or haven&#8217;t read my previous HTML5 blog, click the thumbnail to the right to check it all out.</p>
<p>The first step is to decide what width&#8217;s we should be designing for (i.e. at what widths should the layout be changing). The current set width of the template is 960px (a very common website width these days, due to the popularity of the <a href="http://960.gs/" title="960 Grid System" rel="nofollow"  target="_blank">960 Grid System</a>). With that being the default width, our first rule will be for any monitor/device with a display of at least 960px wide to display the default layout.</p>
<p>The other widths I plan to design for are&#8230;</p>
<ul>
<li>800px &#8211; used by various netbooks, smartphones such as the Nexus One, the Dell Streak tablet, etc.</li>
<li>600px &#8211; tablets such as the Samsung Galaxy and the Blackberry Playbook. While the iPhone 4 portrait width is only a little bigger at 640px. </li>
<li>480px &#8211; very common with smartphones&#8230; the old iPhone, Blackberry Torch, HTC G1 all have resolution widths of 480px.</li>
<li>320px &#8211; portrait width of the old iPhone.</li>
</ul>
<p>My favourite website for browsing popular device resolutions, and also testing my media queries is <a href="http://protofluid.com/" rel="nofollow" title="ProtoFluid">ProtoFluid</a>, check it out!</p>
<h2>Media Query Code</h2>
<p>So, with the resolutions finalised, it&#8217;s time to lay done the CSS code for each media query. Head to the bottom of the original stylesheet, and add in the following&#8230;</p>
<pre class="brush: xml; title: ;">
/* Under 960px */
@media only screen and (max-width: 980px) and (min-width: 821px) {

}

/* Under 800px */
@media only screen and (max-width: 820px) and (min-width: 621px) {

}

/* Under 600px */
@media only screen and (max-width: 620px) and (min-width: 501px) {

}

/* Under 480px */
@media only screen and (max-width: 500px) and (min-width: 341px) {

}

/* Under 320px */
@media only screen and (max-width: 340px) and (min-width: 5px)  {

}
</pre>
<p>A few things to note&#8230;</p>
<p>1. This CSS3 media query is essentially asking how wide the browser being used is, and then decides which CSS to display.<br />
2. You may have noticed that my maximum and minimum width declarations are generally around 20px larger than the resolution width they&#8217;re meant to be supporting. This is because I&#8217;ve taken the vertical scrollbar into account. This is one small frustrating feature of media queries, as well explained by <a href="http://www.456bereastreet.com/archive/201101/media_queries_viewport_width_scrollbars_and_webkit_browsers/" title="Scrollbar and Media Queries" rel="nofollow">this article</a>.</p>
<p>Right, so I&#8217;ll now briefly explain the concept of what I&#8217;m about to do. Our existing CSS will be used as our base. We can then use our new media queries to change particular elements when the display matches the declared widths. We&#8217;ll basically be adding (or overriding) new CSS on top of our base to be used when needed.</p>
<p>The method behind it isn&#8217;t difficult! After an hour or so of CSS coding, here&#8217;s my media queries in the CSS&#8230;</p>
<p><strong>Media Query 1</strong></p>
<pre class="brush: xml; title: ;">
@media only screen and (max-width: 980px) and (min-width: 821px) {
.bodywidth								{ width: 800px; }
#mainheader nav							{ font-size: 1.4em; }
#mainheader nav li						{ margin: 0 0 0 50px; }
#introleft								{ width: 470px; }
#introquote								{ width: 270px; }
#introduction h2						{ font-size: 2.85em; }
#aboutleft								{ width: 450px; }
#articlesright							{ width: 324px; }
#articlesright article					{ font-size: 0.95em; }
#mainfooter								{ font-size: 0.9em; }
#mainfooter li							{ margin: 0 25px 0 0; }
}
</pre>
<p>The first element I&#8217;ve corrected is the &#8220;bodywidth&#8221; class. As mentioned in my <a href="http://www.tristarwebdesign.co.uk/blog/general/developing-html5-and-css3-layouts/" title="HTML5 Template Tutorial">HTML5 Template Blog</a>, I feel controlling your full width divs/elements with a separate class is the best method when using media queries. For each media query, I can simply set a new width to the class. I&#8217;ve also adjusted the widths of a few other elements (introduction block, main content area, etc). With a few subtle font size changes here and there, that&#8217;s the first media query complete.</p>
<p><strong>Media Query 2</strong></p>
<pre class="brush: xml; title: ;">
@media only screen and (max-width: 820px) and (min-width: 621px) {
.bodywidth								{ width: 600px; }
#mainheader								{ padding: 40px 0 0 0; }
#mainheader nav							{ font-size: 1.1em; margin: 12px 0 0 0; }
#mainheader nav li						{ margin: 0 0 0 25px; }
.logo									{ width: 40px; height: 40px; }
#websitetitle h1						{ font-size: 2.3em; }
#websitetitle h2						{ font-size: 1.2em; }
#introleft								{ width: 600px; }
#introquote								{ display: none; }
#aboutleft								{ width: 400px; }
#articlesright							{ width: 170px; }
#articlesright figure					{ display: none; }
#mainfooter								{ font-size: 0.8em; }
#mainfooter li							{ margin: 0 15px 0 0; }
}
</pre>
<p>This one&#8217;s a little more interesting. With the width getting even lower, I decided to hide the &#8220;introduction quote&#8221; blockquote using &#8220;display: none&#8221;. With it visible, I felt the area looked to cramped, and in terms of content the quote is not a major requirement. This &#8220;display: none&#8221; trick is very useful with media queries, and can be used to hide anything if you feel there is simply no room left for the element. I also adjusted a few more widths, and made the logo/website title smaller.</p>
<p><strong>Media Query 3</strong></p>
<pre class="brush: xml; title: ;">
@media only screen and (max-width: 620px) and (min-width: 501px) {
.bodywidth								{ width: 480px; }
#mainheader								{ padding: 25px 0 0 0; }
#mainheader nav							{ float: left; font-size: 1.1em; margin: 18px 0 0 0; }
#mainheader nav li						{ margin: 0 30px 0 0; }
.logo									{ width: 40px; height: 40px; }
#websitetitle h1						{ font-size: 2.3em; }
#websitetitle h2						{ font-size: 1.2em; }
#introleft								{ width: 480px; }
#introduction h2						{ font-size: 2.7em; }
#introquote								{ display: none; }
#aboutleft								{ width: 310px; font-size: 0.9em; }
#articlesright							{ width: 150px; }
#articlesright article					{ font-size: 0.9em; }
#articlesright figure					{ display: none; }
#mainfooter								{ font-size: 0.8em; padding: 20px 0 0 0; }
#mainfooter nav							{ width: 100%; }
#mainfooter li							{ margin: 0 15px 0 0; }
.copyright								{ float: left; color: #b8b8b8; margin: 8px 0 0 0; }
}
</pre>
<p>With this query, the biggest change is that the main navigation is now positioned to the left, underneath the website title, using &#8220;float: left&#8221; (and a few margin adjustments to tidy up).</p>
<p><strong>Media Query 4</strong></p>
<pre class="brush: xml; title: ;">
@media only screen and (max-width: 500px) and (min-width: 341px) {
.bodywidth								{ width: 320px; }
#mainheader								{ padding: 25px 0 0 0; }
#mainheader nav							{ float: left; font-size: 1.1em; margin: 18px 0 0 0; }
#mainheader nav li						{ margin: 0 30px 0 0; }
.logo									{ width: 40px; height: 40px; }
#websitetitle h1						{ font-size: 2.3em; }
#websitetitle h2						{ font-size: 1.2em; }
#introleft								{ width: 320px; font-size: 0.8em }
#introduction h2						{ font-size: 2.3em; }
#introquote								{ display: none; }
#aboutleft								{ width: 320px; font-size: 0.9em; }
#articlesright							{ width: 320px; float: left; border-top: 1px #dbdbdb solid; padding: 20px 0 0 0; margin: 10px 0 0 0; }
#articlesright article					{ font-size: 0.9em; }
#articlesright figure					{ display: none; }
#mainfooter								{ font-size: 0.8em; padding: 20px 0 0 0; }
#mainfooter nav							{ width: 100%; }
#mainfooter li							{ margin: 0 6px 0 0; }
.copyright								{ float: left; color: #b8b8b8; margin: 8px 0 0 0; }
}
</pre>
<p>Things are getting pretty small now! With the width reduced further, I&#8217;ve floated the articles area to the left, so it&#8217;s now underneath the main content. The copyright paragraph in the footer has also been floated left.</p>
<p><strong>Media Query 5</strong></p>
<pre class="brush: xml; title: ;">
@media only screen and (max-width: 340px) and (min-width: 5px)  {
.bodywidth								{ width: 300px; }
#mainheader								{ padding: 27px 0 0 0; }
#mainheader nav							{ float: left; font-size: 0.9em; margin: 15px 0 0 0; }
#mainheader nav li						{ margin: 0 30px 0 0; }
.logo									{ width: 40px; height: 40px; }
#websitetitle h1						{ font-size: 2.3em; }
#websitetitle h2						{ font-size: 1.2em; }
#introleft								{ width: 300px; font-size: 0.8em }
#introduction h2						{ font-size: 2.3em; }
#introquote								{ display: none; }
#aboutleft								{ width: 300px; font-size: 0.9em; }
#articlesright							{ width: 300px; float: left; border-top: 1px #dbdbdb solid; padding: 20px 0 0 0; margin: 10px 0 0 0; }
#articlesright article					{ font-size: 0.9em; }
#articlesright figure					{ display: none; }
#mainfooter								{ font-size: 0.7em; padding: 20px 0 0 0; }
#mainfooter nav							{ width: 100%; }
#mainfooter li							{ margin: 0 6px 0 0; }
.copyright								{ float: left; color: #b8b8b8; margin: 8px 0 0 0; }
}
</pre>
<p>Not too much different from the previous query, with a few font-sizes and widths getting a little smaller. With our final query complete, that&#8217;s our responsive layout almost finished! For reference, here&#8217;s the full style sheet. If you want the HTML, again, check out my <a href="http://www.tristarwebdesign.co.uk/blog/general/developing-html5-and-css3-layouts/" title="HTML5 Template Tutorial">HTML5 Template Blog</a>.</p>
<pre class="brush: xml; title: ;">
/* CSS Document */
/* Built by Jack at Tristar */

/* Reset */
*										{ margin: 0; padding:0; }
img, img a								{ outline: none; border: none; }
body									{ background-color: #fff; color: #575757; font: 81.3% &quot;Georgia&quot;, times, serif; margin: 0; padding: 0; }
a,a:visited								{ outline: none; color: #4086c6; text-decoration: none; }
a:hover									{ text-decoration: underline; }

/* HTML5 Fix */
header, section, footer, aside, nav, article 	{ display: block }

/* Base Structure */
.bodywidth								{ width: 960px; margin: 0 auto; clear: both; }

/* General Type */
h1,h2,h3,h4,h5,h6						{ color: #2f2f2f; font-family: &quot;Ubuntu&quot;, arial; }
.bold									{ font-weight: bold; }
.blue									{ color: #4086c6; }

/* Header */
#headerwrap								{ width: 100%; background: url('images/headerbg.jpg') repeat-x 0 0; height: 117px;  }
#mainheader								{ padding: 35px 0 0 0; color: #2f2f2f; text-shadow: 0px 0px 1px #fff; }
.logo									{ float: left; margin: 0 10px 0 0; -webkit-transition: -webkit-transform 0.4s ease-out; -moz-transition: -moz-transform 0.4s ease-out; transition: transform 0.4s ease-out; }
.logo:hover								{ cursor: pointer; -webkit-transform: rotate(360deg); -moz-transform: rotate(360deg); transform: rotate(360deg); }
#websitetitle							{ float: left; margin: -8px 0 0 0; }
#websitetitle h1						{ font-size: 2.538em; font-weight: normal; }
#websitetitle h2						{ font: 1.462em &quot;Georgia&quot;; font-style: italic; font-weight: normal; margin: -3px 0 0 0; }
#mainheader nav							{ float: right; font: 1.615em &quot;Ubuntu&quot;, arial,; margin: 8px 0 0 0; }
#mainheader nav li						{ list-style-type: none; display: inline; margin: 0 0 0 65px; }
#mainheader a,#mainheader:visited		{ color: #2f2f2f; }
#mainheader a:hover						{ text-decoration: none; color: #7e7e7e; }

/* Intro */
#introduction							{ margin-top: 25px; }
#introduction h2						{ font-size: 3.231em; font-weight: bold; margin: 0 0 5px 0; }
#introduction p							{ font-size: 1.154em; line-height: 140%; }
#introleft								{ float: left; width: 540px; margin: 0 0 25px 0; }
#introquote								{ float: right; font-style: italic; font-size: 1.15em; width: 335px; background: url('images/leftquotemark.png') no-repeat 0 0; padding: 28px 0 0 45px; margin: 20px 0 25px 0; }
#introduction .quotename				{ float: right; height: 27px; background: url('images/rightquotemark.png') no-repeat right top; margin: 10px 0 0 0; padding: 0 50px 0 0; font: 0.9em &quot;Ubuntu&quot;; color: #4086c6; }
a.findoutmore,a.findoutmore:visited		{ padding: 10px; font: 0.9em &quot;Ubuntu&quot;, arial; font-weight: bold; color: #fff; text-shadow: 0px 0px 1px #1e5298; background-image: -webkit-gradient(linear,left bottom,left top,color-stop(0.12, rgb(109,171,229)),color-stop(0.56, rgb(59,126,189))); background-image: -moz-linear-gradient(center bottom,rgb(109,171,229) 12%,rgb(59,126,189) 56%); background-color: #468ac9; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; margin: 13px 0 0 0; float: left; }
a.findoutmore:hover						{ background-color: #2f2f2f; background-image: none; text-shadow: 0px 0px 1px #000; text-decoration: none; }

/* Main Content */
#maincontent							{ border-top: 1px #dbdbdb solid; padding: 25px 0 0 0; overflow: hidden; }
#aboutleft								{ float: left; width: 540px; }
#aboutleft h3							{ font-size: 1.5em ; font-weight: bold; margin: 0 0 15px 0; }
#aboutleft h4							{ font-size: 1.3em; font-weight: bold; margin: 0 0 15px 0; }
#aboutleft p							{ line-height: 135%; margin: 0 0 15px 0; }
#articlesright							{ float: right; width: 380px; }
#articlesright article					{ clear: both; margin: 0 0 20px 0; overflow: hidden; }
#articlesright figure					{ padding: 5px; border: 1px #dbdbdb solid; float: left; width: 119px; height: 119px; margin: 0 15px 0 0; }
#articlesright p						{ line-height: 135%; }
#articlesright h5						{ font-size: 1.3em; margin: 0 0 6px 0; color: #4086c6; }
#articlesright h5:hover					{ color: #2f2f2f; }
a.readmore,a.readmore:visited			{ padding: 4px; font: 0.9em &quot;Ubuntu&quot;, arial; font-weight: bold; color: #fff; text-shadow: 0px 0px 1px #1e5298; background-image: -webkit-gradient(linear,left bottom,left top,color-stop(0.12, rgb(109,171,229)),color-stop(0.56, rgb(59,126,189))); background-image: -moz-linear-gradient(center bottom,rgb(109,171,229) 12%,rgb(59,126,189) 56%); background-color: #468ac9; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; margin: 10px 0 0 0; float: left; }
a.readmore:hover						{ background-color: #2f2f2f; background-image: none; text-shadow: 0px 0px 1px #000; text-decoration: none; }

/* Footer */
#footerwrap								{ width: 100%; height: 78px; background: #2d2d2d url('images/footerbg.jpg') repeat-x 0 0; margin: 20px 0 0 0; }
#mainfooter								{ padding: 30px 0 0 0; text-shadow: 0px 0px 1px #000; }
#mainfooter nav							{ float: left; font-style: italic; font-size: 1.1em; width: 60%; }
#mainfooter li							{ list-style-type: none; float: left; margin: 0 35px 0 0; }
#mainfooter a,#mainfooter a:visited		{ color: #fff; }
.copyright								{ float: right; color: #b8b8b8; }

/* MEDIA QUERIES */

/* Under 960px */
@media only screen and (max-width: 980px) and (min-width: 821px) {
.bodywidth								{ width: 800px; }
#mainheader nav							{ font-size: 1.4em; }
#mainheader nav li						{ margin: 0 0 0 50px; }
#introleft								{ width: 470px; }
#introquote								{ width: 270px; }
#introduction h2						{ font-size: 2.85em; }
#aboutleft								{ width: 450px; }
#articlesright							{ width: 324px; }
#articlesright article					{ font-size: 0.95em; }
#mainfooter								{ font-size: 0.9em; }
#mainfooter li							{ margin: 0 25px 0 0; }
}

/* Under 800px */
@media only screen and (max-width: 820px) and (min-width: 621px) {
.bodywidth								{ width: 600px; }
#mainheader								{ padding: 40px 0 0 0; }
#mainheader nav							{ font-size: 1.1em; margin: 12px 0 0 0; }
#mainheader nav li						{ margin: 0 0 0 25px; }
.logo									{ width: 40px; height: 40px; }
#websitetitle h1						{ font-size: 2.3em; }
#websitetitle h2						{ font-size: 1.2em; }
#introleft								{ width: 600px; }
#introquote								{ display: none; }
#aboutleft								{ width: 400px; }
#articlesright							{ width: 170px; }
#articlesright figure					{ display: none; }
#mainfooter								{ font-size: 0.8em; }
#mainfooter li							{ margin: 0 15px 0 0; }
}

/* Under 600px */
@media only screen and (max-width: 620px) and (min-width: 501px) {
.bodywidth								{ width: 480px; }
#mainheader								{ padding: 25px 0 0 0; }
#mainheader nav							{ float: left; font-size: 1.1em; margin: 18px 0 0 0; }
#mainheader nav li						{ margin: 0 30px 0 0; }
.logo									{ width: 40px; height: 40px; }
#websitetitle h1						{ font-size: 2.3em; }
#websitetitle h2						{ font-size: 1.2em; }
#introleft								{ width: 480px; }
#introduction h2						{ font-size: 2.7em; }
#introquote								{ display: none; }
#aboutleft								{ width: 310px; font-size: 0.9em; }
#articlesright							{ width: 150px; }
#articlesright article					{ font-size: 0.9em; }
#articlesright figure					{ display: none; }
#mainfooter								{ font-size: 0.8em; padding: 20px 0 0 0; }
#mainfooter nav							{ width: 100%; }
#mainfooter li							{ margin: 0 15px 0 0; }
.copyright								{ float: left; color: #b8b8b8; margin: 8px 0 0 0; }
}

/* Under 480px */
@media only screen and (max-width: 500px) and (min-width: 341px) {
.bodywidth								{ width: 320px; }
#mainheader								{ padding: 25px 0 0 0; }
#mainheader nav							{ float: left; font-size: 1.1em; margin: 18px 0 0 0; }
#mainheader nav li						{ margin: 0 30px 0 0; }
.logo									{ width: 40px; height: 40px; }
#websitetitle h1						{ font-size: 2.3em; }
#websitetitle h2						{ font-size: 1.2em; }
#introleft								{ width: 320px; font-size: 0.8em }
#introduction h2						{ font-size: 2.3em; }
#introquote								{ display: none; }
#aboutleft								{ width: 320px; font-size: 0.9em; }
#articlesright							{ width: 320px; float: left; border-top: 1px #dbdbdb solid; padding: 20px 0 0 0; margin: 10px 0 0 0; }
#articlesright article					{ font-size: 0.9em; }
#articlesright figure					{ display: none; }
#mainfooter								{ font-size: 0.8em; padding: 20px 0 0 0; }
#mainfooter nav							{ width: 100%; }
#mainfooter li							{ margin: 0 6px 0 0; }
.copyright								{ float: left; color: #b8b8b8; margin: 8px 0 0 0; }
}

/* Under 320px */
@media only screen and (max-width: 340px) and (min-width: 5px)  {
.bodywidth								{ width: 300px; }
#mainheader								{ padding: 27px 0 0 0; }
#mainheader nav							{ float: left; font-size: 0.9em; margin: 15px 0 0 0; }
#mainheader nav li						{ margin: 0 30px 0 0; }
.logo									{ width: 40px; height: 40px; }
#websitetitle h1						{ font-size: 2.3em; }
#websitetitle h2						{ font-size: 1.2em; }
#introleft								{ width: 300px; font-size: 0.8em }
#introduction h2						{ font-size: 2.3em; }
#introquote								{ display: none; }
#aboutleft								{ width: 300px; font-size: 0.9em; }
#articlesright							{ width: 300px; float: left; border-top: 1px #dbdbdb solid; padding: 20px 0 0 0; margin: 10px 0 0 0; }
#articlesright article					{ font-size: 0.9em; }
#articlesright figure					{ display: none; }
#mainfooter								{ font-size: 0.7em; padding: 20px 0 0 0; }
#mainfooter nav							{ width: 100%; }
#mainfooter li							{ margin: 0 6px 0 0; }
.copyright								{ float: left; color: #b8b8b8; margin: 8px 0 0 0; }
}
</pre>
<h2>Tiding Up &amp; Finishing Off</h2>
<p>You probably already know that the iPhone generally zooms out when viewing a webpage to fit the whole site in the window. Even with our media queries declared, this still happens by default. With our mobile version of the site finished, there&#8217;s no real need for the iPhone to be displaying the original full width version. So, to stop this happening, add the following meta tag to your HTML (in the head)&#8230;</p>
<pre class="brush: xml; title: ;">
&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width&quot; /&gt;
</pre>
<p>At the moment, CSS3 media queries are only supported in more recent browsers (Firefox 3.5+, IE9+, Chrome 5+, Safari 4+, etc). For me, as the default width version will simply be loaded in older browsers, I&#8217;m not be bothered about adding in a support fix. However, if you do wish to add some support, check out the following <a href="http://code.google.com/p/css3-mediaqueries-js/" target="_blank" rel="nofollow" title="Media Query Fix">Javascript Fix</a>.</p>
<p>So, that concludes this week&#8217;s blog! Hopefully the concept of media queries hasn&#8217;t been too difficult to comprehend, but if you have any questions you wish to ask me, just leave a comment!</p>
<p>I&#8217;ve also re-uploaded the &#8220;HTML5Goodness&#8221; theme to the <a href="/website-templates/" title="templates">templates</a> section with the new responsive CSS. All free to download!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdesignlondon-tristar.co.uk/website-design-london/css3-media-queries-responsive-web-design/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Developing HTML5 and CSS3 Layouts</title>
		<link>http://www.webdesignlondon-tristar.co.uk/general/developing-html5-and-css3-layouts</link>
		<comments>http://www.webdesignlondon-tristar.co.uk/general/developing-html5-and-css3-layouts#comments</comments>
		<pubDate>Fri, 01 Apr 2011 13:47:57 +0000</pubDate>
		<dc:creator>Jack</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Website Design London]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.tristarwebdesign.co.uk/?p=1971</guid>
		<description><![CDATA[The HTML5 monster has been knocking on the door of web design for a while now. It&#8217;s certainly an exciting progression with the variety of new features (video, canvas, etc) and structural elements (not just div, div, div anymore!). Despite &#8230; <a class="readmore" href="http://www.webdesignlondon-tristar.co.uk/general/developing-html5-and-css3-layouts">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.tristarwebdesign.co.uk/wp-content/uploads/2011/04/html5.jpg" alt="" title="HTML5" width="200" height="250" class="alignright size-full wp-image-2047" />The HTML5 monster has been knocking on the door of <a href="/" title="web design">web design</a> for a while now. It&#8217;s certainly an exciting progression with the variety of new features (video, canvas, etc) and structural elements (not just div, div, div anymore!). Despite this, the markup specification is still incomplete, with a completion date due in 2014. Because of this, many developers view it as something that shouldn&#8217;t be meddled with. I disagree, and when possible I think HTML5 should be explored. It&#8217;s the future, especially with work on XHTML 2.0 now being discontinued. As <a href="/" title="web designers">web designers</a> we should always be prepared for changes in the industry.</p>
<p>The features and potential of HTML5 have been discussed many times online already, so what I&#8217;m hoping to do with this <a href="/blog/" title="blog">blog</a> is explain how to begin developing with the markup right now. Why learn what it can do, without learning how to code and develop with it? So read on&#8230; I&#8217;ve even thrown a bit of CSS3 into the mix.</p>
<p>I&#8217;ll be explaining how to code up a fairly simple and generic web layout using HTML5, introducing you to many of the new structural elements along the way. I&#8217;ll also demonstrate how to make the <a href="/website-templates/" title="template">template</a> render correctly in older browsers that aren&#8217;t &#8220;supposed&#8221; to support HTML5. Even IE6 you say? Yes&#8230; even IE6.</p>
<p>Then finally, I&#8217;m hoping to produce a follow up blog on using this layout with CSS media queries. Or what many people know as responsive web design. Lets march onwards!</p>
<p>So, here&#8217;s a link (click the preview below) to the template that we&#8217;ll be making. You can even download it from our free <a href="/website-templates/" title="templates">templates</a> section. Generous or what!</p>
<p><a href="http://www.tristarwebdesign.co.uk/wp-content/uploads/templates/html5-goodness"><img src="http://www.tristarwebdesign.co.uk/wp-content/uploads/2011/04/html5goodness.jpg" alt="" title="html5goodness" width="516" height="161" class="alignright size-full wp-image-2044" /></a></p>
<h1>HTML</h1>
<h2><strong>The Head</strong></h2>
<p>To begin, as always, create a new HTML file in the web editor of your choice. The first thing we need to do is declare the doctype&#8230;</p>
<pre class="brush: xml; title: ;">&lt;!DOCTYPE html&gt;</pre>
<p>Small, neat, and easy to remember. Who can argue with that!</p>
<p>The rest of the head is nothing revolutionary. We&#8217;ll be using an easy unicode charset, and a normal meta tag layout.</p>
<pre class="brush: xml; title: ;">
&lt;!DOCTYPE html&gt;
&lt;html lang=&quot;en&quot;&gt;
&lt;head&gt;
&lt;meta charset=&quot;utf-8&quot; /&gt;
&lt;title&gt;Tristar HTML 5 Template&lt;/title&gt;
&lt;meta name=&quot;distribution&quot; content=&quot;Global&quot; /&gt;
&lt;meta name=&quot;rating&quot; content=&quot;Safe For Kids&quot; /&gt;
&lt;meta name=&quot;author&quot; content=&quot;Jack, Tristar&quot; /&gt;
&lt;meta name=&quot;copyright&quot; content=&quot;Tristar Web Design&quot; /&gt;
&lt;meta name=&quot;description&quot; content=&quot;An awesome example of HTML5 template design, by Tristar.&quot; /&gt;
&lt;meta name=&quot;keywords&quot; content=&quot;html5,css3,this,is,just,an,example,really&quot; /&gt;
&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; media=&quot;all&quot; href=&quot;styles.css&quot; /&gt;
&lt;link href=&quot;favicon.ico&quot; rel=&quot;shortcut icon&quot; type=&quot;image/vnd.microsoft.icon&quot; /&gt;
&lt;/head&gt;
</pre>
<p>That is a functional HTML5 head layout. But it needs more if we&#8217;re going to stop it breaking in older browsers. Let me introduce you to some <span style="text-decoration: line-through;">hacks</span> fixes.</p>
<p>First we&#8217;ll include the big one. <a title="Remy Sharp" rel="nofollow" href="http://remysharp.com/2009/01/07/html5-enabling-script/">Remy Sharp</a> has produced a <a href="/blog/category/tutorials/" title="javascript">Javascript</a> fix that tells IE how to display this mysterious new markup that Microsoft didn&#8217;t pay much attention to. We&#8217;ll wrap it in a conditional comment so all non IE browsers ignore it. Many problems solved.</p>
<p>Then to follow on, we&#8217;ll include a second Javascript file that brings IE6, IE7, and IE8 to a much more modern standard. Both of these fixes are hosted on <a href="http://www.google.co.uk/" rel='nofollow'  title="google">Google</a> Code servers, so there&#8217;s no need to download any files!</p>
<p>And although it&#8217;s not a fix, I&#8217;ll also include some JS files taken from the Google Font Directory. This is my favourite CSS font loading method at the moment. The fonts will be referenced in the CSS markup.</p>
<p>So the final head looks like this&#8230;</p>
<pre class="brush: xml; title: ;">
&lt;!DOCTYPE html&gt;
&lt;html lang=&quot;en&quot;&gt;
&lt;head&gt;
&lt;meta charset=&quot;utf-8&quot; /&gt;
&lt;title&gt;Tristar HTML 5 Template&lt;/title&gt;
&lt;meta name=&quot;distribution&quot; content=&quot;Global&quot; /&gt;
&lt;meta name=&quot;rating&quot; content=&quot;Safe For Kids&quot; /&gt;
&lt;meta name=&quot;author&quot; content=&quot;Jack, Tristar&quot; /&gt;
&lt;meta name=&quot;copyright&quot; content=&quot;Tristar Web Design&quot; /&gt;
&lt;meta name=&quot;description&quot; content=&quot;An awesome example of HTML5 template design, by Tristar.&quot; /&gt;
&lt;meta name=&quot;keywords&quot; content=&quot;html5,css3,this,is,just,an,example,really&quot; /&gt;
&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; media=&quot;all&quot; href=&quot;styles.css&quot; /&gt;
&lt;link href=&quot;favicon.ico&quot; rel=&quot;shortcut icon&quot; type=&quot;image/vnd.microsoft.icon&quot; /&gt;
&lt;link href='http://fonts.googleapis.com/css?family=Ubuntu:regular,bold' rel='stylesheet' type='text/css' /&gt;
&lt;link href='http://fonts.googleapis.com/css?family=Vollkorn:regular,italic,bold' rel='stylesheet' type='text/css'&gt;
&lt;!--[if IE]&gt;&lt;script src=&quot;http://html5shiv.googlecode.com/svn/trunk/html5.js&quot;&gt;&lt;/script&gt;&lt;![endif]--&gt;
&lt;!--[if lt IE 9]&gt;&lt;script src=&quot;http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js&quot;&gt;&lt;/script&gt;&lt;![endif]--&gt;
&lt;/head&gt;
</pre>
<p>A final note, to make your HTML5 validate you don&#8217;t actually need to follow the traditional XHTML syntax of self closing tags, lower case code, etc. I just continue to do so, as it &#8216;s cleaner code, and the forgiving nature of HTML shouldn&#8217;t make you lazy with your markup.</p>
<h2>Lets Rock the Body</h2>
<h3>Header and Navigation</h3>
<p>No longer is there any need for <em>&lt;div id=&#8221;header&#8221;&gt;&lt;/div&gt; </em>, instead we can use the new header tag, <em>&lt;header&gt;</em>. The incredibly useful resource that is W3Schools gives the following description for this tag &#8211; <em>&#8220;The &lt;header&gt; tag specifies an introduction, or a group of navigation elements for the document.&#8221;</em></p>
<p>We can also add the navigation area using a <em>&lt;nav&gt;</em>. Remember, these two new tags don&#8217;t only have to be used for the main header/navigation at the top of the website. The header can be used multiple times, maybe to define the header of an article post, while the nav tag could also be used in navigation you have in the footer. If it fits the description, use it!</p>
<p>Last but not least, I&#8217;ve also used the new <em>&lt;hgroup&gt; </em> tag for the text title. This has an incredibly simple definition of&#8230;</p>
<p>&#8220;The hgroup element is used to group headers, <em>&lt;h1&gt; <em> to</em> &lt;h6&gt; </em>, where the largest is the main heading of the section, and the others are sub-headings.&#8221;</p>
<p>Perfect for a website title and slogan&#8230;</p>
<p>A main header wrap is required, as our background image needs to stretch to fit this window. Couple this with the usual way of building a listed navigation and an image link to our logo, and our header is laid out like this:</p>
<pre class="brush: xml; title: ;">
&lt;div id=&quot;headerwrap&quot;&gt;
  &lt;header id=&quot;mainheader&quot; class=&quot;bodywidth&quot;&gt; &lt;img src=&quot;images/logo.png&quot; alt=&quot;Logo&quot; class=&quot;logo&quot; /&gt;
    &lt;hgroup id=&quot;websitetitle&quot;&gt;
      &lt;h1&gt;&lt;span class=&quot;bold&quot;&gt;HTML5&lt;/span&gt;Goodness&lt;/h1&gt;
      &lt;h2&gt;about as modern as it gets...&lt;/h2&gt;
    &lt;/hgroup&gt;
    &lt;nav&gt;
      &lt;ul&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;Home&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;About&quot;&gt;About&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;News&quot;&gt;News&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;Contact Us&quot;&gt;Contact Us&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
    &lt;/nav&gt;
  &lt;/header&gt;
&lt;/div&gt;
</pre>
<p>P.S. You may have spotted my header has a mysterious class called &#8220;bodywidth&#8221;. I&#8217;ll be using this on all main alignment divs to set a width and an auto margin, thus centering it in the page. I&#8217;m favouring this method as it works better with CSS media queries which we&#8217;ll be moving on to next week. By all means, use the &#8220;standard&#8221; div wrapping method if you prefer to. Both work well&#8230; honest.</p>
<h3>The Introduction</h3>
<p>If you studied the template we&#8217;re creating by visiting the link I added near the top, you&#8217;ll notice our main content is split into 4 grid-like squares. At the top left we have the website introduction. A quote/testimonial is sitting loud and proud at the top right. The bottom left area is the main body text (i.e. description of the company), while the bottom right has a column of news articles.</p>
<p>I began the introduction area by inserting an aside tag. This new arrival to HTML has gained a reputation for often being overused by developers, who aren&#8217;t quite sure of when and how to use it. Again, if we take a peek at W3Schools, they tell us that&#8230;</p>
<p>&#8220;The <em>&lt;aside&gt; </em> tag defines some content aside from the content it is placed in. The aside content should be related to the surrounding content.&#8221;</p>
<p>Our introduction is certainly aside from the content below, and as it is basically introducing the main body text, it&#8217;s definitely related! So after inserting the aside, a div is required to align the main introduction to the left, while I&#8217;ll use a classic HTML element for the testimonial area &#8211; <em>&lt;blockquote&gt; </em>. And yes, you can give a blockquote an ID.</p>
<pre class="brush: xml; title: ;">
&lt;aside id=&quot;introduction&quot; class=&quot;bodywidth&quot;&gt;
  &lt;div id=&quot;introleft&quot;&gt;
    &lt;h2&gt;Welcome to &lt;span class=&quot;blue&quot;&gt;our website&lt;/span&gt;&lt;/h2&gt;
    &lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse quis molestie sapien. Proin elit quam, commodo ut aliquet vel, elementum ut odio. Praesent semper tincidunt magna, sed sagittis elit congue sed. Mauris malesuada, elit ut luctus tristique, lectus libero rutrum mauris, ac tristique.&lt;/p&gt;
    &lt;p&gt;&lt;a href=&quot;#&quot; title=&quot;Find Out More&quot; class=&quot;findoutmore&quot;&gt;Find out more?&lt;/a&gt;&lt;/p&gt;
  &lt;/div&gt;
  &lt;blockquote id=&quot;introquote&quot;&gt;
    &lt;p&gt;This company is amazing. I can't come up with enough good things to say. Literally. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum magna tortor.&lt;/p&gt;
    &lt;p class=&quot;quotename&quot;&gt;John Smith, &lt;span class=&quot;bold&quot;&gt;Another Company&lt;/span&gt;&lt;/p&gt;
  &lt;/blockquote&gt;
&lt;/aside&gt;
</pre>
<h3>Main Content Area</h3>
<p>Not gonna lie, the layout for the main body text is pretty dull. I can&#8217;t even bring you one bit of HTML5 revolution. Bad times! Still, if divs are the ideal structural element, make sure you use &#8216;em. I&#8217;ve seen some pretty filthy HTML5 templates lately that are packed full with sections and asides which is abusing the markup badly!</p>
<p>So, here&#8217;s the content markup. Excuse the &#8220;maincontent&#8221; div that&#8217;s still open, the news area is waiting to creep inside.</p>
<pre class="brush: xml; title: ;">
&lt;div id=&quot;maincontent&quot; class=&quot;bodywidth&quot;&gt;
  &lt;div id=&quot;aboutleft&quot;&gt;
    &lt;h3&gt;Awesome Title&lt;/h3&gt;
    &lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse quis molestie sapien. Proin elit quam, commodo ut aliquet vel, elementum ut odio. Praesent semper tincidunt magna, sed sagittis elit congue sed. Mauris malesuada, elit ut luctus tristique, lectus libero rutrum mauris, ac tristique justo ligula sit amet metus.&lt;/p&gt;
    &lt;p&gt;Etiam a magna vitae diam elementum dignissim. Donec eget justo ut eros fermentum sodales. Donec eleifend sodales gravida. Nulla nulla metus, laoreet at consectetur sed, dapibus vitae felis. Donec venenatis laoreet purus vel hendrerit. Donec sit amet sem a metus bibendum gravida sit amet at ligula. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.&lt;/p&gt;
    &lt;h4&gt;Another Awesome Title&lt;/h4&gt;
    &lt;p&gt;Maecenas eu purus ipsum, non accumsan metus. Mauris augue dui, condimentum quis aliquam non, tincidunt id tortor. Donec dignissim sem sed nisl luctus scelerisque. Cras lacinia aliquam orci ac ultricies. Vestibulum ac lacus eu nisi commodo sollicitudin. Curabitur at consectetur leo. Donec augue velit, ornare in fermentum quis, tristique id augue.&lt;/p&gt;
    &lt;p&gt;Cras sem est, luctus ac pharetra id, feugiat id enim. Nullam at massa felis, vitae hendrerit tellus. Sed placerat arcu sed risus commodo iaculis. Aenean at felis enim. Mauris eget est in diam sagittis ultrices sit amet eu mi. Sed ultrices, orci et tincidunt fringilla, diam diam consequat elit, vel tempus mauris mi vitae sem. Ut lectus est, commodo a pulvinar at, faucibus et ligula.&lt;/p&gt;
  &lt;/div&gt;
</pre>
<h3>News Articles Area</h3>
<p>A certain HTML5 tag named <em>&lt;article&gt; </em> has arrived into the markup with a round of applause. One of the major online growths has been the (fairly) recent influx of blogs and news portals, and HTML5 seems to have appreciated that, as we can now create a perfect looking markup for a news page or blog post.</p>
<p>For my template, I&#8217;ve aligned the news area to the right using a <em>&lt;section&gt; </em> tag. Probably offering one of the most broad definitions in the HTML5 tag library, it&#8217;s ultimately become the most abused. W3Schools tells us that&#8230;</p>
<p>&#8220;The <em>&lt;section&gt; </em> tag defines sections in a document. Such as chapters, headers, footers, or any other sections of the document.&#8221;</p>
<p>Since each news post is a different section, <em>&lt;section&gt; </em> is perfect in this case to define them as a group.</p>
<p>As explained previously, I&#8217;ve then wrapped each news post in <em>&lt;article&gt; </em> tags. I&#8217;m not even going to bother bringing you a description for that one! Another fresh tag has also arrived &#8211; <em>&lt;figure&gt; </em>. The figure element &#8220;should be relevant to the main content, but if removed it should not affect the flow of the document&#8221;. So, I&#8217;ve used &#8220;figure&#8221; to define, position, and style the occupying image that each news article has. The images are relevant (well, maybe not on our template example&#8230;) to each article, but if deleted the articles would still be perfectly understandable.</p>
<p>The final touch for this area was to wrap each article title in header tags. Perfect&#8230;</p>
<pre class="brush: xml; title: ;">
&lt;section id=&quot;articlesright&quot;&gt;
    &lt;article&gt;
      &lt;figure&gt; &lt;img src=&quot;images/articleimage.jpg&quot; alt=&quot;Article Image&quot; /&gt; &lt;/figure&gt;
      &lt;header&gt;&lt;a href=&quot;#&quot; title=&quot;Article Title&quot;&gt;&lt;h5&gt;Random News Article&lt;/h5&gt;&lt;/a&gt;&lt;/header&gt;
      &lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse quis molestie sapien. Proin elit quam dolor amet...&lt;/p&gt;
      &lt;a href=&quot;#&quot; title=&quot;Read More&quot; class=&quot;readmore&quot;&gt;Read more&lt;/a&gt; &lt;/article&gt;
    &lt;article&gt;
      &lt;figure&gt; &lt;img src=&quot;images/articleimage.jpg&quot; alt=&quot;Article Image&quot; /&gt; &lt;/figure&gt;
      &lt;header&gt;&lt;a href=&quot;#&quot; title=&quot;Article Title&quot;&gt;&lt;h5&gt;Random News Article&lt;/h5&gt;&lt;/a&gt;&lt;/header&gt;
      &lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse quis molestie sapien. Proin elit quam dolor amet...&lt;/p&gt;
      &lt;a href=&quot;#&quot; title=&quot;Read More&quot; class=&quot;readmore&quot;&gt;Read more&lt;/a&gt; &lt;/article&gt;
    &lt;article&gt;
      &lt;figure&gt; &lt;img src=&quot;images/articleimage.jpg&quot; alt=&quot;Article Image&quot; /&gt; &lt;/figure&gt;
      &lt;header&gt;&lt;a href=&quot;#&quot; title=&quot;Article Title&quot;&gt;&lt;h5&gt;Random News Article&lt;/h5&gt;&lt;/a&gt;&lt;/header&gt;
      &lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse quis molestie sapien. Proin elit quam dolor amet...&lt;/p&gt;
      &lt;a href=&quot;#&quot; title=&quot;Read More&quot; class=&quot;readmore&quot;&gt;Read more&lt;/a&gt; &lt;/article&gt;
  &lt;/section&gt;
&lt;/div&gt;
</pre>
<h3>The Footer</h3>
<p>So, the HTML is almost there guys, but we can&#8217;t forgot a certain area at the bottom of the template. You&#8217;ve probably second guessed that there&#8217;s a tag ready and waiting for the footer. Yes, time to insert a <em>&lt;footer&gt; </em>.</p>
<p>I&#8217;ve placed the footer inside a footer wrap div (not unlike the header), to get that stretched out background once again. A <em>&lt;nav&gt; </em> block has also been thrown into the template for a second time (footer navigation is always useful). As mentioned previously, don&#8217;t forget that a footer doesn&#8217;t need to refer to the far bottom of your web page &#8211; sidebars can have footers, articles can have footers, and so can many other things.</p>
<p>Well, that completes the HTML. Here&#8217;s the full markup:</p>
<pre class="brush: xml; title: ;">
&lt;!DOCTYPE html&gt;
&lt;html lang=&quot;en&quot;&gt;
&lt;head&gt;
&lt;meta charset=&quot;utf-8&quot; /&gt;
&lt;title&gt;Tristar HTML 5 Template&lt;/title&gt;
&lt;meta name=&quot;distribution&quot; content=&quot;Global&quot; /&gt;
&lt;meta name=&quot;rating&quot; content=&quot;Safe For Kids&quot; /&gt;
&lt;meta name=&quot;author&quot; content=&quot;Jack, Tristar&quot; /&gt;
&lt;meta name=&quot;copyright&quot; content=&quot;Tristar Web Design&quot; /&gt;
&lt;meta name=&quot;description&quot; content=&quot;An awesome example of HTML5 template design, by Tristar.&quot; /&gt;
&lt;meta name=&quot;keywords&quot; content=&quot;html5,css3,this,is,just,an,example,really&quot; /&gt;
&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; media=&quot;all&quot; href=&quot;styles.css&quot; /&gt;
&lt;link href=&quot;favicon.ico&quot; rel=&quot;shortcut icon&quot; type=&quot;image/vnd.microsoft.icon&quot; /&gt;
&lt;link href='http://fonts.googleapis.com/css?family=Ubuntu:regular,bold' rel='stylesheet' type='text/css' /&gt;
&lt;link href='http://fonts.googleapis.com/css?family=Vollkorn:regular,italic,bold' rel='stylesheet' type='text/css'&gt;
&lt;!--[if IE]&gt;&lt;script src=&quot;http://html5shiv.googlecode.com/svn/trunk/html5.js&quot;&gt;&lt;/script&gt;&lt;![endif]--&gt;
&lt;!--[if lt IE 9]&gt;&lt;script src=&quot;http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js&quot;&gt;&lt;/script&gt;&lt;![endif]--&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id=&quot;headerwrap&quot;&gt;
  &lt;header id=&quot;mainheader&quot; class=&quot;bodywidth&quot;&gt; &lt;img src=&quot;images/logo.png&quot; alt=&quot;Logo&quot; class=&quot;logo&quot; /&gt;
    &lt;hgroup id=&quot;websitetitle&quot;&gt;
      &lt;h1&gt;&lt;span class=&quot;bold&quot;&gt;HTML5&lt;/span&gt;Goodness&lt;/h1&gt;
      &lt;h2&gt;about as modern as it gets...&lt;/h2&gt;
    &lt;/hgroup&gt;
    &lt;nav&gt;
      &lt;ul&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;Home&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;About&quot;&gt;About&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;News&quot;&gt;News&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;Contact Us&quot;&gt;Contact Us&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
    &lt;/nav&gt;
  &lt;/header&gt;
&lt;/div&gt;
&lt;aside id=&quot;introduction&quot; class=&quot;bodywidth&quot;&gt;
  &lt;div id=&quot;introleft&quot;&gt;
    &lt;h2&gt;Welcome to &lt;span class=&quot;blue&quot;&gt;our website&lt;/span&gt;&lt;/h2&gt;
    &lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse quis molestie sapien. Proin elit quam, commodo ut aliquet vel, elementum ut odio. Praesent semper tincidunt magna, sed sagittis elit congue sed. Mauris malesuada, elit ut luctus tristique, lectus libero rutrum mauris, ac tristique.&lt;/p&gt;
    &lt;p&gt;&lt;a href=&quot;#&quot; title=&quot;Find Out More&quot; class=&quot;findoutmore&quot;&gt;Find out more?&lt;/a&gt;&lt;/p&gt;
  &lt;/div&gt;
  &lt;blockquote id=&quot;introquote&quot;&gt;
    &lt;p&gt;This company is amazing. I can't come up with enough good things to say. Literally. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum magna tortor.&lt;/p&gt;
    &lt;p class=&quot;quotename&quot;&gt;John Smith, &lt;span class=&quot;bold&quot;&gt;Another Company&lt;/span&gt;&lt;/p&gt;
  &lt;/blockquote&gt;
&lt;/aside&gt;
&lt;div id=&quot;maincontent&quot; class=&quot;bodywidth&quot;&gt;
  &lt;div id=&quot;aboutleft&quot;&gt;
    &lt;h3&gt;Awesome Title&lt;/h3&gt;
    &lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse quis molestie sapien. Proin elit quam, commodo ut aliquet vel, elementum ut odio. Praesent semper tincidunt magna, sed sagittis elit congue sed. Mauris malesuada, elit ut luctus tristique, lectus libero rutrum mauris, ac tristique justo ligula sit amet metus.&lt;/p&gt;
    &lt;p&gt;Etiam a magna vitae diam elementum dignissim. Donec eget justo ut eros fermentum sodales. Donec eleifend sodales gravida. Nulla nulla metus, laoreet at consectetur sed, dapibus vitae felis. Donec venenatis laoreet purus vel hendrerit. Donec sit amet sem a metus bibendum gravida sit amet at ligula. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.&lt;/p&gt;
    &lt;h4&gt;Another Awesome Title&lt;/h4&gt;
    &lt;p&gt;Maecenas eu purus ipsum, non accumsan metus. Mauris augue dui, condimentum quis aliquam non, tincidunt id tortor. Donec dignissim sem sed nisl luctus scelerisque. Cras lacinia aliquam orci ac ultricies. Vestibulum ac lacus eu nisi commodo sollicitudin. Curabitur at consectetur leo. Donec augue velit, ornare in fermentum quis, tristique id augue.&lt;/p&gt;
    &lt;p&gt;Cras sem est, luctus ac pharetra id, feugiat id enim. Nullam at massa felis, vitae hendrerit tellus. Sed placerat arcu sed risus commodo iaculis. Aenean at felis enim. Mauris eget est in diam sagittis ultrices sit amet eu mi. Sed ultrices, orci et tincidunt fringilla, diam diam consequat elit, vel tempus mauris mi vitae sem. Ut lectus est, commodo a pulvinar at, faucibus et ligula.&lt;/p&gt;
  &lt;/div&gt;
  &lt;section id=&quot;articlesright&quot;&gt;
    &lt;article&gt;
      &lt;figure&gt; &lt;img src=&quot;images/articleimage.jpg&quot; alt=&quot;Article Image&quot; /&gt; &lt;/figure&gt;
      &lt;header&gt;&lt;a href=&quot;#&quot; title=&quot;Article Title&quot;&gt;&lt;h5&gt;Random News Article&lt;/h5&gt;&lt;/a&gt;&lt;/header&gt;
      &lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse quis molestie sapien. Proin elit quam dolor amet...&lt;/p&gt;
      &lt;a href=&quot;#&quot; title=&quot;Read More&quot; class=&quot;readmore&quot;&gt;Read more&lt;/a&gt; &lt;/article&gt;
    &lt;article&gt;
      &lt;figure&gt; &lt;img src=&quot;images/articleimage.jpg&quot; alt=&quot;Article Image&quot; /&gt; &lt;/figure&gt;
      &lt;header&gt;&lt;a href=&quot;#&quot; title=&quot;Article Title&quot;&gt;&lt;h5&gt;Random News Article&lt;/h5&gt;&lt;/a&gt;&lt;/header&gt;
      &lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse quis molestie sapien. Proin elit quam dolor amet...&lt;/p&gt;
      &lt;a href=&quot;#&quot; title=&quot;Read More&quot; class=&quot;readmore&quot;&gt;Read more&lt;/a&gt; &lt;/article&gt;
    &lt;article&gt;
      &lt;figure&gt; &lt;img src=&quot;images/articleimage.jpg&quot; alt=&quot;Article Image&quot; /&gt; &lt;/figure&gt;
      &lt;header&gt;&lt;a href=&quot;#&quot; title=&quot;Article Title&quot;&gt;&lt;h5&gt;Random News Article&lt;/h5&gt;&lt;/a&gt;&lt;/header&gt;
      &lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse quis molestie sapien. Proin elit quam dolor amet...&lt;/p&gt;
      &lt;a href=&quot;#&quot; title=&quot;Read More&quot; class=&quot;readmore&quot;&gt;Read more&lt;/a&gt; &lt;/article&gt;
  &lt;/section&gt;
&lt;/div&gt;
&lt;div id=&quot;footerwrap&quot;&gt;
  &lt;footer id=&quot;mainfooter&quot; class=&quot;bodywidth&quot;&gt;
    &lt;nav&gt;
      &lt;ul&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;Home&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;About&quot;&gt;About&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;News&quot;&gt;News&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;Resources&quot;&gt;Resources&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;Sitemap&quot;&gt;Sitemap&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;Contact Us&quot;&gt;Contact Us&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
    &lt;/nav&gt;
    &lt;p class=&quot;copyright&quot;&gt;Copyright &amp;copy; 2011 &lt;a href=&quot;http://www.tristarwebdesign.co.uk/&quot; title=&quot;Web Design&quot;&gt;Tristar&lt;/a&gt;. Valid &lt;a href=&quot;http://validator.w3.org/check?uri=referer&quot; title=&quot;HTML5&quot;&gt;HTML5&lt;/a&gt;.&lt;/p&gt;
  &lt;/footer&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>Time now to tip toe in some CSS3. HTML5 can&#8217;t be pretty on it&#8217;s own.</p>
<h1>CSS</h1>
<p>Many of you will have likely dabbled in some CSS3, or even developed with large quantaties of it. It&#8217;s learning curve certainly isn&#8217;t the steepest, so many web designers are happy to dive right into everything it offers. However, CSS3 does offer a lot more than many people realise. Features like &#8220;column-count&#8221; and &#8220;nth-child&#8221; can get a fair bit more technical than the more casual additions to CSS like rounded borders and gradients! Media queries is arguebly the most interesting development in my opinion, and I will be guiding you through it in next weeks follow up blog.</p>
<p>Meanwhile, I&#8217;ll give you a tour of the CSS for this template layout. Here&#8217;s the code (probably worth hovering over the area below and clicking the view source button that appears &#8211; the squashed effect doesn&#8217;t do my code layout justice&#8230;)</p>
<pre class="brush: xml; title: ;">
/* CSS Document */
/* Built by Jack at Tristar */

/* Reset */
*									{ margin: 0; padding:0; }
img, img a								{ outline: none; border: none; }
body									{ background-color: #fff; color: #575757; font: 81.3% &quot;Georgia&quot;, times, serif; margin: 0; padding: 0; }
a,a:visited								{ outline: none; color: #4086c6; text-decoration: none; }
a:hover								{ text-decoration: underline; }

/* HTML5 Fix */
header, section, footer, aside, nav, article 		{ display: block }

/* Base Structure */
.bodywidth								{ width: 960px; margin: 0 auto; clear: both; }

/* General Type */
h1,h2,h3,h4,h5,h6						{ color: #2f2f2f; font-family: &quot;Ubuntu&quot;; }
.bold									{ font-weight: bold; }
.blue									{ color: #4086c6; }

/* Header */
#headerwrap							{ width: 100%; background: url('images/headerbg.jpg') repeat-x 0 0; height: 117px;  }
#mainheader							{ padding: 35px 0 0 0; color: #2f2f2f; text-shadow: 0px 0px 1px #fff; }
.logo									{ float: left; margin: 0 10px 0 0; -webkit-transition: -webkit-transform 0.4s ease-out; -moz-transition: -moz-transform 0.4s ease-out; transition: transform 0.4s ease-out; }
.logo:hover								{ cursor: pointer; -webkit-transform: rotate(360deg); -moz-transform: rotate(360deg); transform: rotate(360deg); }
#websitetitle							{ float: left; margin: -8px 0 0 0; }
#websitetitle h1							{ font-size: 2.538em; font-weight: normal; }
#websitetitle h2							{ font: 1.462em &quot;Georgia&quot;; font-style: italic; font-weight: normal; margin: -3px 0 0 0; }
#mainheader nav							{ float: right; font: 1.615em &quot;Ubuntu&quot;; margin: 8px 0 0 0; }
#mainheader nav li						{ list-style-type: none; display: inline; margin: 0 0 0 65px; }
#mainheader a,#mainheader:visited				{ color: #2f2f2f; }
#mainheader a:hover						{ text-decoration: none; color: #7e7e7e; }

/* Intro */
#introduction							{ margin-top: 25px; }
#introduction h2							{ font-size: 3.231em; font-weight: bold; margin: 0 0 5px 0; }
#introduction p							{ font-size: 1.154em; line-height: 140%; }
#introleft								{ float: left; width: 540px; margin: 0 0 25px 0; }
#introquote								{ float: right; font-style: italic; font-size: 1.15em; width: 335px; background: url('images/leftquotemark.png') no-repeat 0 0; padding: 28px 0 0 45px; margin: 20px 0 25px 0; }
#introduction .quotename					{ float: right; height: 27px; background: url('images/rightquotemark.png') no-repeat right top; margin: 10px 0 0 0; padding: 0 50px 0 0; font: 0.9em &quot;Ubuntu&quot;; color: #4086c6; }
a.findoutmore,a.findoutmore:visited				{ padding: 10px; font: 0.9em &quot;Ubuntu&quot;; font-weight: bold; color: #fff; text-shadow: 0px 0px 1px #1e5298; background-image: -webkit-gradient(linear,left bottom,left top,color-stop(0.12, rgb(109,171,229)),color-stop(0.56, rgb(59,126,189))); background-image: -moz-linear-gradient(center bottom,rgb(109,171,229) 12%,rgb(59,126,189) 56%); background-color: #468ac9; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; margin: 13px 0 0 0; float: left; }
a.findoutmore:hover						{ background-color: #2f2f2f; background-image: none; text-shadow: 0px 0px 1px #000; text-decoration: none; }

/* Main Content */
#maincontent							{ border-top: 1px #dbdbdb solid; padding: 25px 0 0 0; overflow: hidden; }
#aboutleft								{ float: left; width: 540px; }
#aboutleft h3							{ font-size: 1.5em ; font-weight: bold; margin: 0 0 15px 0; }
#aboutleft h4							{ font-size: 1.3em; font-weight: bold; margin: 0 0 15px 0; }
#aboutleft p							{ line-height: 135%; margin: 0 0 15px 0; }
#articlesright							{ float: right; width: 380px; }
#articlesright article						{ clear: both; margin: 0 0 20px 0; overflow: hidden; }
#articlesright figure						{ padding: 5px; border: 1px #dbdbdb solid; float: left; width: 119px; height: 119px; margin: 0 15px 0 0; }
#articlesright p							{ line-height: 135%; }
#articlesright h5							{ font-size: 1.3em; margin: 0 0 6px 0; color: #4086c6; }
#articlesright h5:hover						{ color: #2f2f2f; }
a.readmore,a.readmore:visited				{ padding: 4px; font: 0.9em &quot;Ubuntu&quot;; font-weight: bold; color: #fff; text-shadow: 0px 0px 1px #1e5298; background-image: -webkit-gradient(linear,left bottom,left top,color-stop(0.12, rgb(109,171,229)),color-stop(0.56, rgb(59,126,189))); background-image: -moz-linear-gradient(center bottom,rgb(109,171,229) 12%,rgb(59,126,189) 56%); background-color: #468ac9; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; margin: 10px 0 0 0; float: left; }
a.readmore:hover							{ background-color: #2f2f2f; background-image: none; text-shadow: 0px 0px 1px #000; text-decoration: none; }

/* Footer */
#footerwrap							{ width: 100%; height: 78px; background: #2d2d2d url('images/footerbg.jpg') repeat-x 0 0; margin: 20px 0 0 0; }
#mainfooter							{ padding: 30px 0 0 0; text-shadow: 0px 0px 1px #000; }
#mainfooter nav							{ float: left; font-style: italic; font-size: 1.1em; width: 60%; }
#mainfooter li							{ list-style-type: none; float: left; margin: 0 35px 0 0; }
#mainfooter a,#mainfooter a:visited			{ color: #fff; }
.copyright								{ float: right; color: #b8b8b8; }
</pre>
<p>First thing to note, the &#8220;HTML5 Fix&#8221; styling is another fix to help out older browsers display the HTML5 structure. Make sure to include it!</p>
<p>90% of the CSS, as you&#8217;ll notice, is code that you&#8217;ve probably seen plenty of times before. Our new HTML5 tags are styled the same way as any old HTML markup, referencing the tag type, or a set ID.</p>
<p>So, as this blog is directed towards those who have past experience with CSS, I&#8217;ll only highlight the code that is something new and a little bit different.</p>
<p>The first use of CSS3 is included on the logo rollover. Gimmicky and ultimately useless, but I struggled to resist. By including the transform/rotate code, we can tell the logo to rotate a full 360 degrees on the hover state. I&#8217;ve also included some easing so the rotate doesn&#8217;t happen instantly (which, being a 360 degree rotate, would look like the logo hasn&#8217;t moved). I&#8217;ve included the webkit and moz alternative codes (as with all the other CSS3) so the effect works on every browser that can handle it.</p>
<p>I&#8217;ll move on to explain how I styled up the &#8220;find out more&#8221; and &#8220;read more&#8221; links scattered around the template. These are pure CSS3 buttons, with no images referenced, or png fixes. Using border-radius, buttons can be given smooth rounded corners. I highly recommend the <a href="http://border-radius.com/" rel="nofollow" title="Border Radius">Border Radius Generator</a> to help you get the perfect code for whatever look you want.</p>
<p>The gradient background effect is created using the new gradient capability of CSS3. Angles, colour values, fades, etc can all be set. Once again, to help you out I recommend the following generator &#8211; <a href="http://gradients.glrzad.com/" title="CSS3 Gradients" rel="nofollow">CSS3 Gradients</a>.</p>
<p>And finally, I regularly included some text-shadow on the font styling. Text shadow was part of CSS2 when it first arrived, but was eventually removed. CSS3 has brought it back and I love it! Many effects can be creating using text-shadow, including outer glows, and letterpress text.</p>
<p>That&#8217;s that! The finished product can be viewed again over <a href="http://www.tristarwebdesign.co.uk/wp-content/uploads/templates/html5-goodness/" title="Template">here</a>.</p>
<p>To sum it up, we&#8217;ve created a full HTML5 and CSS3 layout, that also proves HTML5 layouts can work in all browsers. Whether you decided to support all browsers is your decision!</p>
<p>Next week I&#8217;ll be demonstrating how to use media queries with this template. See you then!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdesignlondon-tristar.co.uk/general/developing-html5-and-css3-layouts/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

