<?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>Webmonkey &#187; CSS</title>
    <atom:link href="http://www.webmonkey.com/category/css/feed/" rel="self" type="application/rss+xml" />
    <link>http://www.webmonkey.com</link>
    <description>The Web Developer&#039;s Resource</description>
    <lastBuildDate>Fri, 05 Apr 2013 20:20:46 +0000</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <generator>http://wordpress.org/?v=3.4.2</generator>
    
    <item>
        <title>The Future of CSS: Flexbox Is a Game Changer</title>
        <link>http://www.webmonkey.com/2013/04/the-future-of-css-flexbox-is-a-game-changer/</link>
        <comments>http://www.webmonkey.com/2013/04/the-future-of-css-flexbox-is-a-game-changer/#comments</comments>
        <pubDate>Mon, 01 Apr 2013 16:35:26 +0000</pubDate>

                <dc:creator>Scott Gilbertson</dc:creator>

        <guid isPermaLink="false">http://www.webmonkey.com/?p=61445</guid>
        		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web Basics]]></category>
		<category><![CDATA[Web Standards]]></category>
		<category><![CDATA[Flexbox]]></category>
            <enclosure url="http://www.webmonkey.com/wp-content/uploads/2013/04/flexboxex-200x100.jpg" type="image/jpeg" length="48000" />
                    <description><![CDATA[<div class="rss_thumbnail"><img src="http://www.webmonkey.com/wp-content/uploads/2013/04/flexboxex.jpg" alt="The Future of CSS: Flexbox Is a Game Changer" /></div>It might be a little early to throw away your CSS floats, but thanks to the new CSS Flexible Box Model -- better known as Flexbox -- simple, sane layout tools will soon be part of your web development arsenal. Browser support isn't complete yet, but for those who'd like to push the envelope, Flexbox already works in three major browsers, with more coming soon.]]></description>

            <content:encoded><![CDATA[<p><!-- wpautop enabled -->
<p><div id="attachment_61447" class="wp-caption aligncenter" style="width: 590px"><a href="http://www.webmonkey.com/wp-content/uploads/2013/04/flexboxex.jpg"><img src="http://www.webmonkey.com/wp-content/uploads/2013/04/flexboxex.jpg" alt="" title="flexboxex" width="580" height="311" class="size-full wp-image-61447" /></a><p class="wp-caption-text">Look Ma, no floats! <em>Image: <a href="https://www.adobe.com/devnet/html5/articles/working-with-flexbox-the-new-spec.html">Abobe</a></em></p></div>HTML5 and CSS 3 offer web developers new semantic tags, native animation tools, server-side fonts and much more, but that’s not the end of the story. In fact, for developers slogging away in the web design trenches, one of the most promising parts of CSS 3 is still just over the horizon &#8212; true page layout tools.</p>
<p>While it&#8217;s possible to create amazingly complex layouts using tools like CSS floats, positioning rules and the odd bit of JavaScript, none of those tools were actually created explicitly for laying out content, which is why it&#8217;s amazingly complex to get them working the way you want across browsers. </p>
<p>Soon, however, you&#8217;ll be able to throw out your floats and <a href="http://www.webmonkey.com/2011/03/the-future-of-css-finally-sane-layout-tools/">embrace a better way</a> &#8212; the <a href="http://www.w3.org/TR/css3-flexbox/">CSS Flexible Box Model</a>, better known as simply Flexbox. Flexbox enables you to create complex layouts with only a few lines of code &#8212; no more floats and <a href="http://nicolasgallagher.com/micro-clearfix-hack/">&#8220;clearfix&#8221; hacks</a>.</p>
<p>Perhaps even more powerful &#8212; especially for those building responsive websites &#8212; the Flexbox <code>order</code> property allows you to create layouts completely independent of the HTML source order. Want the footer at the top of the page for some reason? No problem, just set your footer CSS to <code>order: 1;</code>. Flexbox also makes it possible to do vertical centering. Finally.</p>
<p>We&#8217;ve <a href="http://www.webmonkey.com/2011/03/the-future-of-css-finally-sane-layout-tools/">looked at Flexbox in the past</a>, but, unfortunately the spec has undergone a serious re-write since then, which renders older code obsolete. If you&#8217;d like to get up to speed with the new syntax, the Adobe Developer Blog recently published a guide to <a href="https://www.adobe.com/devnet/html5/articles/working-with-flexbox-the-new-spec.html">working with Flexbox</a> by developer Steven Bradley.</p>
<p>Bradley walks through the process of using Flexbox in both mobile and desktop layouts, rearranging source order and elements to get both layouts working with a fraction of the code it would take to do the same using floats and other, older layout tools. The best way to wrap your head around Flexbox is to see it in action, so be sure to follow the links to Bradley&#8217;s demo page using either Chrome, Opera or Firefox 20+.</p>
<p>For some it may still be too early to use Flexbox. <a href="http://caniuse.com/flexbox">Browser support is improving</a>, but obviously older browsers will never support Flexbox, so bear that in mind. Opera 12 supports the new syntax, no prefix necessary. Chrome supports the new syntax, but needs the <code>-webkit</code> prefix. Like Opera, <strike>Firefox 20+</strike> Firefox 22 supports the unprefixed version of the new spec. Prior to v22 (currently in the beta channel), Firefox supports the old syntax. IE 10 supports the older Flexbox syntax. Most mobile browsers support the older syntax, though that is starting to change. [<b>Update:</b> Mozilla developer Daniel Holbert, who is working on the Flexbox code in Firefox, wrote to let me know that the Flexbox support has been pushed back to Firefox 22. Actually the new Flexbox syntax is part of Firefox 20 and up, but until v22 arrives it's disabled by default. You can turn it on by heading to <code>about:config</code> and searching for <code>layout.css.flexbox.enabled</code> pref. Set it to true and the modern syntax will work.]</p>
<p>So, as of this writing, only two web browsers really support the new Flexbox syntax, though Firefox will make that three in the next month or so. </p>
<p>But there is a way to work around some of the issues. First off, check out Chris Coyier&#8217;s article on <a href="http://css-tricks.com/using-flexbox/">mixing the old and new syntaxes</a> to get the widest possible browser support. Coyier&#8217;s methods will get your Flexbox layouts working in pretty much everything but IE 9 and below. </p>
<p>If you&#8217;re working on a personal site that might be okay &#8212; IE 9 and below would just get a simplified, linear layout. Or you could serve an extra stylesheet with some floats to older versions of IE (or use targeted CSS classes if you prefer). That defeats some of the benefits of Flexbox since you&#8217;ll be writing floats and the like for IE, but when usage drops off you can just dump that code and help move your site, and the web, forward.</p>
<div id='linker_widget' class='contextly-widget'></div>]]></content:encoded>
            <wfw:commentRss>http://www.webmonkey.com/2013/04/the-future-of-css-flexbox-is-a-game-changer/feed/</wfw:commentRss>
        <slash:comments>0</slash:comments>

        
    </item>
    
    <item>
        <title>Resizing Responsive Designs with CSS REMs</title>
        <link>http://www.webmonkey.com/2013/03/resizing-responsive-designs-with-css-rems/</link>
        <comments>http://www.webmonkey.com/2013/03/resizing-responsive-designs-with-css-rems/#comments</comments>
        <pubDate>Wed, 27 Mar 2013 19:27:27 +0000</pubDate>

                <dc:creator>Scott Gilbertson</dc:creator>

        <guid isPermaLink="false">http://www.webmonkey.com/?p=61418</guid>
        		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Responsive Design]]></category>
		<category><![CDATA[responsive design]]></category>
        <description><![CDATA[Responsive, flexible designs can make for complicated resizing -- after all there are a lot of elements on a page and scaling them all for different screen sizes isn't easy. But there's another way to achieve flexibility that doesn't involve keeping track of ems or percentages -- the new CSS REM unit.]]></description>

            <content:encoded><![CDATA[<p><!-- wpautop enabled -->
<p><div id="attachment_54241" class="wp-caption alignleft" style="width: 310px"><img src="http://www.webmonkey.com/wp-content/uploads/2012/02/tablets.jpg" alt="" title="tablets" width="300" height="224" class="size-full wp-image-54241" /><p class="wp-caption-text">Photo: Ariel Zambelich/Wired.com</p></div>Building responsive websites means that your design has to adapt to different screen sizes. We&#8217;ve covered a number of ways to do that in the past, including working with percentage widths, em-based type and other flexible techniques of responsive design. </p>
<p>There&#8217;s another way to achieve flexibility that doesn&#8217;t involve keeping track of ems or percentages &#8212; the new CSS REM unit. REMs are just like ems &#8212; REM stands for <em>Root Em</em> &#8212; but instead of being relative to the parent element like Ems, REMs are relative to the document root&#8217;s font size. Most of the time that means the html element. </p>
<p>We&#8217;ve previously looked at REMs as a way to <a href="http://www.webmonkey.com/2012/02/responsive-design-tricks-fluid-typography-with-css-3/">achieve fluid typography</a>, but REMs can help with more than just type sizing. </p>
<p>Mobify&#8217;s Roman Rudenko has an <a href="http://css-tricks.com/theres-more-to-the-css-rem-unit-than-font-sizing/">article on CSS-Tricks</a> that shows how to use REM units to scale specific page elements while leaving others unaffected. Rudenko even shows how you can use REM units as a replacement for the very powerful, but not very well supported, <a href="http://dev.w3.org/csswg/css3-values/#viewport-relative-lengths">viewport width unit</a>.</p>
<p>For those wondering why you might want to resize some elements and not others, here&#8217;s Rudenko&#8217;s use case:</p>
<blockquote>
<p>This style of sizing can be useful for user-driven customization, or to adapt layouts for cases that require secondary elements to be more touchable (tablet) or visible (TV). Without REM, every adjustable element would have to be resized separately.</p>
</blockquote>
<p>This technique can be applied to whole pages as well. For example, if your type is all sized in REMs and you want it to be a bit larger as screen sizes get bigger, all you need to do is adjust the font size on the html element with each media query and all your REM-sized type will get bigger based on that single line of code.</p>
<p>For more on REMs and what you can do with them be sure to check out <a href="http://css-tricks.com/theres-more-to-the-css-rem-unit-than-font-sizing/">Rudenko&#8217;s post</a> and our <a href="http://www.webmonkey.com/2012/02/responsive-design-tricks-fluid-typography-with-css-3/">earlier write up</a>.</p>
<div id='linker_widget' class='contextly-widget'></div>]]></content:encoded>
            <wfw:commentRss>http://www.webmonkey.com/2013/03/resizing-responsive-designs-with-css-rems/feed/</wfw:commentRss>
        <slash:comments>0</slash:comments>

        
    </item>
    
    <item>
        <title>Simplify Responsive Design With ZURB&#8217;s &#8216;Foundation&#8217; Web Toolkit</title>
        <link>http://www.webmonkey.com/2013/03/simplify-responsive-design-with-zurbs-foundation-web-toolkit/</link>
        <comments>http://www.webmonkey.com/2013/03/simplify-responsive-design-with-zurbs-foundation-web-toolkit/#comments</comments>
        <pubDate>Thu, 07 Mar 2013 14:39:36 +0000</pubDate>

                <dc:creator>Scott Gilbertson</dc:creator>

        <guid isPermaLink="false">http://www.webmonkey.com/?p=61187</guid>
        		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[UI/UX]]></category>
		<category><![CDATA[Visual Design]]></category>
		<category><![CDATA[Frameworks]]></category>
            <enclosure url="http://www.webmonkey.com/wp-content/uploads/2013/03/foundation4-200x100.jpg" type="image/jpeg" length="48000" />
                    <description><![CDATA[<div class="rss_thumbnail"><img src="http://www.webmonkey.com/wp-content/uploads/2013/03/foundation4.jpg" alt="Simplify Responsive Design With ZURB&#8217;s &#8216;Foundation&#8217; Web Toolkit" /></div>Want to speed up the sometimes complicated process of responsive web design? Web development frameworks like ZURB's popular Foundation toolkit can help. The just-released Foundation 4 takes a mobile-first approach and uses SASS for more semantic code.]]></description>

            <content:encoded><![CDATA[<p><!-- wpautop enabled --><div id="attachment_61189" class="wp-caption alignnone" style="width: 590px"><a href="http://www.webmonkey.com/wp-content/uploads/2013/03/foundation4.jpg"><img src="http://www.webmonkey.com/wp-content/uploads/2013/03/foundation4.jpg" alt="" title="foundation4" width="580" height="358" class="size-full wp-image-61189" /></a><p class="wp-caption-text">Foundation 4. <em>Image: Screenshot/Webmonkey</em>.</p></div></p>
<p>ZURB has released a major new version of its popular <a href="http://foundation.zurb.com/">Foundation framework</a>, a web development toolkit for quickly building responsive websites. The new Foundation v4 is a ground-up re-write that sees ZURB taking a mobile-first approach.</p>
<p>Like its erstwhile competitor <a href="http://www.webmonkey.com/2012/10/bootstrap-framework-plans-to-give-twitter-the-boot/">Bootstrap</a>, Foundation offers a set of HTML and CSS building blocks you can use to quickly develop basic site structure and design &#8212; layouts, typography, forms and other common design elements are all available.</p>
<p>There are three ways you can <a href="http://foundation.zurb.com/">try out Foundation 4</a>. You can download the straight compressed CSS and use that as a starting point for your own customizations. Alternately you can customize your build of Foundation, including only the elements you need; or you can install the <a href="http://sass-lang.com/">SASS</a> version of Foundation and customize it within your SASS code.</p>
<p>If you&#8217;re upgrading from Foundation 3 be sure to read through <a href="http://foundation.zurb.com/migration.php">ZURB&#8217;s migration guide</a> as the syntax for the grid and other elements has changed.</p>
<p>The real power of Foundation 4 doesn&#8217;t really come into play unless you go with the SASS option. Thanks to SASS&#8217;s &#8220;<a href="http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#mixins">mixins</a>&#8221; concept you can now use the grid tools in Foundation 4 without littering your HTML with the various (purely presentational) grid class names. Using Foundation 4 within your SASS project also makes it dead simple to use only the components you need, for example, you can include the grid mixins, but skip the typography if it&#8217;s not to your liking.</p>
<p>Be aware that the new mobile-first approach in Foundation 4 means browsers which don&#8217;t support media queries will only get very basic styling for the grid and other UI elements. Yes, that pretty much only affects IE 8. But, if your project needs more robust support for IE 8, there is a <a href="http://foundation.zurb.com/migration.php">modified version of Foundation 4</a> with support for IE 8 (alternately, you could stick with Foundation 3).</p>
<p>It&#8217;s also worth noting that, because Foundation 4 is such a departure from the previous version, ZURB plans to continue supporting Foundation 3 for some time. </p>
<p>If you&#8217;ve got questions about Foundation 4, head on over to the official site and check out the <a href="http://foundation.zurb.com/docs/">documentation.</a> You can also <a href="https://github.com/zurb/foundation/">explore the code on GitHub</a> &#8212; Foundation is one of the top 20 most-starred projects on the site.</p>
<div id='linker_widget' class='contextly-widget'></div>]]></content:encoded>
            <wfw:commentRss>http://www.webmonkey.com/2013/03/simplify-responsive-design-with-zurbs-foundation-web-toolkit/feed/</wfw:commentRss>
        <slash:comments>0</slash:comments>

        
    </item>
    
    <item>
        <title>Adobe Proposes New Standard for Better Web Typography</title>
        <link>http://www.webmonkey.com/2013/02/adobe-proposes-new-standard-for-better-web-typography/</link>
        <comments>http://www.webmonkey.com/2013/02/adobe-proposes-new-standard-for-better-web-typography/#comments</comments>
        <pubDate>Mon, 11 Feb 2013 16:06:19 +0000</pubDate>

                <dc:creator>Scott Gilbertson</dc:creator>

        <guid isPermaLink="false">http://www.webmonkey.com/?p=60869</guid>
        		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web Basics]]></category>
            <enclosure url="http://www.webmonkey.com/wp-content/uploads/2013/02/textbalancedemo-200x100.jpg" type="image/jpeg" length="48000" />
                    <description><![CDATA[<div class="rss_thumbnail"><img src="http://www.webmonkey.com/wp-content/uploads/2013/02/textbalancedemo.jpg" alt="Adobe Proposes New Standard for Better Web Typography" /></div>Adobe wants to help web developers create a more readable web with a new proposal to "balance" text. If accepted as a standard Adobe's text-balance rule would help eliminate typographic unsightliness -- like widows, orphans and ragged lines -- from the web, making text easier on the eyes.]]></description>

            <content:encoded><![CDATA[<p><!-- wpautop enabled --><div id="attachment_60871" class="wp-caption aligncenter" style="width: 590px"><a href="http://www.webmonkey.com/wp-content/uploads/2013/02/textbalancedemolg.jpg"><img src="http://www.webmonkey.com/wp-content/uploads/2013/02/textbalancedemo.jpg" alt="" title="textbalancedemo" width="580" height="298" class="size-full wp-image-60871" /></a><p class="wp-caption-text">Adobe&#8217;s proposed text-balance rule (right) versus no balancing (left). <em>Image: Screenshot/Webmonkey</em>.</p></div></p>
<p>Adobe is continuing its effort to bring better typography to the web with a new proposal for what the company is calling &#8220;Automatic Text Balancing.&#8221; If browsers adopt text balancing it could mean the end of typographic unsightliness like <a href="https://en.wikipedia.org/wiki/Widows_and_orphans">widows, orphans</a> and ragged lines, and would go a long way to creating more readable text on the web.</p>
<p>Adobe&#8217;s proposal is based on Adobe InDesign&#8217;s &#8220;<a href="http://help.adobe.com/en_US/indesign/cs/using/WS3EE260F6-825E-4ee5-B33D-9A14C7F7534Ba.html#WSa285fff53dea4f8617383751001ea8cb3f-6dc8a">Balance Ragged Lines</a>&#8221; feature, and works a bit like justifying text except that instead of expanding text with ugly spaces between words, the algorithm would adjust line lengths to &#8220;balance&#8221; text for easier reading.</p>
<p>Adobe&#8217;s Randy Edmunds outlines <a href="https://blogs.adobe.com/webplatform/2013/01/30/balancing-text-for-better-readability/">the basic idea behind automatic text balancing</a> on the company&#8217;s Web Platform Blog. Essentially text balancing would mean eliminating widows (single words pushed to a new line), and also automatically presenting text so that it&#8217;s even wrapped instead of a long line followed by a shorter line.</p>
<p>Here&#8217;s how Edmunds and Adobe see text balance working:</p>
<blockquote><p>I propose we use a text rendering algorithm that would be applied by browser when asked by the designer to do so to automatically balance text across multiple lines, like so:</p>
<pre class="brush: js">
h1 {
  text-wrap: balance;
  }
</pre>
<p>This would make all h1 elements whenever they span more than one line to be automatically rendered such that they have balanced text. As you notice, I only propose an additional value to the existing text-wrap property of CSS.</p>
</blockquote>
<p>If accepted by the W3C, Adobe&#8217;s text balance proposal would add a new <code>balance</code> value to the proposed CSS <a href="http://dev.w3.org/csswg/css4-text/#wrapping"><code>text-wrap</code></a> rule. The text-wrap property was originally part of the CSS 3 spec, but has since been removed and remains in flux. </p>
<p>Adobe has already created a jQuery plugin polyfill that implements the <a href="http://adobe-webplatform.github.com/balance-text/proposal/index.html">proposed text balance algorithm</a>. You can <a href="https://github.com/adobe-webplatform/balance-text">grab the code from GitHub</a>. There&#8217;s also a sample page where you can <a href="http://adobe-webplatform.github.com/balance-text/demo/index.html">see the jQuery text balancing in action</a>. (Be sure to resize the window to see the reflow difference between balanced and unbalanced text.) There&#8217;s also an <a href="http://lists.w3.org/Archives/Public/www-style/2013Jan/0597.html">ongoing discussion on the CSS WG mailing list</a> if you&#8217;d like to dig into the details.</p>
<div id='linker_widget' class='contextly-widget'></div>]]></content:encoded>
            <wfw:commentRss>http://www.webmonkey.com/2013/02/adobe-proposes-new-standard-for-better-web-typography/feed/</wfw:commentRss>
        <slash:comments>0</slash:comments>

        
    </item>
    
    <item>
        <title>&#8216;Form Follows Function&#8217; Experiments Showcase the Power of HTML5</title>
        <link>http://www.webmonkey.com/2013/01/form-follows-function-experiments-showcase-the-power-of-html5/</link>
        <comments>http://www.webmonkey.com/2013/01/form-follows-function-experiments-showcase-the-power-of-html5/#comments</comments>
        <pubDate>Wed, 16 Jan 2013 20:34:11 +0000</pubDate>

                <dc:creator>Scott Gilbertson</dc:creator>

        <guid isPermaLink="false">http://www.webmonkey.com/?p=60610</guid>
        		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[cool_sites]]></category>
            <enclosure url="http://www.webmonkey.com/wp-content/uploads/2013/01/formfollowsfunction-200x100.jpg" type="image/jpeg" length="48000" />
                    <description><![CDATA[<div class="rss_thumbnail"><img src="http://www.webmonkey.com/wp-content/uploads/2013/01/formfollowsfunction.jpg" alt="&#8216;Form Follows Function&#8217; Experiments Showcase the Power of HTML5" /></div>Form Follows Function is a collection of awesome HTML5 and CSS experiments that will remind you just how far web standards have come in the past few years.]]></description>

            <content:encoded><![CDATA[<p><!-- wpautop enabled --><div id="attachment_60611" class="wp-caption aligncenter" style="width: 590px"><a href="http://www.webmonkey.com/wp-content/uploads/2013/01/formfollowsfunction.jpg"><img src="http://www.webmonkey.com/wp-content/uploads/2013/01/formfollowsfunction.jpg" alt="" title="formfollowsfunction" width="580" height="317" class="size-full wp-image-60611" /></a><p class="wp-caption-text">Form Follows Function. <em>Image: Screenshot</em>.</p></div></p>
<p>If you&#8217;ve been missing the early days of HTML5, back when <a href="http://www.webmonkey.com/2010/08/flashy-html5-experiments-point-to-webs-future/">experimentation</a>, not stolid, functional sites was the name of the game, we&#8217;ve got a site for you: <a href="http://fff.cmiscm.com/#!/main">Form Follows Function</a>.</p>
<p>Form Follows Function is a collection of interactive experiments built using HTML5 elements like Canvas and CSS 3 tools like 2-D/3-D transforms. Experiments include growing trees with the click of the mouse (or touch of a finger, depending on your device), dragging waves and 3-D cans of Campbell&#8217;s soup. Even the rotating menu of the experiments is impressive.</p>
<p>The site is the brainchild of developer Jongmin Kim, whose <a href="http://blog.cmiscm.com/?cat=7">design work</a> has previously garnered a Webby award. </p>
<p>Fun thought experiment: Imagine taking this site back in time, showing it to your 2002 self and then pointing out that it&#8217;s all built with web standards, no Flash involved.</p>
<p>While we really like Form Follows Function it does fall prey to the main reason we don&#8217;t really miss the early days of HTML5 and CSS 3 all that much &#8212; it doesn&#8217;t use CSS prefixes properly. Form Follow Function optimizes for Firefox and Chrome while ignoring Opera and Internet Explorer; a shame, considering how well done the rest of the site is.</p>
<div id='linker_widget' class='contextly-widget'></div>]]></content:encoded>
            <wfw:commentRss>http://www.webmonkey.com/2013/01/form-follows-function-experiments-showcase-the-power-of-html5/feed/</wfw:commentRss>
        <slash:comments>0</slash:comments>

        
    </item>
    
    <item>
        <title>Google Chrome, Now With Cinema-Style 3-D Effects</title>
        <link>http://www.webmonkey.com/2013/01/google-chrome-now-with-cinema-style-3d-effects/</link>
        <comments>http://www.webmonkey.com/2013/01/google-chrome-now-with-cinema-style-3d-effects/#comments</comments>
        <pubDate>Fri, 11 Jan 2013 14:10:23 +0000</pubDate>

                <dc:creator>Scott Gilbertson</dc:creator>

        <guid isPermaLink="false">http://www.webmonkey.com/?p=60534</guid>
        		<category><![CDATA[Browsers]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[chrome]]></category>
            <enclosure url="http://www.webmonkey.com/wp-content/uploads/2013/01/customfilterdemo-200x100.jpg" type="image/jpeg" length="48000" />
                    <description><![CDATA[<div class="rss_thumbnail"><img src="http://www.webmonkey.com/wp-content/uploads/2013/01/customfilterdemo.jpg" alt="Google Chrome, Now With Cinema-Style 3-D Effects" /></div>Google has released a new version of its Chrome web browser with support for CSS custom filters, a still-experimental effort to bring 3D effects to HTML. The feature is disabled by default, but web developers who'd like to start playing with the new tools can turn it on today.]]></description>

            <content:encoded><![CDATA[<p><!-- wpautop enabled -->
<p><div id="attachment_60535" class="wp-caption aligncenter" style="width: 590px"><a href="http://www.webmonkey.com/wp-content/uploads/2013/01/customfilterdemo.jpg"><img src="http://www.webmonkey.com/wp-content/uploads/2013/01/customfilterdemo.jpg" alt="" title="customfilterdemo" width="580" height="394" class="size-full wp-image-60535" /></a><p class="wp-caption-text">CSS custom filters in action. <em>Image: Screenshot/Webmonkey</em></p></div>Google has <a href="http://chrome.blogspot.com/2013/01/speedy-chrome-delivery.html">released an update</a> for its Chrome web browser. Chrome 24 boasts some speed improvements and support for the still-experimental CSS custom filters, which give web developers a way to apply 3-D effects to any HTML element.</p>
<p>You can <a href="http://www.chrome.com/">grab Chrome 24</a> &#8212; now tied with emacs in the great version number race &#8212; from Google. Current users should be updated the next time Chrome restarts.</p>
<p>The best news for web developers in this release is support for the draft <a href="https://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/index.html">CSS custom filters specification</a>. First <a href="http://www.webmonkey.com/2012/09/adobes-css-shaders-now-an-official-web-standard/">developed by Adobe</a>, custom filters allow web developers to easily apply cinema-style filter effects to any HTML content. Think grayscale-to-color transitions, animated shadows, photo-realistic warping and other mainstays of the 3-D animation world. </p>
<p>Previously you needed Adobe&#8217;s special build of WebKit to work with custom filters, but now support is baked into Chrome. However, it&#8217;s still disabled by default so you&#8217;ll need to head to <code>about:flags</code> and search for &#8220;Enable CSS Shaders&#8221;. Click &#8220;Enable&#8221; and then relaunch Chrome. Once you&#8217;ve enabled custom filter support, head on over to Adobe&#8217;s <a href="http://adobe.github.com/web-platform/samples/css-customfilters/">demo page</a> for some examples of what&#8217;s possible with custom filters.</p>
<p>Chrome 24 also offers a nominal speed bump thanks to some improvements in Chrome&#8217;s V8 JavaScript engine and, <a href="http://chrome.blogspot.com/2012/11/always-getting-faster.html">according to an earlier blog post</a>, Chrome&#8217;s Cloud Printing feature is faster thanks to some server-side tweaks.</p>
<div id='linker_widget' class='contextly-widget'></div>]]></content:encoded>
            <wfw:commentRss>http://www.webmonkey.com/2013/01/google-chrome-now-with-cinema-style-3d-effects/feed/</wfw:commentRss>
        <slash:comments>0</slash:comments>

        
    </item>
    
    <item>
        <title>Simplify Responsive Design by Embracing the Flexible Nature of the Web</title>
        <link>http://www.webmonkey.com/2013/01/simplify-responsive-design-by-embracing-the-flexible-nature-of-the-web/</link>
        <comments>http://www.webmonkey.com/2013/01/simplify-responsive-design-by-embracing-the-flexible-nature-of-the-web/#comments</comments>
        <pubDate>Wed, 09 Jan 2013 18:33:01 +0000</pubDate>

                <dc:creator>Scott Gilbertson</dc:creator>

        <guid isPermaLink="false">http://www.webmonkey.com/?p=60479</guid>
        		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Visual Design]]></category>
		<category><![CDATA[Web Standards]]></category>
		<category><![CDATA[responsive design]]></category>
            <enclosure url="http://www.webmonkey.com/wp-content/uploads/2013/01/Leaning_Tower_of_Pisa_by_mcpig_flickr-200x100.jpg" type="image/jpeg" length="48000" />
                    <description><![CDATA[<div class="rss_thumbnail"><img src="http://www.webmonkey.com/wp-content/uploads/2013/01/Leaning_Tower_of_Pisa_by_mcpig_flickr.jpg" alt="Simplify Responsive Design by Embracing the Flexible Nature of the Web" /></div>Still using pixels in your responsive designs? Pixels may work, but using pixels means fighting the inherent flexibility of the web. It also means you're probably doing more work than you need to.]]></description>

            <content:encoded><![CDATA[<p><!-- wpautop enabled --><div id="attachment_60481" class="wp-caption aligncenter" style="width: 590px"><a href="http://www.webmonkey.com/wp-content/uploads/2013/01/Leaning_Tower_of_Pisa_by_mcpig_flickr.jpg"><img src="http://www.webmonkey.com/wp-content/uploads/2013/01/Leaning_Tower_of_Pisa_by_mcpig_flickr.jpg" alt="" title="Leaning_Tower_of_Pisa_by_mcpig_flickr" width="580" height="386" class="size-full wp-image-60481" /></a><p class="wp-caption-text">Some flexible foundations are better than others. <em>Image: <a href="https://secure.flickr.com/photos/mcpig/2131498182/">McPig/Flickr</a></em></p></div>
<p>If you&#8217;re using pixels as part of your responsive designs you&#8217;re probably making your life harder than it needs to be. </p>
<p>There&#8217;s nothing &#8220;wrong&#8221; with using pixels in an otherwise responsive layout, but if you do you&#8217;ll likely end up writing more code than you would using flexible units. </p>
<p>Jon Allsopp&#8217;s <a href="http://www.alistapart.com/articles/dao/">A Dao of Web Design</a> predates responsive design by a decade, but its prescient advice remains perhaps the best way to approach any design, responsive or otherwise: &#8220;It is the nature of the web to be flexible, and it should be our role as designers and developers to embrace this flexibility, and produce pages which, by being flexible, are accessible to all.&#8221;</p>
<p>More than just embracing the nature of the medium, building your sites atop what developer Trent Walton calls &#8220;<a href="http://trentwalton.com/2013/01/07/flexible-foundations/">Flexible Foundations</a>&#8221; can go a long way to making development easier. As Walton points out in his post, using pixels often means more code since pixel-based type, margins and padding mean you need to add new values at every responsive breakpoint. </p>
<p>&#8220;In many ways,&#8221; writes Walton, &#8220;every time we use a pixel value in CSS we&#8217;re rasterizing what was a fully-scalable web.&#8221;</p>
<p>Stick with percentages, ems or the newer rem units and your designs can scale simply by changing the body font size. Embracing the flexibility of the medium means you can adapt as well &#8212; no need to panic when a client wants to <a href="http://www.underconsideration.com/MaketheLogoBigger.mp3">make the logo bigger</a> at the last minute, you can scale the whole layout up (or down) with a few lines of code. For Walton&#8217;s design firm, <a href="http://paravelinc.com/">Paravel</a>, the flexible approach has already proved its worth in just this way:</p>
<blockquote>
<p>This paid off a few weeks ago, when a client wanted to make significant changes to the layout for his site. Type, imagery, buttons, etc. needed to be smaller and overall width &amp; spacing (margins / padding) needed to be reduced. Thankfully, this was as simple as adjusting the body font-size at wide views. Years ago, however, this could have set the project weeks beyond scoped timeline and budget.</p>
</blockquote>
<p>As developer Brad Frost has <a href="http://bradfrostweb.com/blog/web/for-a-future-friendly-web/">said</a>, &#8220;Get your content ready to go anywhere because it’s going to go everywhere.&#8221; Pixels may work today, but they make for a rigid site that might well break on new devices. As Walton concludes &#8220;the sites we&#8217;ve built to display on a desktop, smartphone, or a tablet today could be on a TV screen, coffee table display, or mega space yacht projection system tomorrow.&#8221; Start with a flexible foundation and your site should handle just about any hardware that tries to load it.</p>
<div id='linker_widget' class='contextly-widget'></div>]]></content:encoded>
            <wfw:commentRss>http://www.webmonkey.com/2013/01/simplify-responsive-design-by-embracing-the-flexible-nature-of-the-web/feed/</wfw:commentRss>
        <slash:comments>0</slash:comments>

    <enclosure url="http://www.underconsideration.com/MaketheLogoBigger.mp3" length="3298217" type="audio/mpeg" />
    
    </item>
    
    <item>
        <title>Five Ways to Simplify Responsive Design</title>
        <link>http://www.webmonkey.com/2013/01/five-ways-to-simplify-responsive-design/</link>
        <comments>http://www.webmonkey.com/2013/01/five-ways-to-simplify-responsive-design/#comments</comments>
        <pubDate>Thu, 03 Jan 2013 19:50:51 +0000</pubDate>

                <dc:creator>Scott Gilbertson</dc:creator>

        <guid isPermaLink="false">http://www.webmonkey.com/?p=60431</guid>
        		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Responsive Design]]></category>
		<category><![CDATA[Web Basics]]></category>
		<category><![CDATA[responsive design]]></category>
        <description><![CDATA[Building responsive websites requires a different approach than building a desktop-only site. Developer David Bushell has five suggestions for anyone who's about to or already has embarked on a responsive project.]]></description>

            <content:encoded><![CDATA[<p><!-- wpautop enabled -->
<p><div id="attachment_53661" class="wp-caption alignleft" style="width: 590px"><a href="http://www.webmonkey.com/wp-content/uploads/2012/01/tablets.jpg"><img src="http://www.webmonkey.com/wp-content/uploads/2012/01/tablets.jpg" alt="" title="tablets" width="580" height="434" class="size-full wp-image-53661" /></a><p class="wp-caption-text">A handful of the many screens your responsive designs must handle. <em>Photo: Ariel Zambelich/Wired.com</em></p></div>Building <a href="http://www.webmonkey.com/2012/10/embracing-the-flexibility-of-the-web-with-responsive-enhancement/">responsive websites</a> can be daunting. After all, instead of just one desktop layout you&#8217;re creating at least two, probably three or even four layouts to handle different breakpoints and screen sizes. That means considerably more work, which can feel overwhelming if you don&#8217;t have a good plan of attack.</p>
<p>One of the better plans I&#8217;ve seen recently comes from developer David Bushell, who recently outlines <a href="http://dbushell.com/2013/01/01/five-tips-for-responsive-builds/">5 Tips for Responsive Builds</a>. Among his suggestions there are two standouts, the first being &#8220;utilize breakpoint zero.&#8221; For Bushell &#8220;breakpoint zero&#8221; just means &#8220;start by writing HTML in a semantic and hierarchical order. Start simple, with no CSS at all and then &#8220;apply the basic styles but don&#8217;t go beyond the default vertical flow.&#8221; </p>
<p>In other words, keep your layout slate blank as long as you can so that when you do start adding layout rules you can spot problems with different breakpoints early and fix them before changing things becomes a major headache.</p>
<p>The other highlight of Bushell&#8217;s post is the suggestion that you maintain a CSS pattern library  &#8212; reusable snippets of CSS you can drop in for quick styling. There are a ton of ways you can do this, whether it&#8217;s something formal like <a href="http://smacss.com/">SMACSS</a> (pronounced &#8220;smacks&#8221;), <a href="https://github.com/stubbornella/oocss/wiki">OOCSS</a>, or just taking the time to <a href="http://www.webmonkey.com/2011/12/write-better-css-with-knyle-style-sheets/">write a style guide</a> with some sample code. The point isn&#8217;t how you do it or which method you use, but <em>that</em> you do it.</p>
<p>Be sure to check out Bushell&#8217;s post for more details on these two suggestions as well as the other three ways you can help make your responsive design process a bit smoother.</p>
<div id='linker_widget' class='contextly-widget'></div>]]></content:encoded>
            <wfw:commentRss>http://www.webmonkey.com/2013/01/five-ways-to-simplify-responsive-design/feed/</wfw:commentRss>
        <slash:comments>0</slash:comments>

        
    </item>
    
    <item>
        <title>GitHub&#8217;s Tips for Building Faster Websites</title>
        <link>http://www.webmonkey.com/2012/12/githubs-tips-for-building-faster-websites/</link>
        <comments>http://www.webmonkey.com/2012/12/githubs-tips-for-building-faster-websites/#comments</comments>
        <pubDate>Mon, 10 Dec 2012 19:24:38 +0000</pubDate>

                <dc:creator>Scott Gilbertson</dc:creator>

        <guid isPermaLink="false">http://www.webmonkey.com/?p=60271</guid>
        		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Performance]]></category>
            <enclosure url="http://www.webmonkey.com/wp-content/uploads/2012/12/wm_w.jpg" type="image/jpeg" length="48000" />
                    <description><![CDATA[<div class="rss_thumbnail"><img src="http://www.webmonkey.com/wp-content/uploads/2012/12/wm_w.jpg" alt="GitHub&#8217;s Tips for Building Faster Websites" /></div>Want to make your webpages load faster? Take a tip from GitHub -- just a few small changes to your HTML and CSS can make a huge difference in performance.]]></description>

            <content:encoded><![CDATA[<p><!-- wpautop enabled -->
<p><iframe src="http://player.vimeo.com/video/54990931?portrait=0&amp;badge=0&amp;color=95cd28" width="580" height="435" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe> </p>
<p>Social code hosting service GitHub isn&#8217;t just a free, easy way to host and share your code; it&#8217;s also a huge CSS and HTML testing ground with experience writing a fast, scalable code. </p>
<p>So what has GitHub learned from running a hugely successful site? That surprisingly small changes to both HTML and CSS can have a huge impact on performance.</p>
<p>GitHub&#8217;s Jon Rohan gave a talk about some of the service&#8217;s performance problems and solutions at the CSS Dev Conference in Honolulu earlier this year. (The slides are <a href="https://speakerdeck.com/jonrohan/githubs-css-performance">available on Speaker Deck</a>.) The whole video is worth watching, but the key takeaway is that the right small changes in your code can have a huge impact on performance.</p>
<p>Many of Rohan&#8217;s suggestions for faster CSS will be familiar to anyone who&#8217;s used YSlow and other performance tools &#8212; get rid of unnecessary tag identifiers in your CSS, i.e., <code>div.menu</code> becomes just <code>.menu</code>, eliminate ancestors where possible and avoid chaining your CSS selectors.</p>
<p>On the HTML side &#8212; and Rohan says it&#8217;s here that GitHub really saw performance improvements &#8212; he suggests reducing the amount of matched HTML on the page. That is, look at your pages in a profiler, figure out which tags are being matched and look for ways to simplify the layout to avoid bottlenecks. Among the more depressing things Rohan presents is how much the page load times dropped with switching from anchor links to a JavaScript solution that, while faster, is considerably less accessible.</p>
<p>GitHub is undeniably different than most websites &#8212; especially pages like the Git diff views, which involve considerably more code than most pages will need. But, while GitHub may be the extreme example, in many cases the same small changes can help speed up much simpler pages as well. </p>
<div id='linker_widget' class='contextly-widget'></div>]]></content:encoded>
            <wfw:commentRss>http://www.webmonkey.com/2012/12/githubs-tips-for-building-faster-websites/feed/</wfw:commentRss>
        <slash:comments>0</slash:comments>

        
    </item>
    
    <item>
        <title>A Look at the Future of CSS</title>
        <link>http://www.webmonkey.com/2012/12/a-look-at-the-future-of-css/</link>
        <comments>http://www.webmonkey.com/2012/12/a-look-at-the-future-of-css/#comments</comments>
        <pubDate>Wed, 05 Dec 2012 17:46:53 +0000</pubDate>

                <dc:creator>Scott Gilbertson</dc:creator>

        <guid isPermaLink="false">http://www.webmonkey.com/?p=60199</guid>
        		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web Standards]]></category>
            <enclosure url="http://www.webmonkey.com/wp-content/uploads/2012/12/blendmodesdemo-200x100.jpg" type="image/jpeg" length="48000" />
                    <description><![CDATA[<div class="rss_thumbnail"><img src="http://www.webmonkey.com/wp-content/uploads/2012/12/blendmodesdemo.jpg" alt="A Look at the Future of CSS" /></div>Want to know how you'll be styling web pages a year or two from now? Take a look at the improvements and new features in CSS -- coming soon to a web browser near you.]]></description>

            <content:encoded><![CDATA[<p><!-- wpautop enabled --><div id="attachment_60203" class="wp-caption aligncenter" style="width: 590px"><a href="http://www.webmonkey.com/wp-content/uploads/2012/12/blendmodesdemolg.jpg"><img src="http://www.webmonkey.com/wp-content/uploads/2012/12/blendmodesdemo.jpg" alt="" title="blendmodesdemo" width="580" height="353" class="size-full wp-image-60203" /></a><p class="wp-caption-text">CSS Blend Modes demo. <em>Image: Screenshot/Webmonkey</em>.</p></div>
<p>We use the term &#8220;CSS 3&#8243; all the time on Webmonkey, but technically that&#8217;s something of a misnomer. There is no spoon, you see.</p>
<p>In fact, the CSS Working Group, which oversees the CSS specification at the W3C, is cranking out draft specs of new features all the time &#8212; the monolithic &#8220;3.0&#8243; or &#8220;4.0&#8243; versioning was tossed out after CSS 2.1. Instead new features are developed as &#8220;modules&#8221; so that, for example, the Selector Module can be published without waiting for the Layout Module.</p>
<p>That means there are new CSS features coming all the time. </p>
<p>Adobe&#8217;s Divya Manian &#8212; who is also one of the developers behind <a href="http://html5boilerplate.com/">HTML5 Boilerplate</a> &#8212; recently gave a talk titled &#8220;<a href="http://blog.jscamp.asia/post/34889290406/jscamp-talk-divya-manian-css-next">CSS Next</a>&#8220;, which highlights some of the <a href="http://nimbupani.com/jscamp-css-next.html">exciting new CSS features</a> coming soon to a browser near you.</p>
<p>Among the cool things Manian highlights are some impressive new tricks for web fonts, including better tools for working with ligatures, unicode and <a href="www.webmonkey.com/2012/11/create-smaller-better-web-graphics-with-icon-fonts/">icon fonts</a>.</p>
<p>There are also some impressive new layout tools in the works, namely CSS Regions and Exclusions. We looked at both back when <a href="www.webmonkey.com/2011/05/adobe-envisions-brave-new-world-of-web-layouts-with-css-regions/">Adobe first proposed them</a>, but since then not only have they <a href="http://www.webmonkey.com/2012/03/css-regions-coming-soon-to-a-webpage-near-you/">progressed to actual draft specs</a>, but they&#8217;re now supported in Chrome&#8217;s Canary builds (rather than requiring a custom build from Adobe). </p>
<p>It&#8217;s still going to be a while before either can claim a spot in your CSS layout toolkit, but there are already a few demos you can check out to see the new layout possibilities Regions and Exclusions offer. Grab a copy of <a href="https://www.google.com/intl/en/chrome/browser/canary.html">Chrome Canary</a> and turn on &#8220;Enable Experimental WebKit Features&#8221; in chrome:flags and then point your browser to this <a href="http://nimbu.in/jscamp/regions.html">demo of Regions</a> and this <a href="http://nimbu.in/jscamp/shape-inside.html">&#8220;shape inside&#8221; demo</a> of Exclusions.</p>
<p>Other things Manian covers that we&#8217;re looking forward to include CSS Filters and Blend modes. CSS Filters already work in WebKit browsers and allow you to apply effects like blur or grayscale to any HTML element. CSS Blend Modes work just like layer-blending modes in Photoshop and other graphics apps &#8212; allowing you to blend layers using modes like &#8220;difference,&#8221; &#8220;overlay,&#8221; &#8220;multiply&#8221; and so on. As of right now you still need a <a href="https://github.com/adobe/webkit/downloads">special build of Chromium</a> to see <a href="http://adobe.github.com/web-platform/demos/compositing/blend-photogallery/index.html">Blend Modes in action</a>.</p>
<p>Manian also covers two intriguing WebKit-only features that aren&#8217;t yet a part of any CSS spec, but could be one day. Be sure to read through Manian&#8217;s post for more info and a few other new things, including two Webmonkey has covered recently &#8212; <a href="http://www.webmonkey.com/2012/11/use-tomorrows-web-standards-today-with-css-supports/">CSS @supports</a> and <a href="http://www.webmonkey.com/2012/08/css-variables/">CSS Variables</a>. </p>
<div id='linker_widget' class='contextly-widget'></div>]]></content:encoded>
            <wfw:commentRss>http://www.webmonkey.com/2012/12/a-look-at-the-future-of-css/feed/</wfw:commentRss>
        <slash:comments>0</slash:comments>

        
    </item>
    </channel>
</rss>