<?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; css3</title> <atom:link href="http://www.leemunroe.com/tags/css3/feed/" rel="self" type="application/rss+xml" /><link>http://www.leemunroe.com</link> <description>User Experience and Web Interface Designer Lee Munroe</description> <lastBuildDate>Thu, 09 Feb 2012 02:44:16 +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>Experimenting with responsive web design</title><link>http://www.leemunroe.com/responsive-design/</link> <comments>http://www.leemunroe.com/responsive-design/#comments</comments> <pubDate>Wed, 13 Apr 2011 09:08:07 +0000</pubDate> <dc:creator>Lee</dc:creator> <category><![CDATA[Web Design]]></category> <category><![CDATA[css3]]></category> <category><![CDATA[fluid]]></category> <category><![CDATA[ipad]]></category> <category><![CDATA[iphone]]></category> <category><![CDATA[media-queries]]></category> <category><![CDATA[responsive]]></category><guid
isPermaLink="false">http://www.leemunroe.com/?p=2354</guid> <description><![CDATA[More and more businesses, web apps and designers are offering up multiple versions of their websites depending on the device and resolution the user is using. Last week I did&#8230;<html><body><h1>400 Bad request</h1> Your browser sent an invalid request.</body></html> ]]></description> <content:encoded><![CDATA[<p>More and more businesses, web apps and designers are offering up <strong>multiple versions of their websites</strong> depending on the <strong>device and resolution the user</strong> is using. Last week I did a bit of tweaking to my own website and one of the things I wanted to look at was <strong>responsive design</strong>.</p><p>I simply wanted to <strong>offer an iPhone version of the website so iPhone users would see an iPhone friendly view</strong> of the website and blog articles, but using the same HTML/CSS and content (i.e. not serving up a separate mobile website).</p><p>It&#8217;s surprisingly simple.</p><h4>What is responsive design?</h4><blockquote
cite="http://www.lukew.com/ff/entry.asp?1258"><p>Responsive design allows you to fill in the blanks within devices classes through the application of fluid grids, flexible images, and (where possible) media queries.</p></blockquote><p>&mdash; <a
href="http://www.lukew.com/ff/entry.asp?1258">Luke Wroblewski</a></p><p>As Luke outlines above, it&#8217;s about <strong>using up the space that is available, on the device the user is using</strong>, most effectively.</p><p>So a user using an iPad may be served a different view of the website as to that of a user using an iPhone (or desktop, or netbook or some super duper Nasa sized resolution).</p><h4>Using CSS media queries</h4><p>With a <strong>CSS media query we can target different screen resolutions</strong> with different styles.</p><p>Place this in your <strong>CSS</strong> stylesheet:</p><pre><code>@media only screen and (max-width: 480px) {
	/* Mobile styles go here */
	body{width:100%;}
	img{max-width:100%;}
}</code></pre><p><em>The styles above are just examples. Remember to enter your own CSS.</em></p><p>Then place this in your HTML <strong>header</strong> to ensure the iPhone doesn&#8217;t automatically scale down the full page:</p><pre><code>&lt;meta name="viewport" content="width=device-width, initial-scale=1"/&gt;</code></pre><p>Simples.</p><p>Things I changed for iPhone/smartphone view:</p><ol><li><strong>Max-width</strong> of the overall container</li><li>Made the grid <strong>1 column</strong></li><li>Adjusted the <strong>font size</strong> for headings</li><li>Adjusted navigation positioning</li><li>Gave images a <strong>max-width</strong></li><li>Hid a couple of things that weren&#8217;t important</li></ol><p>And the result:</p><div
style="text-align:center;"><img
src="http://www.leemunroe.com/wp-content/uploads/beforeafter.jpg" alt="beforeafter.jpg" border="0" width="500" height="510" /></div><h4>Examples of responsive designs in use</h4><h5><a
href="http://2011.buildconf.com/">Build</a></h5><div
style="text-align:center;"><a
href="http://2011.buildconf.com/"><img
src="http://www.leemunroe.com/wp-content/uploads/build.jpg" alt="build.jpg" border="0" width="240" height="477" /></a></div><h5><a
href="http://colly.com/">Simon Collison</a></h5><div
style="text-align:center;"><a
href="http://colly.com/"><img
src="http://www.leemunroe.com/wp-content/uploads/colly.jpg" alt="colly.jpg" border="0" width="240" height="499" /></a></div><h5><a
href="http://lanyrd.com/">Lanyrd</a></h5><div
style="text-align:center;"><a
href="http://lanyrd.com/"><img
src="http://www.leemunroe.com/wp-content/uploads/lanyrd.jpg" alt="lanyrd.jpg" border="0" width="240" height="500" /></a></div><h5><a
href="http://2011.uxlondon.com/">UX London</a></h5><div
style="text-align:center;"><a
href="http://2011.uxlondon.com/"><img
src="http://www.leemunroe.com/wp-content/uploads/ux1.jpg" alt="ux.jpg" border="0" width="240" height="485" /></a></div><blockquote
cite="http://stuffandnonsense.co.uk/blog/about/i_dont_care_about_responsive_web_design/"><p>Today, anything that’s fixed and unresponsive isn’t web design, it’s something else. If you don’t embrace the inherent fluidity of the web, you’re not a web designer, you’re something else.</p><p>Web design is responsive design, Responsive Web Design is web design, done right.</p></blockquote><p>&mdash; <a
href="http://stuffandnonsense.co.uk/blog/about/i_dont_care_about_responsive_web_design/">Andy Clarke</a></p><h4>Have you made any of your sites responsive?</h4><p>Let us know below so we can check them out.</p><h4>Further reading</h4><ul><li><a
href="http://www.alistapart.com/articles/responsive-web-design/">Responsive Web Design</a> by Ethan Marcotte</li><li><a
href="http://mediaqueri.es/">Media Queries</a> &#8211; showcase of responsive websites</li><li><a
href="http://www.smashingmagazine.com/2011/01/12/guidelines-for-responsive-web-design/">Guidelines for Responsive Design</a></li></ul> ]]></content:encoded> <wfw:commentRss>http://www.leemunroe.com/responsive-design/feed/</wfw:commentRss> <slash:comments>20</slash:comments> </item> <item><title>Are you an HTML5 web designer?</title><link>http://www.leemunroe.com/html5-web-designer/</link> <comments>http://www.leemunroe.com/html5-web-designer/#comments</comments> <pubDate>Tue, 29 Mar 2011 09:01:10 +0000</pubDate> <dc:creator>Lee</dc:creator> <category><![CDATA[Web Design]]></category> <category><![CDATA[css3]]></category> <category><![CDATA[development]]></category> <category><![CDATA[Front-End]]></category> <category><![CDATA[html]]></category> <category><![CDATA[html5]]></category> <category><![CDATA[markup]]></category><guid
isPermaLink="false">http://www.leemunroe.com/?p=2300</guid> <description><![CDATA[HTML5 is quite the buzzword at the minute. A lot of designers and front-end developers will now say &#8220;I use HTML5 and CSS3&#8243; rather than just good olde &#8220;HTML and&#8230;]]></description> <content:encoded><![CDATA[<p>HTML5 is quite the buzzword at the minute. A lot of designers and front-end developers will now say <strong>&#8220;I use HTML5 and CSS3&#8243;</strong> rather than just good olde &#8220;HTML and CSS&#8221; (I&#8217;m one of them, depending on the context).</p><p>At some point the HTML5 fad will die and <strong>we&#8217;ll go back to saying HTML</strong> (did you ever say you used HTML 4.01?) but until then we&#8217;ll throw the HTML5 buzz word around a bit more.</p><p><strong>But what does it actually mean to say you use HTML5?</strong></p><p><span
id="more-2300"></span></p><p>I see HTML5 being broken down into 5 different levels.</p><h4>1. Doctype</h4><p>Technically if you use an <strong>HTML5 doctype declaration</strong>, you&#8217;re using HTML5.</p><p>Along with your doctype you can <strong>tidy up the rest of your head</strong> like so.</p><pre><code>&lt;!doctype html&gt;
&lt;html lang="en"&gt;
&lt;head&gt;
&lt;meta charset="utf-8"&gt;
&lt;link rel="stylesheet" href="style.css"&gt;
&lt;script src="script.js"&gt;&lt;/script&gt;
...</code></pre><p>This is simple stuff, and you usually have this <strong>saved in some sort of template</strong>.</p><h4>2. Forms</h4><p>The next level of HTML5 is adding some niceness to forms.</p><p><strong>Validation, place holders, calendars, input types</strong> can all be declared with HTML5 and in most cases all that is needed is dropping in an extra attribute to your already existent XHTML forms.</p><pre><code>&lt;input type="search" id="keywords" name="keywords" placeholder="Search our site" autofocus&gt;</code></pre><h4>3. Layout and elements</h3><p>We get a bit more advanced now with layout. HTML5 has introduced several new block elements for marking up your layout including <strong>header, footer, article, aside, section, figure</strong>.</p><pre><code>&lt;header&gt;
&lt;h1&gt;Heading goes here&lt;/h1&gt;
&lt;/header&gt;
&lt;article&gt;
&lt;section&gt;
&lt;h2&gt;Something in here&lt;/h2&gt;
&lt;/section&gt;
&lt;section&gt;
&lt;h2&gt;Something else in here&lt;/h2&gt;
&lt;/section&gt;
&lt;/article&gt;
&lt;aside&gt;
&lt;p&gt;Something to accompany your article here&lt;/p&gt;
&lt;/aside&gt;
&lt;footer&gt;
&lt;p&gt;Copyright 2011&lt;/p&gt;
&lt;/footer&gt;</code></pre><p>For these new block elements to work across all browsers, <strong>make sure you declare them as block level elements and use the HTML shiv script for IE compatibility</strong>.</p><p>Include this in your head:</p><pre><code>&lt;!--[if lt IE 9]&gt; 
&lt;script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"&gt; &lt;/script&gt; 
&lt;![endif]--&gt;</code></pre><p>And this in your stylesheet:</p><pre><code>header,footer,nav,article,aside,section,figure,figcaption,hgroup,audio,video{
display:block;
}</code></pre><h4>4. Video and audio</h4><p>There&#8217;s a good chance most of you have looked at levels 1 to 3 as most projects require markup, layouts and forms but not all require video and audio.</p><p><strong>No longer do you need to embed video and audio into Flash</strong>. They now have their own elements and controls you can customise in HTML5.</p><pre><code>&lt;video src="video.mp4" controls width="640" height="360" poster="video.jpg"&gt;&lt;/video&gt;</code></pre><h4>5. Advanced features and Javascript</h4><p>I&#8217;ve called level 5 advanced features as we&#8217;re now diving into Javascript.</p><p>Most of the blog articles and books I&#8217;ve read on HTML5 cover the 4 levels above but brush over these advanced features, most likely because <strong>they deserve full books dedicated to the topic</strong> and are more developer than designer related.</p><p>These features include:</p><ul><li>Canvas</li><li>Local/offline storage</li><li>Geolocation</li></ul><h4>How much HTML5 are you using?</h4><p>To date I&#8217;ve only been using levels 1 to 3 myself. I&#8217;ve yet to have an excuse or reason to delve any further.</p><p><strong><em>Are you using HTML5? Have you looked at any of the advanced HTML5 features mentioned above?</em></strong></p><h4>Further reading</h4><ul><li><a
href="http://diveintohtml5.org/">Dive into HTML5</a> by Mark Pilgrim</li><li><a
href="http://html5doctor.com/">HTML5 doctor</a></li><li><a
href="http://fivesimplesteps.com/books/hardboiled-web-design">Hard Boiled Web Design</a> by Andy Clarke</li><li><a
href="http://www.abookapart.com/products/html5-for-web-designers">HTML5 for Web Designers</a> by Jeremy Keith</li></ul> ]]></content:encoded> <wfw:commentRss>http://www.leemunroe.com/html5-web-designer/feed/</wfw:commentRss> <slash:comments>12</slash:comments> </item> <item><title>A quick intro into CSS3 gradients</title><link>http://www.leemunroe.com/css3-gradients/</link> <comments>http://www.leemunroe.com/css3-gradients/#comments</comments> <pubDate>Thu, 28 Oct 2010 09:01:01 +0000</pubDate> <dc:creator>Lee</dc:creator> <category><![CDATA[Web Design]]></category> <category><![CDATA[css3]]></category> <category><![CDATA[gradients]]></category><guid
isPermaLink="false">http://www.leemunroe.com/?p=2119</guid> <description><![CDATA[CSS3 gradients are available to use in Webkit (Safari, Chrome) and Mozilla (Firefox) browsers. They&#8217;re not exactly new but I only recently started using them consistently myself so I&#8217;ve put&#8230;]]></description> <content:encoded><![CDATA[<p>CSS3 gradients are available to use in Webkit (Safari, Chrome) and Mozilla (Firefox) browsers. They&#8217;re not exactly new but I only recently started using them consistently myself so I&#8217;ve put together this quick article.</p><p><span
id="more-2119"></span></p><p>FYI this isn&#8217;t the holy grail of CSS3 gradients, it&#8217;s more of a reminder for me or quick getting started guide.</p><h4>Why use CSS3 gradients instead of images?</h4><ol><li>Gives you more flexibility</li><li>Less hassle</li><li>Fewer http requests</li><li>Scalable</li></ol><h4>The syntax</h4><h5>W3C</h5><pre><code>linear-gradient( [&lt;point&gt; || &lt;angle&gt;,]? &lt;stop&gt;, &lt;stop&gt; [, &lt;stop&gt;]* )

radial-gradient( [&lt;position&gt; || &lt;angle&gt;,]? [&lt;shape&gt; || &lt;size&gt;,]? &lt;stop&gt;, &lt;stop&gt;[, &lt;stop&gt;]* )</code></pre><h5>Mozilla (Firefox)</h5><p>Same as W3C (but with -moz-)</p><pre><code>-moz-linear-gradient( [&lt;point&gt; || &lt;angle&gt;,]? &lt;stop&gt;, &lt;stop&gt; [, &lt;stop&gt;]* )

-moz-radial-gradient( [&lt;position&gt; || &lt;angle&gt;,]? [&lt;shape&gt; || &lt;size&gt;,]? &lt;stop&gt;, &lt;stop&gt;[, &lt;stop&gt;]* )</code></pre><h5>WebKit (Safari, Chrome)</h5><p>Bit different.</p><pre><code>-webkit-gradient(&lt;type&gt;, &lt;point&gt; [, &lt;radius&gt;]?, &lt;point&gt; [, &lt;radius&gt;]? [, &lt;stop&gt;]*)</code></pre><p>Confused yet? Instead of trying to explain what everything means I&#8217;m just going to show you some <strong><em>very simple</em></strong> examples.</p><h4>CSS3 gradient examples</h4><h5>Linear background gradient</h5><pre><code>html{
  height:100%;
}
body{
  background-color:#440951;
  background-image: -moz-linear-gradient(top, #b032cb, #440951);
  background-image: -webkit-gradient(linear, left top,left bottom, from(#b032cb), to(#440951));
  background-image: linear-gradient(top, #b032cb, #440951);
}</code></pre><div
style="text-align:center;"><a
href="http://leemunroe.com/css3/linear.html"><img
src="http://www.leemunroe.com/wp-content/uploads/linear.jpg" alt="linear.jpg" border="0" width="300" height="190" /></a></div><p><a
href="http://leemunroe.com/css3/linear.html">Demo</a></p><h5>Radial background gradient</h5><pre><code>html{
  height:100%;
}
body{
  background-color:#440951;
  background-image: -moz-radial-gradient(center 45deg,circle cover, #b032cb, #440951);
  background-image: -webkit-gradient(radial, 50% 50%, 0, 50% 50%,800, from(#b032cb), to(#440951));
  background-image: radial-gradient(center 45deg,circle cover, #b032cb, #440951);
}</code></pre><div
style="text-align:center;"><a
href="http://leemunroe.com/css3/radial.html"><img
src="http://www.leemunroe.com/wp-content/uploads/radial.jpg" alt="radial.jpg" border="0" width="300" height="180" /></a></div><p><a
href="http://leemunroe.com/css3/radial.html">Demo</a></p><h5>Body background height problem</h5><p>Seems that gradients don&#8217;t stretch the whole height of the browser window unless you declare the html height. Therefore this is needed:</p><pre><code>html{height:100%}</code></pre><h4>But it doesn&#8217;t work in Internet Explorer!</h4><p>That&#8217;s why we have a fall back value in for the background-color <a
href="http://dowebsitesneedtolookexactlythesameineverybrowser.com/">which should be enough</a> although you can always use an image if you like.</p><p><strong><em>Have you started using CSS3 gradients yet?</em></strong></p><h4>Further reading on CSS3 gradients</h4><ul><li><a
href="http://css-tricks.com/css3-gradients/">CSS3 Gradients</a></li><li><a
href="http://webkit.org/blog/175/introducing-css-gradients/">WebKit Gradients</a></li><li><a
href="https://developer.mozilla.org/en/CSS/-moz-radial-gradient">Mozilla Radial Gradients</a></li><li><a
href="https://developer.mozilla.org/en/CSS/-moz-linear-gradient">Mozilla Linear Gradients</a></li></ul> ]]></content:encoded> <wfw:commentRss>http://www.leemunroe.com/css3-gradients/feed/</wfw:commentRss> <slash:comments>23</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>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> </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.235 seconds using disk: basic

Served from: www.leemunroe.com @ 2012-02-09 13:17:10 -->
