<?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>Lee Munroe &#187; css</title> <atom:link href="http://www.leemunroe.com/tags/css/feed/" rel="self" type="application/rss+xml" /><link>http://www.leemunroe.com</link> <description>User Experience and Web Interface Designer Lee Munroe</description> <lastBuildDate>Mon, 16 Jan 2012 19:05:03 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3</generator> <item><title>A better way to deal with Internet Explorer conditional styles</title><link>http://www.leemunroe.com/ie-conditional-css-styles/</link> <comments>http://www.leemunroe.com/ie-conditional-css-styles/#comments</comments> <pubDate>Mon, 30 May 2011 09:01:03 +0000</pubDate> <dc:creator>Lee</dc:creator> <category><![CDATA[Web Design]]></category> <category><![CDATA[css]]></category> <category><![CDATA[ie]]></category> <category><![CDATA[ie6]]></category> <category><![CDATA[internet explorer]]></category><guid
isPermaLink="false">http://www.leemunroe.com/?p=2430</guid> <description><![CDATA[For a few years now I&#8217;ve been using one or two conditional stylesheets to help with cross browser support, or in other words &#8216;to help fix Internet Explorer&#8217;. But recently&#8230;<html><body><h1>400 Bad request</h1> Your browser sent an invalid request.</body></html> ]]></description> <content:encoded><![CDATA[<p>For a few years now <strong>I&#8217;ve been using one or two conditional stylesheets</strong> to help with cross browser support, or in other words &#8216;to help fix Internet Explorer&#8217;. But recently I&#8217;ve been trying out Paul Irish&#8217;s technique.</p><p><span
id="more-2430"></span></p><h4>HTML5 Boilerplate</h4><p>If you haven&#8217;t already go over to <a
href="http://html5boilerplate.com/">HTML5 Boilerplate</a> and take a look at the notes. In particular look through the code for each file.</p><p>HTML5 Boilerplate is a <strong>bare bones framework</strong> for any web project, with all the best practice resets, styles, htaccess settings etc. in place.</p><p>I&#8217;ve been using bits and pieces of the HTML5 boilerplate for a while now and one of the things I like in particular is <strong>how it deals with conditional styles for Internet Explorer</strong>.</p><h4>IE conditional stylesheets</h4><p>Most of the sites I work on usually include something like this:</p><pre><code>&lt;!--[if lt IE 7]&gt;
&lt;link rel="stylesheet" href="ie.css" /&gt; 
&lt;![endif]--&gt;</code></pre><p>This was to fix anything that looked out of place in IE6, usually fixes for pngs, floats, widths, positioning etc.</p><p>In some cases <strong>the site might have 2 or 3 of these conditional stylesheets</strong> for IE7 and IE8 fixes also.</p><h4>Adding conditional classes to the html tag</h4><p>Recently I&#8217;ve started using something like this instead:</p><pre><code>&lt;!--[if lt IE 7]&gt;&lt;html class="ie6" lang="en-GB"&gt;&lt;![endif]--&gt;
&lt;!--[if IE 7]&gt;&lt;html class="ie7" lang="en-GB"&gt;&lt;![endif]--&gt;
&lt;!--[if IE 8]&gt;&lt;html class="ie8" lang="en-GB"&gt;&lt;![endif]--&gt;
&lt;!--[if gt IE 8]&gt;&lt;!--&gt;&lt;html lang="en-GB"&gt;&lt;!--&lt;![endif]--&gt;</code></pre><p>This <strong>adds classes to the HTML tag</strong> in the different versions of IE, enabling you to target them with different CSS rules.</p><p>If the user isn&#8217;t using Internet Explorer then it only recognises the <strong>html lang=&#8221;en-GB&#8221;</strong> tag.</p><p>So you can do stuff like this in your core stylesheet:</p><pre><code>fieldset legend{background-color:#f6f6f6;}
.ie6 fieldset{position:relative;}
.ie6 fieldset legend{position: absolute;top: -.5em;left: .2em;}</code></pre><p>This works better for a couple of reasons:</p><ol><li>Less HTTP requests (calling 1 stylesheet rather than 2 or 3)</li><li>It keeps your CSS rule in one place</li></ol><p><strong><em>What do you think, nice technique?</em></strong></p><h4>Further reading</h4><ul><li><a
href="http://paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/">Conditional stylesheets vs CSS hacks? Answer: Neither!</a></li><li><a
href="http://html5boilerplate.com/">HTML5 Boilerplate</a></li></ul> ]]></content:encoded> <wfw:commentRss>http://www.leemunroe.com/ie-conditional-css-styles/feed/</wfw:commentRss> <slash:comments>10</slash:comments> </item> <item><title>Redesigning WebDesignire &#8211; a showcase of Irish web design</title><link>http://www.leemunroe.com/redesigning-webdesignire/</link> <comments>http://www.leemunroe.com/redesigning-webdesignire/#comments</comments> <pubDate>Sat, 14 May 2011 17:13:50 +0000</pubDate> <dc:creator>Lee</dc:creator> <category><![CDATA[Web Design]]></category> <category><![CDATA[css]]></category> <category><![CDATA[gallery]]></category> <category><![CDATA[rails]]></category> <category><![CDATA[showcase]]></category> <category><![CDATA[webdesignire]]></category> <category><![CDATA[Wordpress]]></category><guid
isPermaLink="false">http://www.leemunroe.com/?p=2409</guid> <description><![CDATA[I just relaunched WebDesignire. WebDesignire is a website showcasing &#8220;beautiful web design from Ireland and Northern Ireland&#8221;. It&#8217;s a side project that I initially launched in 2009 but due to&#8230;]]></description> <content:encoded><![CDATA[<p>I just relaunched <a
href="http://webdesignire.com/">WebDesignire</a>. WebDesignire is a website showcasing <strong>&#8220;beautiful web design from Ireland and Northern Ireland&#8221;</strong>. It&#8217;s a side project that I initially launched in 2009 but due to lack of time I haven&#8217;t been able to update it in quite some time. The new site is built with <strong>Ruby on Rails</strong>, and much of the original functionality has been stripped to keep it simple.</p><p><span
id="more-2409"></span></p><h4>Why it needed re-designed and re-developed</h4><h5>The old site</h4><div
style="text-align:center;"><a
href="http://webdesignire.com"><img
src="http://www.leemunroe.com/wp-content/uploads/oldsite.jpg" alt="oldsite.jpg" border="0" width="540" height="410" /></a></div><p>The original site was built using <strong>WordPress</strong>. WordPress is a fantastic framework but it was far too bloated for a project like this. 99% of the WordPress functionality wasn&#8217;t needed.</p><p>Maintenance and <strong>keeping the site updated was also an issue</strong>. For every website that was submitted I would have to do several tasks including taking screenshots, saving screenshots, uploading screenshots etc.</p><p>Lots to do there, hence the reason I had no time to update it.</p><h5>The new site</h5><div
style="text-align:center;"><a
href="http://webdesignire.com"><img
src="http://www.leemunroe.com/wp-content/uploads/newsite1.jpg" alt="newsite.jpg" border="0" width="540" height="305" /></a></div><p>Using Rails I was able to develop a minimal web app that only included the functionality that it actually needed &#8211; <strong>submitting and approving websites</strong>.</p><p>Using the very cool <a
href="http://webthumb.bluga.net/home">Bluga.net webthumb API</a>, the web app is able to automatically take, resize and save screenshots of the websites.</p><p>Approving and publishing a site now literally takes one click.</p><h4>Experimental for me</h4><p>As with any side project I was able to experiment and learn a few new things.</p><p>For this project I was able to try out:</p><ul><li><a
href="http://haml-lang.com/">Haml</a></li><li><a
href="http://sass-lang.com/">Sass</a></li><li><a
href="http://compass-style.org/">Compass</a></li><li><a
href="https://github.com/simplificator/rwebthumb">Simplificator rwebthumb gem</a></li></ul><p>Am <strong>loving the combination of Sass and Compass for writing CSS</strong>. Will follow up with a more detailed post on this soon.</p><h4>How useful are &#8216;CSS galleries&#8217;?</h4><p>Galleries like this have to be taken with a pinch of salt. Of course they don&#8217;t represent all the great sites that are out there and they certainly <strong>don&#8217;t take into account user experience or what&#8217;s below the surface of the iceberg</strong>. It&#8217;s a visual snapshot of a bunch of websites that form a good first impression.</p><p>Love &#8216;em or hate &#8216;em I still think it&#8217;s interesting and useful to see who&#8217;s delivering quality websites locally.</p><h4>Do you know any cracking Irish websites?</h4><p><a
href="http://webdesignire.com/suggest">Submit them to WebDesignire</a>. Even better if it&#8217;s not one of your own sites ;-)</p><p>Looking for clean, well structured websites with a good mix of type, colour, shape, texture and whitespace etc. HTML5 and CSS3 use is a bonus.</p> ]]></content:encoded> <wfw:commentRss>http://www.leemunroe.com/redesigning-webdesignire/feed/</wfw:commentRss> <slash:comments>8</slash:comments> </item> <item><title>Start Experimenting With CSS3 Keyframe Animations</title><link>http://www.leemunroe.com/css3-animations/</link> <comments>http://www.leemunroe.com/css3-animations/#comments</comments> <pubDate>Wed, 28 Jul 2010 10:01:40 +0000</pubDate> <dc:creator>Lee</dc:creator> <category><![CDATA[Web Design]]></category> <category><![CDATA[animations]]></category> <category><![CDATA[css]]></category> <category><![CDATA[css3]]></category><guid
isPermaLink="false">http://www.leemunroe.com/?p=2052</guid> <description><![CDATA[You can now produce stunning animations with CSS3. Did you know that? Of course you did. CSS3 animations are the new kid on the block. It&#8217;s a big step. Although&#8230;]]></description> <content:encoded><![CDATA[<p>You can now produce stunning animations with CSS3. Did you know that? Of course you did.</p><p>CSS3 animations are the new kid on the block. It&#8217;s a big step. Although <strong>they haven&#8217;t really taken centre stage yet as only the webkit browsers support them.</strong></p><p>For this reason they&#8217;re used sparingly, in a lot of cases for <strong>experimental purposes or as &#8216;hidden gems&#8217;</strong>, but that doesn&#8217;t mean you should shy away from getting stuck in.</p><p>It was only recently I experimented myself so I thought I&#8217;d share a beginner&#8217;s demo with you.</p><p><span
id="more-2052"></span></p><h4>How to do CSS3 keyframe animations</h4><p>Keyframe animations involve you setting the object state (or property) at different stages of an animation.</p><h5>Setup the environment</h5><p>Let&#8217;s setup a little demo. I&#8217;m going to start with two basic boxes.</p><pre><code>&lt;div class="box1"&gt;&lt;/div&gt;
&lt;div class="box2"&gt;&lt;/div&gt;</code></pre><p>Now apply some basic styling so we can see them.</p><pre><code>.box1{
width:200px;
height:200px;
background:rgba(255,0,0,0.5);
position:absolute;
top:100px;
left:50%;
margin-left:-100px;
}

.box2{
width:200px;
height:200px;
background:rgba(0,0,255,0.5);
position:absolute;
top:100px;
left:90%;
margin-left:-100px;
}</code></pre><p>And you&#8217;ve got yourself two boxes.</p><div
style="text-align:center;"><a
href="http://leemunroe.com/animation/animation1.html"><img
src="http://www.leemunroe.com/wp-content/uploads/demo1.gif" alt="demo1.gif" border="0" width="540" height="182" /></a></div><p><a
href="http://leemunroe.com/animation/animation1.html">View demo.</a></p><h5>Setup the animation affect</h5><p>Setup the animation affect and call it &#8216;movingbox&#8217;.</p><pre><code>@-webkit-keyframes movingbox{
0%{left:90%;}
50%{left:10%;}
100%{left:90%;}
}</code></pre><p><strong>movingbox</strong> is the name we&#8217;re giving the animation. It&#8217;s up to you what you want to call it.</p><p>The keyframes we&#8217;ve setup for this animation are at 0% (start), 50% (halfway through) and 100% (end). The properties we&#8217;ve set at these keyframes are different positions. You can set any properties you like here.</p><p>So far we still have two static boxes.</p><div
style="text-align:center;"><a
href="http://leemunroe.com/animation/animation1.html"><img
src="http://www.leemunroe.com/wp-content/uploads/demo11.gif" alt="demo1.gif" border="0" width="540" height="182" /></a></div><p><a
href="http://leemunroe.com/animation/animation2.html">View demo.</a></p><h5>Apply the keyframe animation</h5><p>Our last step applies the magic to the object of our choosing. We&#8217;re going to apply it to &#8216;box2&#8242;.</p><pre><code>.box2{
-webkit-animation:movingbox 5s infinite;
}</code></pre><p><strong>movingbox</strong> calls the animation we want to use, which we have already defined.</p><p><strong>5s</strong> states we want the animation movement to last 5 seconds.</p><p><strong>infinite</strong> means the animation will keep going and going.</p><p>We now have a CSS3 animation &#8211; box2 should be moving from right to left and back again. (Note: remember this only works in Safari and Chrome).</p><div
style="text-align:center;"><a
href="http://leemunroe.com/animation/animation3.html"><img
src="http://www.leemunroe.com/wp-content/uploads/demo3.gif" alt="demo3.gif" border="0" width="540" height="271" /></a></div><p><a
href="http://leemunroe.com/animation/animation3.html">View demo.</a></p><h4>More CSS3 animation properties</h4><p>This is a very simple example I have used here, and is just to help beginners get started.</p><p>For the -webkit-animation property, there are a number of other values you can try:</p><ul><li>-webkit-animation-name: [any name you like];</li><li>-webkit-animation-iteration-count: [number, infinite];</li><li>-webkit-animation-timing-function: [linear, ease,ease-in, ease-out];</li><li>-webkit-animation-duration: [time];</li><li>-webkit-animation-delay: [time];</li></ul><p>For the @-webkit-keyframes rule, instead of using percentage as keyframes, we can also declare a from and to state. You can also make it transform while animating.</p><pre><code>@-webkit-keyframes movingbox{
from{left:90%;-webkit-transform: rotate(0deg);}
to{left:10%;-webkit-transform: rotate(360deg);}
}</code></pre><p><a
href="http://leemunroe.com/animation/animation4.html">View demo.</a></p><h4>CSS3 animations in action</h4><p>See if you can spot the @keyframe animations on these sites (note: you&#8217;ll need to use a webkit browser like Safari or Chrome to see the animations in action).</p><h5><a
href="http://neography.com/experiment/circles/solarsystem/">Our Solar System</a></h5><div
style="text-align:center;"><a
href="http://neography.com/experiment/circles/solarsystem/"><img
src="http://www.leemunroe.com/wp-content/uploads/solar.jpg" alt="solar.jpg" border="0" width="540" height="543" /></a></div><p>Our Solar System using pure CSS3 for planets and orbits.</p><h5><a
href="http://futureofwebdesign.com/404/">Future Of Web Design</a></h5><div
style="text-align:center;"><a
href="http://futureofwebdesign.com/404/"><img
src="http://www.leemunroe.com/wp-content/uploads/fowd3.jpg" alt="fowd.jpg" border="0" width="540" height="295" /></a></div><p>404 pages are always a nice place to experiment with stuff that only us geeks will get.</p><h5><a
href="http://hardboiledwebdesign.com/">Hard Boiled Web Design</a></h5><div
style="text-align:center;"><a
href="http://hardboiledwebdesign.com/"><img
src="http://www.leemunroe.com/wp-content/uploads/hardboiled.jpg" alt="hardboiled.jpg" border="0" width="540" height="301" /></a></div><p>If the teaser site is anything to go by this book from Andy Clarke should be a good CSS3 reference.</p><h5><a
href="http://massiveblue.com/">Massive Blue</a></h5><div
style="text-align:center;"><a
href="http://massiveblue.com/"><img
src="http://www.leemunroe.com/wp-content/uploads/massive.jpg" alt="massive.jpg" border="0" width="540" height="362" /></a></div><p>Sam Brown&#8217;s portfolio animation is subtle but beautifully executed.</p><h5><a
href="http://eclipticlabs.com">Ecliptic</a></h5><div
style="text-align:center;"><a
href="http://eclipticlabs.com"><img
src="http://www.leemunroe.com/wp-content/uploads/ecliptic3.jpg" alt="ecliptic.jpg" border="0" width="540" height="400" /></a></div><p>This was my experiment, a hidden &#8216;Easter egg&#8217; on the Ecliptic website.</p><h4>Conclusion</h4><p>In regards to usefulness, the CSS3 animations above aren&#8217;t that. But <strong>they do let you, the designer, experiment</strong> with the latest techniques available.</p><p><strong>Make a point of working a CSS3 animation into your next project just so you can get a feel for how they work.</strong> Then in the near future, when more browsers adopt them, you&#8217;ll be able to make some <strong>really attractive user interfaces without a gif or Javascript effect in sight</strong>.</p><p><strong><em>Have you experimented with CSS3 animations yet?</em></strong></p><h4>Further reading</h4><ul><li><a
href="http://www.w3.org/TR/css3-animations">CSS3 animation properties on W3</a></li><li><a
href="http://24ways.org/2009/css-animations">Mr Max Voltar on CSS Animations</a></li><li><a
href="http://webkit.org/blog/324/css-animation-2/">CSS Animation on Surfin&#8217; Safari</a></li></ul> ]]></content:encoded> <wfw:commentRss>http://www.leemunroe.com/css3-animations/feed/</wfw:commentRss> <slash:comments>16</slash:comments> </item> <item><title>How To Setup A Reusable Framework For Your Next Website</title><link>http://www.leemunroe.com/reusable-website-framework/</link> <comments>http://www.leemunroe.com/reusable-website-framework/#comments</comments> <pubDate>Wed, 03 Mar 2010 10:01:05 +0000</pubDate> <dc:creator>Lee</dc:creator> <category><![CDATA[Web Design]]></category> <category><![CDATA[css]]></category> <category><![CDATA[framework]]></category> <category><![CDATA[html]]></category> <category><![CDATA[html5]]></category> <category><![CDATA[p52]]></category><guid
isPermaLink="false">http://www.leemunroe.com/?p=1891</guid> <description><![CDATA[You&#8217;ve done your research, sketched out the wireframes, designed a stunning mockup and now its time to markup. Where do you start? Having your own reusable framework is a great&#8230;]]></description> <content:encoded><![CDATA[<p>You&#8217;ve done your research, sketched out the wireframes, designed a stunning mockup and now its time to markup. Where do you start?</p><p>Having your own reusable framework is a great way to <strong>save time and provide a basis for your next website</strong>.</p><p>Your own reusable framework is by no means perfect for every project that you work on but it is a <strong>great starting point</strong> and it can <strong>evolve</strong> over time.</p><p><span
id="more-1891"></span></p><p>This post looks at the current framework I have in place and breaks it down. <strong><em>Please feel free to reuse this as you see fit and also point out anything that you feel would be beneficial to add (or remove).</em></strong></p><h4>Framework structure</h4><div
style="text-align:center;"><img
src="http://www.leemunroe.com/wp-content/uploads/Picture-3.png" alt="Picture 3.png" border="0" width="382" height="182" /></div><p>All files are kept in a folder simply named &#8216;<strong>NewSite</strong>&#8216; which contains the following:</p><p><strong>ie.css</strong ><br
/> A stylesheet specific for <strong>IE6</strong> (or sometimes 7) that at the end of a project will usually contain various <strong>CSS bug fixes</strong> and PNG transparency fixes.</p><p><strong>images/ directory</strong><br
/> For storing all images for the website.</p><p><strong>index.html</strong><br
/> The <strong>main template</strong> for the website. Depending on CMS or programming language I use this will be chopped up at some stage.</p><p><strong>print.css</strong><br
/> A stylesheet used when printing a document.</p><p><strong>scripts/ directory</strong><br
/> For placing all the project&#8217;s Javascript files.</p><p><strong>script.js</strong><br
/> A default script for placing most of the project&#8217;s Javascript code, stored in the scripts directory.</p><p><strong>style.css</strong><br
/> The main stylesheet.</p><p>Now lets look at what each file contains.</p><h4>index.html</h4><p>This is the main template for any website and the starting point for marking up.</p><pre><code>&lt;!doctype html&gt;
&lt;html lang="en"&gt;
&lt;head&gt;
	&lt;meta charset="utf-8"&gt;
	&lt;meta name="description" content=""&gt;
	&lt;meta name="keywords" content=""&gt;
	
	&lt;link rel="icon" type="image/x-icon" href="/favicon.ico" /&gt;
	
	&lt;link rel="stylesheet" type="text/css" href="style.css" media="screen" /&gt;
	&lt;link rel="stylesheet" type="text/css" href="print.css" media="print" /&gt;
	
	&lt;!--[if lt IE 7]&gt;
	&lt;link rel="stylesheet" href="ie.css" type="text/css" /&gt;
	&lt;![endif]--&gt;
	
&lt;!-- 	&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"&gt;&lt;/script&gt; --&gt;
	&lt;script type="text/javascript" src="scripts/script.js"&gt;&lt;/script&gt;
	
	&lt;title&gt;&lt;/title&gt;
&lt;/head&gt;

&lt;body&gt;

&lt;p id="skipto"&gt;&lt;a href="#main"&gt;Skip to content&lt;/a&gt;&lt;/p&gt;

&lt;div id="header" class="group"&gt;
	&lt;div id="logo"&gt;&lt;a href="/"&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
	&lt;ul id="nav"&gt;
		&lt;li class="selected"&gt;&lt;a href=""&gt;&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a href=""&gt;&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a href=""&gt;&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a href=""&gt;&lt;/a&gt;&lt;/li&gt;
	&lt;/ul&gt;
&lt;/div&gt;

&lt;div id="content" class="group"&gt;
	&lt;div id="main" class="main"&gt;
	
	&lt;/div&gt;
	
	&lt;div class="sidebar"&gt;
	
	&lt;/div&gt;
&lt;/div&gt;

&lt;div id="footer"&gt;
&lt;p&gt;Copyright &amp;copy;&lt;/p&gt;
&lt;/div&gt;

&lt;/body&gt;
&lt;/html&gt;</code></pre><p>Notes about the markup used:</p><ul><li>The doctype is <strong>HTML 5</strong></li><li>There is a &#8216;<strong>skip to content</strong>&#8216; link for screen readers (the style sheet will hide this)</li><li>Uses a conditional statement to load <strong>ie.css for Internet Explorer browsers below version 7</strong></li><li>JQuery library is included using <strong>Google&#8217;s CDN</strong> (but is commented out until it is needed)</li><li>The bare bones of the markup has been added</li></ul><h4>styles.css</h4><p>Now lets look at the default stylesheet I&#8217;m using.</p><pre><code>/*
Author: Lee Munroe
*/


/* 
# CSS contents ###################
* 1 Reset defaults
* 2 Layout
* 3 Nav
* 4 Headings
* 5 Lists
* 6 Images
* 7 Links
* 8 Forms
* 9 Tables
* 10 Typography 
* 11 Other
*/


/* 
# Colour reference ###################


*/
 
/*
# Reset defaults ################### 
*/

html, body, div, h1, h2, h3, h4, h5, h6, ul, ol, dl, li, dt, dd, p, blockquote, pre, form, fieldset, table, th, td { margin: 0; padding: 0; } 
a:link, a:visited{text-decoration:none;outline:none;}
html {overflow: -moz-scrollbars-vertical;}
#skipto{position:absolute;left:-9999px;top:-9999px;}
.group:after {content: ".";display: block;height: 0;clear: both;visibility: hidden;}

/*
# Layout ################### 
*/

body{font:75%/1.5  "Helvetica Neue", Helvetica, Arial, sans-serif;color:#222;background:#fff;}

/*
# Nav ################### 
*/



/*
# Headings ################### 
*/

h1{}

h2{}

h3{}

h4{}

#logo{width:;height:;background:url(images/logo.gif) no-repeat;}
#logo a{display:block;height:100%;width:100%;}
#logo a span{position:absolute;left:-9999px;top:-9999px;}

/*
# Lists ################### 
*/



/*
# Images ################### 
*/

img{border:none;}
img.left{margin:0 10px 10px 0;}
img.right{margin:0 0 10px 10px;}

/*
# Links ################### 
*/

a{}
a:hover{}

/*
# Forms ################### 
*/



/*
# Tables ################### 
*/



/*
# Typography ################### 
*/

p{margin:0 0 1.5em;}

/*
# Other ################### 
*/

.right{float:right;}
.left{float:left;}
.clear{clear:both;}
.alignleft{text-align: left;}
.alignright{text-align: right;}
.aligncenter{text-align: center;}</code></pre><p>Notes for the stylesheet:</p><ul><li><strong>Author name</strong> at the top. I&#8217;ll also include the <strong>project name and date</strong> here. This is mainly for the records of anyone the site is handed over to.</li><li>Using <strong>comments</strong> to break down the stylesheet into <strong>sections</strong> making it easier to scan down and find styles. Larger projects may have a different structure.</li><li>A general <strong>reset</strong> for margins and padding. There are lots of more advanced resets out there but I find this basic one works well. <a
href="http://meyerweb.com/eric/tools/css/reset/">Read about CSS reset here</a></li><li>.group:after &#8211; the group class is applied to <strong>any element that needs cleared right after</strong>. Usually where there are 2 or more floats side by side.</li></ul><h4>ie.css</h4><pre><code>.group {zoom: 1;}</code></pre><p>Notes:</p><ul><li>As it stands, only contains a fix for the .group class</li></ul><h4>print.css</h4><pre><code>#header, #footer{display:none;}</code></pre><p>Notes:</p><ul><li>Removes the header and the footer when printing. The final file will need tinkering with though.</li></ul><h4>script.js</h4><pre><code>/*
$(document).ready(function() {
	
});
*/</code></pre><p>Notes:</p><ul><li>The document ready function is for JQuery Javascript functions that you want to run when your page loads. This is commented out until needed.</li></ul><h4>Conclusion</h4><p><a
href="http://www.leemunroe.com/wp-content/uploads/NewSite.zip" class="button cta"  onClick="javascript: pageTracker._trackPageview('/downloads/framework'); ">Download framework as zip file</a></p><p>Please feel free to use these templates in your own projects.</p><p>Again, this is just a framework I&#8217;ve put together over time. I recommend you adapt it to suit your own environment.</p><p><strong><em>What does your framework look like? Anything useful I&#8217;ve missed?</em></strong></p><h4>Further reading</h4><p>More useful templates/frameworks to check out:</p><ul><li><a
href="http://960.gs/">960 Grid System</a></li><li><a
href="http://www.blueprintcss.org/">Blueprint</a></li></ul> ]]></content:encoded> <wfw:commentRss>http://www.leemunroe.com/reusable-website-framework/feed/</wfw:commentRss> <slash:comments>59</slash:comments> </item> <item><title>Book Review: Handcrafted CSS</title><link>http://www.leemunroe.com/handcrafted-css-book/</link> <comments>http://www.leemunroe.com/handcrafted-css-book/#comments</comments> <pubDate>Tue, 02 Feb 2010 09:02:19 +0000</pubDate> <dc:creator>Lee</dc:creator> <category><![CDATA[Web Design]]></category> <category><![CDATA[book]]></category> <category><![CDATA[css]]></category> <category><![CDATA[css3]]></category> <category><![CDATA[dan cederholm]]></category> <category><![CDATA[p52]]></category> <category><![CDATA[review]]></category><guid
isPermaLink="false">http://www.leemunroe.com/?p=1779</guid> <description><![CDATA[Handcrafted CSS is by one of the web design industries&#8217; most established authors, Dan Cederholm. He is the man behind Bulletproof Web Design, Web Standards Solutions, Simple Bits and most&#8230;]]></description> <content:encoded><![CDATA[<p><a
href="http://www.amazon.co.uk/gp/product/0321643380?ie=UTF8&amp;tag=10homepa-21&amp;linkCode=as2&amp;camp=1634&amp;creative=19450&amp;creativeASIN=0321643380">Handcrafted CSS</a> is by one of the web design industries&#8217; most established authors, <a
href="http://twitter.com/simplebits">Dan Cederholm</a>. He is the man behind <a
href="http://www.amazon.co.uk/gp/product/0321509021?ie=UTF8&amp;tag=10homepa-21&amp;linkCode=as2&amp;camp=1634&amp;creative=19450&amp;creativeASIN=0321509021">Bulletproof Web Design</a>, <a
href="http://www.amazon.co.uk/gp/product/1430219203?ie=UTF8&amp;tag=leemunroe-21&amp;linkCode=as2&amp;camp=1634&amp;creative=19450&amp;creativeASIN=1430219203">Web Standards Solutions</a>, <a
href="http://simplebits.com/">Simple Bits</a> and most recently <a
href="http://dribbble.com/">Dribbble</a>.</p><p><span
id="more-1779"></span></p><p>Dan is well known for his clean markup, embracing advanced CSS and his love of ampersands so I was really looking forward to this book.</p><div
style="text-align:center;"><p><a
href="http://www.amazon.co.uk/gp/product/0321643380?ie=UTF8&amp;tag=10homepa-21&amp;linkCode=as2&amp;camp=1634&amp;creative=19450&amp;creativeASIN=0321643380"><img
src="http://www.leemunroe.com/wp-content/uploads/css.jpg" border="0" alt="css.jpg" width="410" height="500" /></a></p></div><blockquote><p>Handcrafted CSS is for the CSS designer who wants to go the extra mile.</p></blockquote><h4>Who is it for?</h4><p>This book would be more for <strong>intermediate/advanced designers</strong>, which is great as there are so many &#8216;beginner&#8217; books out there it was nice to read a book that just got stuck in.</p><p><strong>It&#8217;s for designers who care about the little things &#8211; the clean markup, the grid, the 1 pixels and the ampersands.</strong></p><h4>What&#8217;s in it?</h4><ul><li>Simple tricks for dealing with everyday CSS obstacles</li><li>Bulletproof CSS3 techniques</li><li>The fluid grid</li><li>Floats (and clearing them)</li><li>Frameworks (and crafting your own)</li><li>Small details that can make a great design</li><li>Stuff about ampersands</li></ul><h4>Verdict</h4><p>I <em>really</em> enjoyed this book. <strong>I was able to learn from it, advance current techniques and be inspired by it.</strong></p><p>It&#8217;s easy to relate to everything outlined in the book. Some things were a reminder while others I had never thought of before. Truly inspired to go away and start crafting something special.</p><p>Not only is the content good, even how the book is laid out is gorgeous with well spaced pages, nice formatting and an embossed front cover.</p><p><strong>Highly recommended.</strong></p><h4>Pull quotes</h4><p><blockquote>&#8230;the larger the target, the quicker and easier it is to get there.</p></blockquote><p><blockquote>but the important thing to remember here is that this method degrades beautifully&#8230;The design is intact. It&#8217;s functional and readable.</p></blockquote><p><blockquote>&#8230;the rounded corners in Mozilla- and WebKit- based browsers are visual rewards rather than necessary requirements.</p></blockquote><p><blockquote>The problem with the fixed-width approach to interface design is that it&#8217;s asking the user to adapt to the design rather than the reverse.</p></blockquote> ]]></content:encoded> <wfw:commentRss>http://www.leemunroe.com/handcrafted-css-book/feed/</wfw:commentRss> <slash:comments>6</slash:comments> </item> <item><title>How To Design A Sexy Button Using CSS</title><link>http://www.leemunroe.com/css-button/</link> <comments>http://www.leemunroe.com/css-button/#comments</comments> <pubDate>Tue, 26 Jan 2010 09:02:24 +0000</pubDate> <dc:creator>Lee</dc:creator> <category><![CDATA[Web Design]]></category> <category><![CDATA[buttons]]></category> <category><![CDATA[css]]></category> <category><![CDATA[css3]]></category> <category><![CDATA[p52]]></category> <category><![CDATA[tutorial]]></category><guid
isPermaLink="false">http://www.leemunroe.com/?p=1753</guid> <description><![CDATA[Last week I launched a holding page for Ecliptic Labs, an iPhone development company based in Belfast (keep an eye on them, there&#8217;s going to be some great stuff from&#8230;]]></description> <content:encoded><![CDATA[<p>Last week I launched a holding page for <a
href="http://eclipticlabs.com/">Ecliptic Labs</a>, an iPhone development company based in Belfast (keep an eye on them, there&#8217;s going to be some great stuff from them this year).</p><p>Here is the holding page in all it&#8217;s glory.</p><p><span
id="more-1753"></span></p><div
style="text-align:center;"><a
href="http://eclipticlabs.com/"><img
src="http://www.leemunroe.com/wp-content/uploads/ecliptic.jpg" alt="ecliptic.jpg" border="0" width="540" height="362" /></a></div><p>One thing you&#8217;ll notice is the big <strong>&#8216;Notify me&#8217; button</strong>. One of the great things about this button is that <strong>it isn&#8217;t a graphic</strong>. It&#8217;s simply <strong>styled using CSS</strong>.</p><p>Advantages of using CSS instead of a graphic:</p><ol><li><strong>Optimisation</strong> &#8211; less file size, less http requests</li><li><strong>Reusable</strong> &#8211; button can be used over and over again for different actions</li><li><strong>Flexible</strong> &#8211; the button can stretch or compact depending on length of the text</li></ol><h4>Styling the button element</h4><p>I&#8217;m going to be using Firefox 3.6 for the previews below.</p><h5>The markup</h5><pre><code>&lt;button&gt;Notify me&lt;/button&gt;</code></pre><p>This is how the default button looks.</p><div
style="text-align:center;"><img
src="http://www.leemunroe.com/wp-content/uploads/1.jpg" alt="1.jpg" border="0" width="92" height="55" /></div><h5>Basic styling</h5><p>First apply some basic styling to get started.</p><pre><code>button{
color:#08233e;
font:2.4em Futura, ‘Century Gothic’, AppleGothic, sans-serif;
padding:14px;
}</code></pre><p>Nothing strange or startling about these styles. This is what we have now.</p><div
style="text-align:center;"><img
src="http://www.leemunroe.com/wp-content/uploads/2.jpg" alt="2.jpg" border="0" width="163" height="68" /></div><h5>Background</h5><p>Let&#8217;s add a background. Remember, we want to make the button reusable for any colour.</p><ol><li>Go into Photoshop and create a new image 10px x 100px</li><li>Create a white rectangular shape that covers the top half of the canvas on a new layer</li><li>Give that layer 30% opacity and make the background transparent</li><li>Save that image as <a
href="http://www.leemunroe.com/wp-content/uploads/overlay.png">overlay.png</a></li></ol><div
style="text-align:center;"><img
src="http://www.leemunroe.com/wp-content/uploads/3.jpg" alt="3.jpg" border="0" width="161" height="194" /></div><p>Decide what background colour you want to use and apply it to the button along with the overlay you just made.</p><pre><code>background:url(overlay.png) repeat-x center #ffcc00;</code></pre><p>This gives us a nice yellow background with a glossy overlay.</p><div
style="text-align:center;"><img
src="http://www.leemunroe.com/wp-content/uploads/4.jpg" alt="4.jpg" border="0" width="178" height="84" /></div><h5>Border</h5><p>Now get rid of that horrible outset border. Let&#8217;s give it a fine border that matches the background colour.</p><pre><code>border:1px solid #ffcc00;</code></pre><div
style="text-align:center;"><img
src="http://www.leemunroe.com/wp-content/uploads/5.jpg" alt="5.jpg" border="0" width="187" height="92" /></div><h5>Rounded corners</h5><p>Make your button a bit friendlier by giving it rounded corners. This is where Webkit and Mozilla browser users will take advantage, while IE browsers will be stuck with sharp corners.</p><pre><code>-moz-border-radius:10px;-webkit-border-radius:10px;border-radius:10px;</code></pre><div
style="text-align:center;"><img
src="http://www.leemunroe.com/wp-content/uploads/6.jpg" alt="6.jpg" border="0" width="182" height="89" /></div><p>Starting to look good eh? But a good designer likes to pay attention to detail.</p><h5>Pixel perfection</h5><p>Now finish off the button with some pixel perfect embossing. We&#8217;re going to give it a 1 pixel border and a 1 pixel inset shadow.</p><pre><code>border-bottom:1px solid #9f9f9f;
-moz-box-shadow:inset 0 1px 0 rgba(255,255,255,0.5);-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,0.5);box-shadow:inset 0 1px 0 rgba(255,255,255,0.5);</code></pre><p>Notice how we&#8217;re using RGBA colours here. This allows us to apply alpha opacity to the colour. In this case, we&#8217;re giving white a 50% opacity.</p><div
style="text-align:center;"><img
src="http://www.leemunroe.com/wp-content/uploads/7.jpg" alt="7.jpg" border="0" width="179" height="86" /></div><div
style="text-align:center;"><img
src="http://www.leemunroe.com/wp-content/uploads/8.jpg" alt="8.jpg" border="0" width="179" height="86" /></div><h5>Make it clickable</h5><p>We know it&#8217;s a button and that it can be clicked but users might not. Change the cursor to a pointer so users know they can click it.</p><pre><code>cursor:pointer;</code></pre><h5>Hover state</h5><p>We now have a pretty sexy looking button. But what about a hover state?</p><p>To save us from thinking about a colour for the hover state, we can use the RGBA approach. Let&#8217;s revisit the background style. Add this after your background declaration.</p><pre><code>background-color:rgba(255,204,0,1);</code></pre><p>Nothing changes. All we did was change it to the same colour but using RGBA.</p><p>But how for the button&#8217;s hover state, give it the same background colour but alter the opacity slightly.</p><pre><code>button:hover{background-color:rgba(255,204,0,0.8);}</code></pre><p>This gives us a slightly different shade of background on hover, giving the user some feedback so they know they&#8217;ve hovered over a clickable button.</p><h5>Put it all together</h5><p>The final code.</p><pre><code>button{
color:#08233e;
font:2.4em Futura, ‘Century Gothic’, AppleGothic, sans-serif;
padding:14px;
background:url(images/splash/button.png) repeat-x center #ffcc00;background-color:rgba(255,204,0,1);
border:1px solid #ffcc00;
-moz-border-radius:10px;-webkit-border-radius:10px;border-radius:10px;
border-bottom:1px solid #9f9f9f;
-moz-box-shadow:inset 0 1px 0 rgba(255,255,255,0.5);-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,0.5);box-shadow:inset 0 1px 0 rgba(255,255,255,0.5);
cursor:pointer;
}

button:hover{background-color:rgba(255,204,0,0.8);}

button:active{position:relative;top:2px;}</code></pre><p>I&#8217;ve slipped in an active state as well for the button so the user knows when they&#8217;ve clicked it.</p><p>This is how it looks in Firefox:</p><div
style="text-align:center;"><img
src="http://www.leemunroe.com/wp-content/uploads/9.jpg" alt="9.jpg" border="0" width="181" height="89" /></div><p><strong>And this is an active preview.</strong></p><style type="text/css">button.preview{
color:#08233e;
font:2.4em Futura, ‘Century Gothic’, AppleGothic, sans-serif;
padding:14px;
background:url(http://www.leemunroe.com/wp-content/uploads/overlay.png) repeat-x center #ffcc00;background-color:rgba(255,204,0,1);
border:1px solid #ffcc00;
-moz-border-radius:10px;-webkit-border-radius:10px;border-radius:10px;
border-bottom:1px solid #9f9f9f;
-moz-box-shadow:inset 0 1px 0 rgba(255,255,255,0.5);-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,0.5);box-shadow:inset 0 1px 0 rgba(255,255,255,0.5);
cursor:pointer;
}button:hover{background-color:rgba(255,204,0,0.8);}button.preview:active{position:relative;top:2px;}</style><div
style="text-align:center"> <button
class="preview">Notify me</button></div><p>Remember the button is reusable so if you apply a class to the button, e.g. class=&#8221;save&#8221;, you can apply a different colour to this button.</p><pre><code>button.save{
background-color:#a7dd32;background-color:rgba(167,221,50,1);
border-color:#a7dd32;
}

button.save:hover{
background-color:rgba(167,221,50,0.8);
}</code></pre><p>And you&#8217;d get something like this.</p><div
style="text-align:center;"><img
src="http://www.leemunroe.com/wp-content/uploads/10.jpg" alt="10.jpg" border="0" width="180" height="91" /></div><h5>But what about Internet Explorer?</h5><p>Yes, unfortunately IE users won&#8217;t get the full benefits of the sexy button. However, it doesn&#8217;t look that bad and to IE users it will seem like there is nothing wrong.</p><div
style="text-align:center;"><img
src="http://www.leemunroe.com/wp-content/uploads/11.jpg" alt="11.jpg" border="0" width="171" height="70" /></div><p>And IE6? It doesn&#8217;t support PNG transparency so you can remove the overlay background image with an IE6 conditional stylesheet.</p><pre><code>&lt;!--[if lt IE 7]&gt;
&lt;link rel="stylesheet" href="ie.css" type="text/css" /&gt;
&lt;![endif]--&gt;</code></pre><p>Then in ie.css:</p><pre><code>button{background-image:none !important;}</code></pre><p>And there you have it. A beautifully designed button using (pretty much) only CSS.</p><p><a
href="http://eclipticlabs.com"><img
src="http://www.leemunroe.com/wp-content/uploads/field.jpg" alt="field" title="field" width="540" height="102" class="alignnone size-full wp-image-1770" /></a></p><h4>Further reading</h4><p>I highly recommend you check out this great tutorial by Zurb on <a
href="http://www.zurb.com/article/266/super-awesome-buttons-with-css3-and-rgba">super awesome buttons with CSS3 and RGBA</a>. A handy tutorial for styling reusable buttons.</p> ]]></content:encoded> <wfw:commentRss>http://www.leemunroe.com/css-button/feed/</wfw:commentRss> <slash:comments>20</slash:comments> </item> <item><title>Internet Explorer Users Don&#8217;t Care About Rounded Corners</title><link>http://www.leemunroe.com/ie-rounded-corners-css3/</link> <comments>http://www.leemunroe.com/ie-rounded-corners-css3/#comments</comments> <pubDate>Mon, 19 Oct 2009 14:30:39 +0000</pubDate> <dc:creator>Lee</dc:creator> <category><![CDATA[Web Design]]></category> <category><![CDATA[css]]></category> <category><![CDATA[css3]]></category> <category><![CDATA[firefox]]></category> <category><![CDATA[ie]]></category> <category><![CDATA[ie6]]></category> <category><![CDATA[safari]]></category><guid
isPermaLink="false">http://www.leemunroe.com/?p=1607</guid> <description><![CDATA[Internet Explorer users don&#8217;t care about rounded corners. Bold statement? Perhaps. But recently I&#8217;ve taken this approach to a few designs as I&#8217;m tired of having to use some sort&#8230;]]></description> <content:encoded><![CDATA[<p><strong>Internet Explorer users don&#8217;t care about rounded corners.</strong> Bold statement? Perhaps. But recently I&#8217;ve taken this approach to a few designs as I&#8217;m tired of having to use some sort of <a
href="http://www.cssjuice.com/25-rounded-corners-techniques-with-css/">rounded corner hack</a> to support IE. It&#8217;s a lot easier to just <strong>use the CSS 3 declaration</strong>.</p><p><span
id="more-1607"></span></p><p>If you&#8217;re up-to-date with your CSS knowledge, you&#8217;ll know that <strong>CSS 3 has introduced rounded corners</strong>, among other &#8216;goodies&#8217;. The problem is though that IE doesn&#8217;t support CSS 3 yet but Firefox, Safari and Chrome do.</p><p>Some CSS 3 techniques I&#8217;ve been using on <a
href="http://sharethrough.com">Sharethrough</a> and <a
href="http://lookaly.com">Lookaly</a>:</p><h4>CSS 3 rounded corners</h4><div
style="text-align:center;"><img
src="http://www.leemunroe.com/wp-content/uploads/rounded.jpg" border="0" alt="rounded.jpg" width="540" height="100" /></div><p>&nbsp;</p><div
style="text-align:center;"><img
src="http://www.leemunroe.com/wp-content/uploads/rounded2.jpg" border="0" alt="rounded2.jpg" width="540" height="100" /></div><p>&nbsp;</p><pre><code>div{
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
}</code></pre><h4>CSS 3 text shadow</h4><div
style="text-align:center;"><img
src="http://www.leemunroe.com/wp-content/uploads/shadow2.jpg" border="0" alt="shadow2.jpg" width="540" height="100" /></div><p>&nbsp;</p><div
style="text-align:center;"><img
src="http://www.leemunroe.com/wp-content/uploads/shadow.jpg" border="0" alt="shadow.jpg" width="540" height="100" /></div><p>&nbsp;</p><pre><code>div{
text-shadow: -1px -1px 3px rgba(0,0,0,0.25);
}</code></pre><h4>CSS 3 box shadow</h4><div
style="text-align:center;"><img
src="http://www.leemunroe.com/wp-content/uploads/shadow3.jpg" border="0" alt="shadow3.jpg" width="540" height="100" /></div><p>&nbsp;</p><pre><code>img{
-webkit-box-shadow:0 0 5px 5px rgba(34,34,34,0.3);
-moz-box-shadow:0 0 5px 5px rgba(34,34,34,0.3);
}</code></pre><h4>But how do you deal with clients?</h4><p>This is where it gets tricky. If you show a client a mockup with rounded corners and the final solution doesn&#8217;t have these (because they use IE) they&#8217;ll probably not be too happy.</p><p>If you&#8217;re working with computer savvy clients, who use Safari or Firefox, they should understand. If you&#8217;re working on your own personal or side project, happy days. If not, you can try Andy Clarke&#8217;s approach of <strong>designing in the browser</strong>. <a
href="http://stuffandnonsense.co.uk/blog/about/time_to_stop_showing_clients_static_design_visuals/">Time to stop showing clients static design visuals</a> is a very good article about skipping the static mockup stage.</p><h4>Conclusion</h4><p>The point I&#8217;m trying to make here is that <strong>as long as it looks OK in all browsers</strong>, we can afford to take liberties when it comes to making it look nicer for those who use Firefox and Safari. Most designers use Firefox or Safari and they&#8217;ll appreciate the rounded corners more. IE users <em>*probably*</em> don&#8217;t care.</p><p><strong><em>What do you think? Have you started using CSS 3 in your designs? Do you think IE users should get to see the rounded corners too? Share your thoughts below.</em></strong></p> ]]></content:encoded> <wfw:commentRss>http://www.leemunroe.com/ie-rounded-corners-css3/feed/</wfw:commentRss> <slash:comments>68</slash:comments> </item> <item><title>Book Review: HTML and CSS Web Standards Solutions: A Web Standardistas&#8217; Approach</title><link>http://www.leemunroe.com/web-standardistas-book/</link> <comments>http://www.leemunroe.com/web-standardistas-book/#comments</comments> <pubDate>Mon, 28 Sep 2009 11:27:15 +0000</pubDate> <dc:creator>Lee</dc:creator> <category><![CDATA[Web Design]]></category> <category><![CDATA[book]]></category> <category><![CDATA[css]]></category> <category><![CDATA[html]]></category> <category><![CDATA[standardistas]]></category> <category><![CDATA[standards]]></category><guid
isPermaLink="false">http://www.leemunroe.com/?p=1587</guid> <description><![CDATA[Every so often I will receive an email that asks the following: How can I learn how to build websites? There are two approaches you can take to learning how&#8230;]]></description> <content:encoded><![CDATA[<p>Every so often I will receive an email that asks the following:</p><blockquote><p>How can I learn how to build websites?</p></blockquote><p>There are two approaches you can take to learning how to build websites.</p><ol><li>Learn how to build websites</li><li>Learn <strong>how to build websites the right way</strong>, aka <em>the Web Standardistas&#8217; way</em></li></ol><p><span
id="more-1587"></span></p><div
style="text-align:center;"><a
href="http://www.amazon.co.uk/exec/obidos/ASIN/1430216069/leemunroe-21"><img
src="http://www.leemunroe.com/wp-content/uploads/book1.jpg" alt="Web Standardistas" title="Web Standardistas" width="201" height="240" class="alignnone size-full wp-image-1590" /></a></div><p>I built my first website over 10 years ago but it wasn&#8217;t until final year of my University degree course Interactive Multimedia Design (IMD) that I discovered how to <strong>build sites properly using well structured HTML and CSS</strong>. Before this I was using tables, unstructured markup and invalid HTML. Who do I have to thank for this? <a
href="http://mcmxc.org/">Chris Murphy</a> and <a
href="http://takete.com/">Nicklas Persson</a>, two lecturers on the IMD course.</p><p>Now you don&#8217;t have to take a University course to be taught by these two world renowned mentors. They have branded themselves as the <a
href="http://twitter.com/standardistas">Standardistas</a> and have put all their years of wisdom and knowledge on paper in the form of <a
href="http://astore.amazon.co.uk/leemunroe-21/detail/1430216069">HTML and CSS Web Standards Solutions: A Web Standardistas&#8217; Approach</a>.</p><p>This book will teach you how to build websites from scratch. Starting with the basics of <strong>semantic markup and how web pages work moving onto styling your first web page with CSS</strong>. It&#8217;s a one stop shop for putting together your first web site.</p><h4>Who is it for?</h4><ul><li>People who want to learn how to build websites</li><li>Developers who need to brush up their front end markup skills</li><li>Designers who are using outdated techniques e.g. tables, to build websites</li><li>Professionals who want to earn the badge of a Web Standardista</li></ul><h4>Benefits of the Web Standardistas&#8217; approach</h4><ul><li>Separates content and presentation (easier to update layouts)</li><li>Reduced markup (reducing page download times)</li><li>Increased accessibility (for screen readers and other platforms)</li><li>Cross browser compatibility</li><li>Forward compatibility</li></ul><h4>Recommended</h4><p>It&#8217;s an easily read book, clearly laid out with lots of code examples to help you get started. After reading this you&#8217;ll be able to build websites with your eyes closed.</p><ul><li><a
href="http://www.amazon.co.uk/exec/obidos/ASIN/1430216069/leemunroe-21">The Book</a></li><li><a
href="http://webstandardistas.com/">Web Standardistas website</a></li><li><a
href="http://twitter.com/standardistas">@standardistas on Twitter</a></li></ul> ]]></content:encoded> <wfw:commentRss>http://www.leemunroe.com/web-standardistas-book/feed/</wfw:commentRss> <slash:comments>12</slash:comments> </item> <item><title>Web Design Trends: Designing Out Of The Box</title><link>http://www.leemunroe.com/designing-out-of-the-box/</link> <comments>http://www.leemunroe.com/designing-out-of-the-box/#comments</comments> <pubDate>Tue, 07 Apr 2009 09:00:49 +0000</pubDate> <dc:creator>Lee</dc:creator> <category><![CDATA[Trends & Inspiration]]></category> <category><![CDATA[box]]></category> <category><![CDATA[container]]></category> <category><![CDATA[css]]></category> <category><![CDATA[trends]]></category> <category><![CDATA[tutorial]]></category> <category><![CDATA[Web Design]]></category><guid
isPermaLink="false">http://www.leemunroe.com/?p=1224</guid> <description><![CDATA[This is a creative trend catching on. It&#8217;s very simple to do but adds an extra element of character and uniqueness to a design. Take a look at how to&#8230;]]></description> <content:encoded><![CDATA[<p>This is a creative trend catching on. It&#8217;s very simple to do but adds an extra element of character and uniqueness to a design.</p><p>Take a look at how to implement this &#8216;out of the box&#8217; technique and a list of creative websites that are using it.</p><p><span
id="more-1224"></span></p><h4>Setup</h4><p>First setup your page and graphic. I&#8217;m using this graphic.</p><div
style="text-align:center;"><img
src="http://www.leemunroe.com/wp-content/uploads/logo.png" border="0" alt="Logo" width="237" height="99" /></div><p>The HTML for my page is like so:</p><pre><code>&lt;div id="container"&gt;
&lt;img id="logo" src="logo.png" alt="Lee Munroe" /&gt;
&lt;/div&gt;</code></pre><p>And the CSS looks like this:</p><pre><code>body{
background:#999999;
}

#container{
width:960px;
background:#fff;
margin:20px auto;
padding:10px;
}</code></pre><p>Here&#8217;s a preview of what we have so far:</p><div
style="text-align:center;"><img
src="http://www.leemunroe.com/wp-content/uploads/b-11.jpg" border="0" alt="Inside box" width="540" height="150" /></div><h4>Positioning is relative</h4><p>When we position the logo we want the positioning to be relative to the container, therefore make the position relative:</p><pre><code>#container{
width:960px;
background:#fff;
margin:20px auto;
padding:10px;
position:relative;
}</code></pre><h4>Position it outside the box</h4><p>Now all you have to do is position your logo. Place it horizontally so the tag sticks out of the container.</p><pre><code>#logo{
position:absolute;
left:-15px;
}</code></pre><p>Now we have our logo sitting outside the box. Easy!</p><div
style="text-align:center;"><img
src="http://www.leemunroe.com/wp-content/uploads/b-2.jpg" border="0" alt="Outside box" width="540" height="150" /></div><h4>15 creative designs using the &#8216;out of the box&#8217; technique</h4><h5><a
href="http://www.changeincommand.com/">Change in Command</a></h5><div
style="text-align:center;"><a
href="http://www.changeincommand.com/"><img
src="http://www.leemunroe.com/wp-content/uploads/b-12.jpg" border="0" alt="Change in Command" width="512" height="384" /></a></div><h5><a
href="http://www.icondesigner.net/">Icon Designer</a></h5><div
style="text-align:center;"><a
href="http://www.icondesigner.net/"><img
src="http://www.leemunroe.com/wp-content/uploads/snap-212.jpg" border="0" alt="Icon Designer" width="512" height="384" /></a></div><h5><a
href="http://yoast.com/">Yoast</a></h5><div
style="text-align:center;"><a
href="http://yoast.com/"><img
src="http://www.leemunroe.com/wp-content/uploads/snap-312.jpg" border="0" alt="Yoast" width="512" height="384" /></a></div><h5><a
href="http://www.twiistup.com/">Twiistup</a></h5><div
style="text-align:center;"><a
href="http://www.twiistup.com/"><img
src="http://www.leemunroe.com/wp-content/uploads/snap-67.jpg" border="0" alt="Twiistup" width="512" height="384" /></a></div><h5><a
href="http://thedesignsuperhero.com/">The Design Superhero</a></h5><div
style="text-align:center;"><a
href="http://thedesignsuperhero.com/"><img
src="http://www.leemunroe.com/wp-content/uploads/snap-93.jpg" border="0" alt="The Design Superhero" width="512" height="384" /></a></div><h5><a
href="http://www.ericryananderson.com/">Eric Ryan Anderson</a></h5><div
style="text-align:center;"><a
href="http://www.ericryananderson.com/"><img
src="http://www.leemunroe.com/wp-content/uploads/snap-412.jpg" border="0" alt="Eric Ryan Anderson" width="512" height="384" /></a></div><h5><a
href="http://www.rockwerchter.be/en/home/">Rock Werchter</a></h5><div
style="text-align:center;"><a
href="http://www.rockwerchter.be/en/home/"><img
src="http://www.leemunroe.com/wp-content/uploads/rock.jpg" border="0" alt="Rock Werchter" width="512" height="384" /></a></div><h5><a
href="http://www.freelancesuite.com/demo/">Freelance Suite</a></h5><div
style="text-align:center;"><a
href="http://www.freelancesuite.com/demo/"><img
src="http://www.leemunroe.com/wp-content/uploads/snap-73.jpg" border="0" alt="Freelance Suite" width="512" height="384" /></a></div><h5><a
href="http://hipsterist.com/">Hipsterist</a></h5><div
style="text-align:center;"><a
href="http://hipsterist.com/"><img
src="http://www.leemunroe.com/wp-content/uploads/snap-82.jpg" border="0" alt="Hipsterist" width="512" height="384" /></a></div><h5><a
href="http://creamscoop.com/">CreamScoop</a></h5><div
style="text-align:center;"><a
href="http://creamscoop.com/"><img
src="http://www.leemunroe.com/wp-content/uploads/snap-104.jpg" border="0" alt="CreamScoop" width="512" height="384" /></a></div><h5><a
href="http://brightkite.com/">Bright Kite</a></h5><div
style="text-align:center;"><a
href="http://brightkite.com/"><img
src="http://www.leemunroe.com/wp-content/uploads/snap-123.jpg" border="0" alt="Bright Kite" width="512" height="384" /></a></div><h5><a
href="http://www.from-the-couch.com/">From The Couch</a></h5><div
style="text-align:center;"><a
href="http://www.from-the-couch.com/"><img
src="http://www.leemunroe.com/wp-content/uploads/couch.jpg" border="0" alt="From The Couch" width="512" height="384" /></a></div><h5><a
href="http://designm.ag/">DesignM.ag</a></h5><div
style="text-align:center;"><a
href="http://designm.ag/"><img
src="http://www.leemunroe.com/wp-content/uploads/snap-133.jpg" border="0" alt="DesignM.ag" width="512" height="384" /></a></div><h5><a
href="http://ma.tt/">Matt Mullenweg</a></h5><div
style="text-align:center;"><a
href="http://ma.tt/"><img
src="http://www.leemunroe.com/wp-content/uploads/matt.jpg" border="0" alt="Matt Mullenweg" width="512" height="384" /></a></div><p><strong><em>Feel free to share your thoughts on this and other emerging trends.</em></strong></p> ]]></content:encoded> <wfw:commentRss>http://www.leemunroe.com/designing-out-of-the-box/feed/</wfw:commentRss> <slash:comments>35</slash:comments> </item> <item><title>5 Quick and Easy Ways to Optimise Your Website</title><link>http://www.leemunroe.com/optimise-website/</link> <comments>http://www.leemunroe.com/optimise-website/#comments</comments> <pubDate>Mon, 16 Mar 2009 09:00:30 +0000</pubDate> <dc:creator>Lee</dc:creator> <category><![CDATA[Web Design]]></category> <category><![CDATA[css]]></category> <category><![CDATA[javascript]]></category> <category><![CDATA[optimisation]]></category> <category><![CDATA[optimization]]></category> <category><![CDATA[web]]></category><guid
isPermaLink="false">http://www.leemunroe.com/?p=1154</guid> <description><![CDATA[Performance is something you don&#8217;t often think about. You assume that if it loads quickly enough for you then everyone&#8217;s happy. Someone commented a while back saying that it takes&#8230;]]></description> <content:encoded><![CDATA[<p>Performance is something you don&#8217;t often think about. You assume that if it loads quickly enough for you then everyone&#8217;s happy. Someone commented a while back saying that it takes quite long for my pages to load so I optimised it a tad and thought I&#8217;d share a few quick tips with you.</p><p><span
id="more-1154"></span></p><h4>1. Use CSS sprites</h4><p>Rather than having multiple CSS background images for your page, you can use CSS sprites to <strong>combine multiple images into one graphic</strong>. This <strong>reduces overall filesize</strong> and the amount of <strong>HTTP requests</strong>.</p><p>Once you do this you can use CSS to control the background images.</p><pre><code>#services ol li{
background:url(images/homeicons.gif) no-repeat;
}

#services ol li.design{
background-position:0px -460px;
}</code></pre><p>And as you can see the size and http requests are reduced considerably.</p><div
class="blog-img"><img
src="http://www.leemunroe.com/wp-content/uploads/sprites.gif" alt="Sprites" border="0" width="540" height="250" /></div><h4>2. Use an external CDN</h4><p>A CDN is a content delivery network and it basically means <strong>use scripts that are hosted on other sites</strong>. Why? Because users might not have to download the script when they visit your site as it&#8217;s already cached.</p><p>Google has an <a
href="http://code.google.com/apis/ajaxlibs/documentation/index.html">AJAX Libraries API</a> that you can use.</p><pre><code>&lt;script src="http://ajax.googleapis.com/ajax/libs/prototype/1.6.0.3/prototype.js" type="text/javascript"&gt;&lt;/script&gt;</code></pre><h4>3. Install YSlow</h4><p>YSlow is a very <strong>useful optimisation tool for Firefox</strong>. YSlow will report on any page you load up and will give you information about the amount of HTTP requests, CDNs used, CSS and JS compression and will give you a grade for each and tell you how to improve the page so it loads quicker.</p><ul><li>First you need to <a
href="https://addons.mozilla.org/en-US/firefox/addon/1843">install Firebug</a>. YSlow runs alongside this add-on.</li><li>Now <a
href="https://addons.mozilla.org/en-US/firefox/addon/5369">install YSlow</a>.</li><li><a
href="http://developer.yahoo.net/blog/archives/2007/08/yslow-podcast-screencast.html">Watch this screencast</a> on how to use YSlow</li></ul><div
class="blog-img"><img
src="http://www.leemunroe.com/wp-content/uploads/yslow.gif" alt="YSlow" border="0" width="409" height="201" /></div><h4>4. Put JavaScript at the bottom</h4><p>Put any JS requests that you can at the bottom of your code, <strong>allowing your content to load first</strong>. This includes any <strong>Twitter</strong> or <strong>Analytics</strong> requests. This way your site content can load before trying to load external JS files.</p><h4>5. Optimise graphics for web</h4><p><strong>Save your images for the web in Photoshop</strong> and you can alter the image quality, reducing the file size considerably. Of course I&#8217;d like to think you were doing this already ;-)</p><p>In Photoshop, File &gt; Save for web &amp; devices</p><div
class="blog-img"><img
src="http://www.leemunroe.com/wp-content/uploads/saveforweb.jpg" alt="Save for web" border="0" width="540" height="200" /></div><h4>More tips</h4><ul><li>Cache your pages &#8211; <a
href="http://wordpress.org/extend/plugins/wp-cache/installation/">WordPress cache plugin</a></li><li>Make sure all your Javascript and CSS is external (not inline)</li><li><a
href="http://www.cssdrive.com/index.php/main/csscompressor/">Compress your CSS</a></li><li><a
href="http://javascriptcompressor.com/">Compress your Javascript</a></li></ul><p><strong><em>How else can you optimise your website?</em></strong></p> ]]></content:encoded> <wfw:commentRss>http://www.leemunroe.com/optimise-website/feed/</wfw:commentRss> <slash:comments>27</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: basic (User agent is rejected)
Database Caching 20/30 queries in 0.531 seconds using disk: basic

Served from: www.leemunroe.com @ 2012-02-04 04:05:56 -->
