Tag: kranthi

Six CSS Layout Features To Look Forward To





 



 


A few concerns keep bobbing up now and then for Web developers, one of which relates to how to lay out a given design. Developers have made numerous attempts to do so with existing solutions. Several articles have been written on finding the holy grail of CSS layouts, but to date, not a single solution works without major caveats. At the W3Conf, I gave a talk on how the CSS Working Group is attempting to solve the concerns of Web developers with multiple proposals. There are six layout proposals that are relevant to us, all of which I described in the talk:

Here is a little more about these proposals and how they will help you in developing websites in the future.

Generated Content For Paged Media

This proposal outlines a set of features that would modify the contents of any element to flow as pages, like in a book. A video demonstration shows how to use paged media to generate HTML5 slideshows (look at the demos for GCPM in the Opera Labs Build to play with the features more). To make the content of an element be paged, you would use this syntax:

@media paged {
  html {
    height: 100%;
    overflow-style: paged-x;
    padding: 5%;
    height: 100%;
    box-sizing: border-box;
  }
}

This would make the content look something like this:

screenshot

Here, @media paged indicates that the browser understands paged media and that all of the selectors specified for it should have their styles applied when paged media is supported. Then, you indicate which selector you want to be paged (in the above example, the selector is the html element itself) by specifying the property overflow-style: paged-x. This will simply make the content paged; if you want paged controls to be visible, you need to specify overflow-style: paged-x-controls.

The properties break-before, break-after break-inside can be used to control where the content falls within the pages. For example, if you want headings to only appear with their corresponding content and never at the end of the page or standing alone, you can specify that:

h3, h2 {
break-after: avoid;
}

This ensures that if a heading occurs on the last line of a page, it will be pushed to the next page with the content that it introduces.

API

Two properties are available on an element whose content is paged: currentPage and pageCount. You can set the currentPage property via JavaScript, which would trigger a page change on that element. This would then trigger an onpagechange event on that element, which you could use to run other scripts that are required when the page changes. The pageCount property stores the total number of pages in the paged element. These properties are useful for implementing callbacks that should be triggered on page change; for example, to render notes for a particular slide in a slide deck.

Multiple Columns

Multiple columns are now available in most browsers (including IE10!), which makes them pretty much ready to use on production websites. You can render the content of any element into multiple columns simply by using column-width: <length unit> or column-count: <number>. As with paged content, you can use break-before, break-after or break-inside to control how the content displays within each column. You can also make one of the child elements span the whole set of columns by using column-span: all. Here is how that would look:

screenshot

Columns are balanced out with content by default. If you would prefer that columns not be balanced, you can set that by using column-fill: auto property. Here is an example of the default behaviour (i.e. column-fill: balanced):

screenshot

And here is an example of the column-fill: auto behavior:

screenshot

Note that the last column is empty, and each column is filled one after the other.

Regions

The closest equivalent to regions would be InDesign’s linking of text frames. With the properties in this proposal, you can make the content of selected elements flow throw another set of elements. In other words, your content need not be tied to the document flow any longer.

To begin, you need to select elements whose content will be part of a “named flow,� like this:

article.news { flow-into: article_flow; }

Here, all of the content in the article element with the class name news will belong to the flow named article_flow.

Then, you select elements that will render the contents that are part of this named flow:

#main {
flow-from: article_flow;
}

Here, the element with the ID main will be used to display the content in the flow named article_flow. This element has now become a region that renders the content of a named flow. Note that any element that is a region establishes new “block-formatting contexts� and “stacking contexts.� For example, if a child element is part of a flow and is absolutely positioned, it will now only be absolutely positioned with respect to the region it belongs to, and not to the whole viewport.

You can also tweak the styles of content that flows through a region:

@region #main {
  p { color: indianred; }
}

screenshot

API

An interface named getNamedFlow and an event named regionLayoutUpdate are available for elements that are regions.

getNamedFlow

This returns the flow that that particular region is associated with. The properties available are:

  • overflowA read-only boolean that tells you whether all of the content of the named flow fits within the regions that are part of the flow or whether it overflows.
  • contentNodesA NodeList of all the content elements that belong to the flow.
  • getRegionsByContentNodeThis returns all of the regions that a particular content element would flow through. A very long paragraph might flow through more than one region; with this method, you can retrieve all of the regions that that paragraph element flows through.
  • regionLayoutUpdateThis event gets triggered every time an update is made to the layout of a region. If the region’s dimensions are altered, then the child content elements that are part of that region might alter, too (for example, a few might move to another region, or more child elements might become part of the region).

Exclusions

  • Draft specification (a combination of two proposals: “Exclusionsâ€� and “Positioned Floatsâ€�)
  • Demo
  • Browser support: IE 10+

Exclusions allow inline content to be wrapped around or within custom shapes using CSS properties. An element becomes an “exclusion element� when wrap-flow is set to a value that is not auto. It can then set the “wrapping area� for inline text outside or within it, according to various CSS properties. The wrap-flow can take the following values: left, right, maximum,both, clear or the default value of auto. Here is how each of these values would affect the inline content around the exclusion element:

screenshot

wrap-flow: auto

screenshot

wrap-flow: right

screenshot

wrap-flow: both

screenshot

wrap-flow: clear

screenshot

wrap-flow: maximum

The wrap-margin property can be used to offset the space between the boundary of the exclusion element and the inline text outside of it. The wrap-padding property is used to offset the space between the boundary of the exclusion element and the inline text inside it.

screenshot

In the above image, the space between the content outside of the red dashed circular border and the black text outside of it is determined by the wrap-margin, while the space between the red dashed circular border and the blue text within it is determined by the wrap-padding.

Now comes the fun part: specifying custom shapes for the wrapping area. You can use two properties: shape-outside lets you set the wrapping area for inline text outside of the exclusion element, while shape-inside lets you set the wrapping area for inline text inside the exclusion element.

screenshot

Both of these properties can take SVG-like syntax (circle(50%, 50%, 100px);) or image URLs to set the wrapping area.

Exclusions make magazine-like layouts on the Web a trivial matter and could spark the kind of creative use of content that we are used to seeing in print!

Grid

Grid properties allow you to throw block-level elements into a grid cell, irrespective of the flow of content within the grid parent element. An element becomes a grid when display is set to grid. You can then set the number of columns and rows with the grid-columns and grid-rows properties, respectively. You can then declare each child selector itself as part of a grid cell, like so:

#title {
grid-column: 1; grid-row: 1;
}

#score {
grid-column: 2; grid-row: 1;
}

You can also use a template to plan the grid:

body {
  grid-template: "ta"
                 "sa"
                 "bb"
                 "cc";
}

In this syntax, each string refers to a row, and each character refers to a grid cell. In this case, the content of grid cell represented by the character a spans two rows but just one column, and the content represented by b spans two columns but just one row.

Now you can set any of the child element’s grid-cell position:

#title {
grid-cell: 't';
}

This will make the element with the ID title within the body element to be positioned in the grid cell represented by the character t in the grid-template property.

If you are not using grid-template, you can also declare how many columns or rows a particular element should occupy with the grid-row-span and grid-column-span properties.

Flexbox

Flexbox allows you to distribute child elements anywhere in the box (giving us the much-needed vertical centering), along with flexible units that let you control the fluidity of the child elements’ dimensions.

Note that this specification has changed substantially since it was first proposed. Previously, you would invoke Flexbox for an element with display: box, but now you would use display: Flexbox to do so. Child elements can be vertically aligned to the center with flex-pack: center and horizontally aligned to the center with flex-align: center. Also note that all elements that obey the Flexbox need to be block-level elements.

How Do Various Properties Interact With Each Other?

You might wonder how to use these properties in combination. The following table shows which of these features can be combined.

Paged Media Multiple Columns Regions Exclusions Grid Flexbox
Paged Media ✓
Multiple Columns ✓ ✓ ✓ ✓
Regions ✓ ✓ ✓
Exclusions ✓ ✓ ✓
Grid ✓
Flexbox ✓

As you can see, the multiple-column properties can be used in conjunction with generated content for paged media, regions and exclusions. But grid, Flexbox and regions are mutually exclusive (i.e. if an element is a grid, it cannot be a Flexbox or region).

A Note Before You Rush Out To Use Them In Client Projects

The specifications are always changing, so be careful with them. Except for multiple columns, I would recommend using these strictly in personal projects and demos. The syntaxes and properties used in some of the demos are different from what you would find in the actual specifications, because they have changed since the builds that support a previous version of the specification came out. Also, because they are still unstable, all of these properties are vendor-prefixed, which means you have to add support for each prefix as support is added.

If you do use these features, just make sure that the content is readable in browsers that do not support them. The easiest way to do this would be to use feature detection and then use CSS to make the content readable when the feature is unsupported.

Help The Working Group!

Do these layout proposals sound exciting to you? Jump on the www-style mailing list to provide feedback on them! Just note that the mailing list will flood your inbox, and you should carefully filter the emails so that you pay attention only to the drafts you are interested in.

Write demos and test how these work, and if you find bugs in the builds that have these properties, provide feedback to the browser vendors and submit bug reports. If you have suggestions for changing or adding properties to these proposals, do write in in the mailing list (or you can bug me on Twitter)!

These are exciting times, and within a few years the way we lay out Web pages will have changed dramatically! Perhaps this will finally sound the death knell of print. (Just kidding.)

(al)


© Divya Manian for Smashing Magazine, 2011.


The Smashing Deals Countdown For Christmas





 



 


Christmas is near and the spirits are rising but why not speed it all up a bit? To make the days prior to Christmas much more exciting, we’ll provide you with something to look forward to each day for the next ten days. This year, we’d love to help you out with your Christmas presents. We have some truly smashing Christmas deals lined up for you, and with very affordable, special prices for our dear readers and customers.

We have put together extremely content-rich and valuable bundle deals at prices you have not seen at Smashing Magazine. Seize the opportunity while it lasts and if you are lucky, you might just win one out of the 10 Golden Tickets (further details below). Where’s the catch you ask? There is none — better yet: you can win a bundle deal of your choice daily with a little touch of whimsy fortune!

The Daily Christmas Deals

For the next 10 days, starting today, you will find special deals on our Christmas Deals page. Each deal is limited to 24 hours and will not be sold at comparable prices again. This is a unique opportunity to get your Christmas presents together. To make sure you don’t miss out on any of the deals, better set your alarm clock since all bundle deals run out at exactly 12pm CET midnight.

Which Bundles are Offered?

We’ve carefully assembled all the bundles which will be offered according to relevance and topics. The bundles contain eBooks, printed books and digital goodies such as a mobile apps, WordPress themes and design templates. Here is a quick overview for your convenience:

The Smashing Magazine Christmas Bundle Deals
The Smashing Magazine Christmas Special: Ten Bundle Deals at truly smashing prices!

December 15th – “Smashing Digital Book #2 + Lost Files” for only $9.99 instead of $29.90
You’ve probably heard of the Smashing Book #2 — the eBook version is finally ready and here is your chance to get your copy for a special price. The book shares valuable practical insight into design, usability and coding. It gives professional advice for designing mobile apps as well as practical applications of psychology and game theory to create engaging user experiences. Get the eBook for your iPad or Kindle and feed it with the Smashing Book #2 to enjoy it on your way to work.

December 16th – “WordPress Bundle” for only $26.99 instead of $54.81
This bundle is fresh and just out of proofreading. WordPress Essentials, Mastering WordPress and WordPress Tutorials are three eBooks filled with all the knowledge you need to get a firm grip on WordPress. Additionally, this bundle comes with two WordPress themes for you to adapt, tweak and publish. Now that’s a deal worth twittering!

December 17th – “Corporate Design Bundle” for only $29.99 instead of $66.79
You don’t have a corporate design yet? Establish your brand with a consistent appearance and get set for business contingencies. Use a corporate identity pack (including a business card design, a portfolio layout and stationary), a WordPress Theme and an eCommerce eBook to get your business rolling and spice your online presence with some rad Swiss Retro Design icons.

December 18th – “Printed Smashing Books Bundle” for just $24.99 instead of $59.80
The Printed Smashing Books Bundle has never been offered at this price. Take advantage of it and get a couple of books to give to your friends and colleagues. The Book #1 looks at Web design rules of thumb, color theory, usability guidelines, UI design, best coding and optimization practices. The Book #2 gives professional advice for designing mobile apps as well as practical applications of psychology and game theory to create engaging user experiences.

December 19th – “Creative Bundle” for $14.99 instead of $30.77
This bundle deal gets you set for your first eBook production and publication. It also provides you with 29 exclusive high quality icons. On top, the two Photoshop eBooks will guarantee an improvement of your design skills and the “Professional Workflow” eBook gives valuable insights and tips on streamlining corporate as well as administrative processes. Don’t miss this bundle, you’ll regret it!

December 20th – “Web Design Package” for $9.99 instead of $23.76
Here comes one for the Web designers out there. We bundled four quality eBooks for your reading and learning pleasure. “Professional Web Design” and “Professional Web Design Volume 2″ provide you with the most important fundamentals and principles while the “Modern Web Design & Development” eBook covers current and upcoming design trends. Finally, the bundle is topped up with the “Smashing Typography” eBook to make your font choices more confident. Set your alarm to the 20th of December for this one!

December 21st – “Smashing Digital Books 1+2” (PDF, EPUB, Mobipocket) for $14.99 instead of $29.98
Get both digital copies of the Smashing Book #1 and #2 at an unbeatable price. Twist and turn it as long as you like: there just is no better offer out there for the value this bundle has to offer. That’s 50% off! We don’t have to elaborate on the pros of having a digital copy of the bestselling Smashing Books with you all the time, do we?

December 22nd – “Mobile Bundle” for just $9.99 instead of $20.93
Today Santa is mobile and so you should be, too. The “Mobile Design” eBook offers everything you need to keep up in the mobile Web game. Insights, techniques, trends and tips on getting your own mobile app set up are only a few clicks away. In addition to that, we threw in a mobile portfolio for your work. Show your customers what ‘mobile’ means and get your mock ups and designs to them in the wink of an eye.

December 23rd – “Coding Bundle” for $9.99 instead of $17.82
Coding night, jQuery bright… This bundle is a treat for all truly smashing coders. It covers CSS, jQuery and JavaScript at an intermediate level. The eBooks are all authored by experts of the respective field and offer the Smashing quality you are used to. Two of the three eBook have just been published. Be one of the first to enjoy the still dewy read!

December 24th – “Smashing Book Super Bundle (Print + Digital)” for $34.99 instead of $89.96
Here comes the ultimate Smashing bundle deal and the grand finale of our countdown to Christmas Eve. Get Smashing Book #1 and #2 both in printed and eBook versions for an unbeatable price with 56% off. Make sure to get it while the offer lasts! And we wish you a merry Smashing Christmas!

What is a Golden Ticket?

Are you subscribed to our Smashing Magazine Newsletter yet? If not, you should subscribe to our email newsletter to get a chance to win a Smashing Golden Ticket! It allows the winner and owner of the ticket to choose one of the ten offered bundles  —  completely free of charge.

The Smashing Magazine Golden Ticket
Subscribers to the Smashing Newsletter can win a Golden Ticket daily.

The daily winner of the Golden Ticket is drawn from the pool of all newsletter subscribers and will be contacted via email. The winners can use their ticket within the 24 hours upon receiving the winning notification, so make sure you keep an eye on your inbox!

Stay Tuned for Updates!

We will be sure to keep you posted about the daily deals via Twitter, Facebook and Google+ as well as in our email newsletter. So, if you are not subscribed to our channels yet, hurry up to catch the bundles you are keen to call your own!

Let’s Get Merry!

Now you are all set to get your special Smashing bundle deals. We sincerely hope that you’ll find our offers valuable and useful for you and your colleagues, and perhaps you’ll be able to find the presents that you were looking for anyway.

On Smashing Magazine, we pay a lot of attention to quality of our work. The bundles feature high-quality products as offered in our Smashing shop. Please keep in mind that all Christmas deals are valid only for 24 hours and will then be offered at the normal price.

If you prefer to buy an eBook as a standalone product, feel free to get our eBooks on Amazon or on iTunes. We wish our worldwide Smashing community a blissful last couple of weeks of the old year. Enjoy the countdown to Christmas Eve and always remember to stay Smashing!

Yours sincerely,
The Smashing Team


© Smashing Editorial for Smashing Magazine, 2011.


The Smashing Deals Countdown For Christmas





 



 


Christmas is near and the spirits are rising but why not speed it all up a bit? To make the days prior to Christmas much more exciting, we’ll provide you with something to look forward to each day for the next ten days. This year, we’d love to help you out with your Christmas presents. We have some truly smashing Christmas deals lined up for you, and with very affordable, special prices for our dear readers and customers.

We have put together extremely content-rich and valuable bundle deals at prices you have not seen at Smashing Magazine. Seize the opportunity while it lasts and if you are lucky, you might just win one out of the 10 Golden Tickets (further details below). Where’s the catch you ask? There is none — better yet: you can win a bundle deal of your choice daily with a little touch of whimsy fortune!

The Daily Christmas Deals

For the next 10 days, starting today, you will find special deals on our Christmas Deals page. Each deal is limited to 24 hours and will not be sold at comparable prices again. This is a unique opportunity to get your Christmas presents together. To make sure you don’t miss out on any of the deals, better set your alarm clock since all bundle deals run out at exactly 12pm CET midnight.

Which Bundles are Offered?

We’ve carefully assembled all the bundles which will be offered according to relevance and topics. The bundles contain eBooks, printed books and digital goodies such as a mobile apps, WordPress themes and design templates. Here is a quick overview for your convenience:

The Smashing Magazine Christmas Bundle Deals
The Smashing Magazine Christmas Special: Ten Bundle Deals at truly smashing prices!

December 15th – “Smashing Digital Book #2 + Lost Files” for only $9.99 instead of $29.90
You’ve probably heard of the Smashing Book #2 — the eBook version is finally ready and here is your chance to get your copy for a special price. The book shares valuable practical insight into design, usability and coding. It gives professional advice for designing mobile apps as well as practical applications of psychology and game theory to create engaging user experiences. Get the eBook for your iPad or Kindle and feed it with the Smashing Book #2 to enjoy it on your way to work.

December 16th – “WordPress Bundle” for only $26.99 instead of $54.81
This bundle is fresh and just out of proofreading. WordPress Essentials, Mastering WordPress and WordPress Tutorials are three eBooks filled with all the knowledge you need to get a firm grip on WordPress. Additionally, this bundle comes with two WordPress themes for you to adapt, tweak and publish. Now that’s a deal worth twittering!

December 17th – “Corporate Design Bundle” for only $29.99 instead of $54.81
You don’t have a corporate design yet? Establish your brand with a consistent appearance and get set for business contingencies. Use the WordPress Theme and the eCommerce eBook to get your business rolling and spice your publicity with some rad Swiss Retro Design icons.

December 18th – “Printed Smashing Books Bundle” for just $24.99 instead of $59.80
The Printed Smashing Books Bundle has never been offered at this price. Take advantage of it and get a couple of books to give to your friends and colleagues. The Book #1 looks at Web design rules of thumb, color theory, usability guidelines, UI design, best coding and optimization practices. The Book #2 gives professional advice for designing mobile apps as well as practical applications of psychology and game theory to create engaging user experiences.

December 19th – “Creative Package” for $14.99 instead of $30.77
This bundle deal gets you set for your first eBook production and publication. On top, the two Photoshop eBooks will guarantee an improvement of your design skills and the Workflow eBook gives valuable insights and tips on streamlining corporate as well as administrative processes. Don’t miss this bundle, you’ll regret it!

December 20th – “Web Design Package” for $9.99 instead of $23.76
Here comes one for the Web designers out there. We bundled four quality eBooks for your reading and learning pleasure. “Professional Web Design” and “Professional Web Design Volume 2″ provide you with the most important fundamentals and principles while the “Modern Web Design & Development” eBook covers current and upcoming design trends. Finally, the bundle is topped up with the “Smashing Typography” eBook to make your font choices more confident. Set your alarm to the 20th of December for this one!

December 21st – “Smashing Digital Books 1+2″ for $14.99 instead of $29.98
Get both digital copies of the Smashing Book #1 and #2 at an unbeatable price. Twist and turn it as long as you like: there just is no better offer out there for the value this bundle has to offer. That’s 50% off! We don’t have to elaborate on the pros of having a digital copy of the Smashing Books with you all the time, do we?

December 22nd – “Mobile Bundle” for just $9.99 instead of $20.93
Today Santa is mobile and so you should be, too. The “Mobile Design” eBook offers everything you need to keep up in the mobile Web game. Insights, techniques, trends and tips on getting your own mobile app set up are only a few clicks away. In addition to that, we threw in a mobile portfolio for your work. Show your customers what ‘mobile’ means and get your mock ups and designs to them in the wink of an eye.

December 23rd – “Coding Bundle” for a smashing $9.99 instead of $11.88
Coding night, jQuery bright… This bundle is a treat for all truly smashing coders. It covers CSS, jQuery and JavaScript at an intermediate level. The eBooks are all authored by experts of the respective field and offer the Smashing quality you are used to. Two of the three eBook have just been published. Be one of the first to enjoy the still dewy read!

December 24th – “Smashing Book Super Bundle (Print + Digital + Lost Files)” $34.99 instead of $89.96
Here comes the ultimate Smashing bundle deal and the grand finale of our countdown to Christmas Eve. Get Smashing Book #1 and #2 both in printed and eBook versions for an unbeatable price with 56% off. Make sure to get it while the offer lasts! And we wish you a merry Smashing Christmas!

What is a Golden Ticket?

Are you subscribed to our Smashing Magazine Newsletter yet? If not, you should subscribe to our email newsletter to get a chance to win a Smashing Golden Ticket! It allows the winner and owner of the ticket to choose one of the ten offered bundles  —  completely free of charge.

The Smashing Magazine Golden Ticket
Subscribers to the Smashing Newsletter can win a Golden Ticket daily.

The daily winner of the Golden Ticket is drawn from the pool of all newsletter subscribers and will be contacted via email. The winners can use their ticket within the 24 hours upon receiving the winning notification, so make sure you keep an eye on your inbox!

Stay Tuned for Updates!

We will be sure to keep you posted about the daily deals via Twitter, Facebook and Google+ as well as in our email newsletter. So, if you are not subscribed to our channels yet, hurry up to catch the bundles you are keen to call your own!

Let’s Get Merry!

Now you are all set to get your special Smashing bundle deals. We sincerely hope that you’ll find our offers valuable and useful for you and your colleagues, and perhaps you’ll be able to find the presents that you were looking for anyway.

On Smashing Magazine, we pay a lot of attention to quality of our work. The bundles feature high-quality products as offered in our Smashing shop. Please keep in mind that all Christmas deals are valid only for 24 hours and will then be offered at the normal price.

If you prefer to buy an eBook as a standalone product, feel free to get our eBooks on Amazon or on iTunes. We wish our worldwide Smashing community a blissful last couple of weeks of the old year. Enjoy the countdown to Christmas Eve and always remember to stay Smashing!

Yours sincerely,
The Smashing Team


© Smashing Editorial for Smashing Magazine, 2011.


The Messy Art Of UX Sketching





 



 


I hear a lot of people talking about the importance of sketching when designing or problem-solving, yet it seems that very few people actually sketch. As a UX professional, I sketch every day. I often take over entire walls in our office and cover them with sketches, mapping out everything from context scenarios to wireframes to presentations.

My Desk
My desk.

Although starting a prototype on a computer is sometimes easier, it’s not the best way to visually problem-solve. When you need to ideate website layouts or mobile applications or to storyboard workflows and context scenarios, sketching is much more efficient. It keeps you from getting caught up in the technology, and instead focuses you on the best possible solution, freeing you to take risks that you might not otherwise take.

Many articles discuss the power of sketching and why you should do it, but they don’t go into the how or the methods involved. Sketching seems straightforward, but there are certain ways to do it effectively. In this article, we’ll cover a collection of tools and techniques that I (and many other UX and design folks) use every day.

Sketching ≠ Drawing

Some of the most effective sketches I’ve seen are far from perfect drawings. Just like your thoughts and ideas, sketches are in a constant state of flux, evolving and morphing as you reach a potential solution. Don’t think that you have to be able to draw in order to sketch, although having some experience with it does help.

  • Sketching is an expression of thinking and problem-solving.
  • It’s a form of visual communication, and, as in all languages, some ways of communicating are clearer than others.
  • Sketching is a skill: the more you do it, the better you’ll get at it.

When evaluating your sketches, ask yourself, “How could I better communicate these thoughts?� Getting caught up in evaluating your drawing ability is easy, but try to separate the two. Look at your sketch as if it were a poster. What’s the first thing that’s read? Where is the detailed info? Remember, the eye is drawn to the area with the most detail and contrast.

Just as one’s ability to enunciate words affects how well others understand them, one’s ability to draw does have an impact on how communicative a sketch is. The good news is that drawing and sketching are skills, and the more you do them, the better you’ll get.

OK, let’s get started.

Work In Layers

Often when I’ve done a sketch, the result looks more like a collage than a sketch. Efficiency in sketching comes from working in layers.


Quick video showing how you can use layers to effectively build your sketches.

Technique

Start with a light-gray marker (20 to 30% gray), and progressively add layers of detail with darker markers and pens.

Why?

Starting with a light-gray marker makes this easy. It allows you to make mistakes and evaluate your ideas as you work through a problem. Draw a crooked line with the light marker? No big deal. The lines will barely be noticeable by the time you’re finished with the sketch.

As the pages fill up with ideas, go back in with a darker marker (60% gray) or pen, and layer in additional details for the parts you like. This is also a great way to make a particular sketch pop beside other sketches.

Sketching in layers also keeps you from getting caught up in details right away. It forces you to decide on the content and hierarchy of the view first. If you are sketching an interface that contains a list, but you don’t yet know what will go in the list, put in a few squiggles. Later, you can go back in and sketch a few options for each list item and append them to the page.

Caution

If you start drawing with a ballpoint pen and then go in later with a marker, the pen’s ink will likely smear from the alcohol in the marker.

As you get more confident in your sketching, you will become more comfortable and find that you don’t need to draw as many underlays. But I still find it useful because it allows you to experiment and evaluate ideas as you sketch.

Loosen Up

Technique

When sketching long lines, consider moving your arm and pen with your shoulder rather than from the elbow or wrist. Reserve drawing with your wrist for short quick lines and areas where you need more control.

Why?

This will allow you to draw longer, straighter lines. If you draw from the elbow, you’ll notice that the lines all have a slight curve to them. Placing two dots on the paper, one where you want the line to start and one where you want it to end, is sometimes helpful. Then, orient the paper, make a practice stroke or two, and then draw the line. If you look closely, you’ll see this in the video above.

A bonus to drawing from the shoulder is that much of the motion translates to drawing on a whiteboard; so, in time, your straight lines will be the envy of everyone in the room.

Play To Your Strengths

Technique

Rotate the page before drawing a line in order to draw multiple angles of lines more easily.

Why?

Very few people can draw lines in all directions equally well. Rotating the page allows you to draw a line in the range and direction that works best for you. Don’t try to draw a vertical line if you find it difficult; rotate the page 90 degrees, and draw a horizontal one instead. It’s super-simple but amazingly powerful.

Caution

This does not translate well to a whiteboard, so you’ll still need to learn to draw vertical lines.

Sketching Interactions

Technique

Start with a base sketch, and then use sticky notes to add tooltips, pop-overs, modal windows and other interactive elements.

Why?

Using sticky notes to define tooltips and other interactive elements lets you quickly define interactions and concepts without having to redraw the framework of the application. They are easy to move around and can be sketched on with the same markers and pens you are already using.

  • Define multiple interactions on one sketch, and then strategically remove pieces one at a time before scanning them in or copying the sketch.
  • Use different colors to represent different types of interaction.
  • Is one sticky note not big enough for your modal window? Add another right next to it.
  • Is one sticky note too big for your tooltip, user a ruler as a guide to quickly rip the note down to size.

Sticky Notes used on sketch as pop overs
Explore a variety of interactions and ideas in a single sketch using sticky notes.

Photo copies of sticky notes on sketches as pop overs
Upon photocopying various versions of a sketch, each with different sticky notes, you’ll end up with various distinct sketches.

Copying And Pasting For The Real World

At times, you may want to manually redraw a UI element multiple times in a sketch. This is not always a bad thing, because it gives you the opportunity to quickly iterate and forces you to reconsider your ideas. That being said, an all-in-one scanner or photocopier could dramatically increase your efficiency.

Technique

Use a photocopier to quickly create templates from existing sketches or to redraw an area of a sketch.

Why?

A photocopier is the old-school version of Control + C, Control + V. It makes the production of templates and underlays more efficient. It also boosts your confidence, because if you mess up (and you will mess up), you can easily fix it.

  • Does one part of your interface need to be consistently redrawn in multiple sketches? Run a few copies, and then sketch directly on the print-outs.
  • Did you mess up a part of the sketch? No problem. Cover up that portion of the sketch with a piece of paper or with correction fluid, run off a copy, and then start sketching directly on the print-out.
  • Are you working on a mobile project? Or do you want to make a series of sketches all of the same size? Create a layout and copy off a few rounds of underlays. Easier yet, print off underlays of devices or browsers; a good selection can be found in the article “Free Printable Sketching, Wireframing and Note-Taking PDF Templates.â€�
  • Do you want to change the layout of a sidebar in your last five sketches? Sketch the new sidebar, run off a few copies, and then tape the new sidebars over the old ones. It’s that easy.
  • To use a sketch as an underlay of another similar one, adjust the density or darkness setting on your photocopier to run a copy of the sketch at 20% of it original value.

Another advantage to photocopies is that marker will not smear on a print-out the way a ballpoint pen does. So, whenever you have an area of a sketch to highlight or add color to, run a few copies first.

Caution

Paper cuts.

Sketching over a photo copy
Sketching over a photocopy of the original to reevaluate the sidebar.

Final sketch over photo copy
The final sketch. Notice how the sidebar and its detail are darker than the photocopy. This is intentional, because it allows you to explore ideas in the context of the overall design.

The Design Is In The Details

Use a ruler; specifically, a quilting ruler. Quilting rulers are translucent and are normally printed with a ⅛″ grid screen, letting you see the line you’re drawing relative to the rest of the sketch.

Technique

Use a ruler and a light-gray marker to draw an underlay for a detailed sketch.

Why?

This lets you quickly draw a series of lines that are offset a set distance from each other. This works great for elements such as lists items, charts, buttons and anything else that needs to be evenly spaced. It’s like an analog version of “smart guides.�

Using a quilting ruler to create offset lines
Quickly creating evenly spaced lines with a quilting ruler and 30% gray marker.

Technique

After using a light-gray marker to lay out a sketch, use a ruler and ballpoint pen or black marker to finalize it.

Why?

When sketching in layers, you want the final design or layout to “pop.� A ruler enables you to be more precise in detailed areas and ensures that long edges are straight.

There is no shame in using a ruler. The key is knowing when to use it. Don’t start sketching with a ruler; rather, bring one in when you need the detail and precision. Remember, you’re sketching, not drawing.

Using a ruler to pop various lines on the sketch
Using a ruler to make sections of a sketch drawn with a 70% gray marker pop.

Technique

Use a ruler to quickly rip paper or sticky notes by firmly holding the paper with one hand and ripping away the edge with the other hand.

Why?

It’s quicker then grabbing scissors; you already have the ruler with you; and you can take it through airport security.

After lightly sketching an interface with a light marker, finalize it or make one area pop by using a ruler to lay down darker lines.

Ripping a sticky note with a ruler.
Ripping a sticky note with a ruler.

Tell The Whole Story

Technique

Draw the application in the context of where and how it being used, or frame it with the device it will be used on.

Why?

This forces you to think about the environment that the application will be used in, instills empathy for your users, and establishes understanding of the challenges unique to this application.

I get it. No one wants to sketch out a monitor every time they draw a wireframe. I’m not saying you have to, but a few sketches with context go a long way. Especially with mobile devices, the more context you add to a sketch, the better. Moreover, I always sketch the device for a mobile interface as an underlay, and I often try to sketch the UI at full scale. This forces you to deal with the constraints of the device and makes you aware of how the user may be holding the device.

Caution

Drawing the surrounding environment can be challenging and requires a higher level of sketching competency. Don’t let this intimidate you. If you’re not comfortable sketching the environment or you find it takes too long, use a picture as an underlay instead.

Various sketching of a mobile device in context of their enviroment
Sketching ideas for a mobile application in the context of where it will be used.

Ditch The Sketchbook

Technique

Draw on 8.5 × 11″ copy paper.

Why?

Sketches are for sharing. You can easily hang 8.5 × 11″ sheets on a wall to share ideas with others or to see a project in its entirety. When you need to save a sketch or two, you can easily batch scan them into a computer without ripping them out of the sketchbook. Still not convinced? Copy paper is cheaper; it allows you to use sketches as underlays without photocopying; and you don’t have to choose between book-bound or spiral-bound.

A wall of sketches
One of the many walls of sketches in our office.

What Are You Waiting For?

Sketching is not reserved for designers. Developers, project managers and business analysts can get in on the fun, too. It’s the best way for teams to quickly communicate, explore and share ideas across disciplines. Also, I’ve found that others are more receptive to give feedback and make suggestions when shown sketches than when shown print-outs or screenshots.

Remember, it’s about getting ideas out, reviewing those ideas and documenting them, not about creating a work of art. When evaluating your sketches, ask yourself, “How could I better communicate these thoughts?� Getting caught up in evaluating your drawing ability is easy, but try to separate the two, and know that the more you do it, the better you’ll get.

It’s worth repeating that sketching is the quickest way to explore and share thinking with others. It focuses you on discovering the best possible solution, without getting caught up in the technology.

Go for it! Don’t get caught up in the tools. Make a mess. And have fun!

Tools

Here are links to some of the tools described in this post.

All images by Michael Kleinpaste.

(al) (fi)


© Peiter Buick for Smashing Magazine, 2011.


What I Learned About the Web in 2011

As the year draws to a close, we asked some A List Apart readers to tell us what they learned about the web in 2011. Together their responses summarize the joys and challenges of this magical place we call the internet. We need to continue to iterate, to embrace change, and challenge complexity to keep shipping. Above all, we must continue to reach out to one another, to teach, to support, to help, and to build the community that sustains us.

  •   
  • Copyright © 1996-2010 BlogmyQuery - BMQ. All rights reserved.
    iDream theme by Templates Next | Powered by WordPress