Whether you’re a beginner or a seasoned web professional, creating responsive designs can be confusing at first, mostly because of the radical change in thinking that’s required. As time goes on, responsive web design is drifting away from the pool of passing fads and rapidly entering the realm of standard practice. In fact, the magnitude of this paradigm shift feels as fundamental as the transition from table based layouts to CSS. Simply put, this is a very different way of designing websites and it represents the future.
Over the past year, responsive design has become quite the hot topic in the web design community. If all the buzz has you feeling like Rip Van Winkle waking up in the 21st century, this summary will help you catch up with the times.
What is responsive design?
Let’s just get right into it: Believe it or not, the Treehouse blog that you’re reading this article on is actually a responsive design! To see it in action, open this article on a desktop browser and slowly make the browser thinner and wider. You should see the layout magically adjust itself to more comfortably fit the new width of the browser, even if you make the page as skinny as the resolution of a mobile phone. Here are some screenshots of what the Think Vitamin design looks like at various screen resolutions:



It’s hard to talk about responsive design without mentioning its creator, Ethan Marcotte. If you haven’t read his seminal article about responsive web design, I highly recommend you check it out (seriously, this is required reading). In the article, Ethan discusses all the key ideas that form responsive web design; and that’s really what responsive design is, technically. It’s not a single piece of technology, but rather, a set of techniques and ideas that form a whole. This is one of the main sources of confusion, and in a moment we’ll break things down and take a look at each part.
So, what is responsive design exactly? Actually, a better question to ask might be, what problem does responsive web design solve? Well, as you may have noticed, computers aren’t the only piece of hardware with a web browser anymore. I might get myself in trouble by saying this, but the iPhone was one of the first mobile devices to feature a really great web browser, and it really put the spotlight on upgrading the experience of the mobile web. Many other devices followed suit and, seemingly overnight, the face of the mobile web had changed.
The changing landscape of web browsers meant that users expectations also changed; people expected to be able to browse the web on their phones just as easily as they browse the web on a desktop computer. So, in response to this (if you’ll excuse the pun) the web design community started creating mobile versions of their websites. In hindsight, this wasn’t really the way forward, but at the time it seemed like a reasonable idea. Every website would have their normal ‘desktop’ version of their site, and as a bonus, a ‘mobile’ version.
Technology never stops marching forward, so not long after the phone hardware market had been revolutionized, other form factors surged in popularity. In addition to phones and personal computers, devices like touchscreen tablets and small notebook computers (netbooks, if you prefer the term) started appearing everywhere.
It’s not just small screens, either. Large, high-resolution displays are starting to become much more common than they used to be, and it would be a waste for web designers to not take advantage of this.
In summary, the spectrum of screen sizes and resolutions is widening every day, and creating a different version of a website that targets each individual device is not a practical way forward. This is the problem that responsive web design addresses head on.
Previously, I mentioned that responsive web design is not a single piece of technology, but rather, a collection of techniques and ideas. Now that we have a better idea of the problem space we’re addressing, let’s take a look at each part of the solution.
Fluid Grids
The first key idea behind responsive design is the usage of what’s known as a fluid grid. In recent memory, creating a ‘liquid layout’ that expands with the page hasn’t been quite as popular as creating fixed width layouts; page designs that are a fixed number of pixels across, and then centered on the page. However, when one considers the huge number of screen resolutions present in today’s market, the benefit of liquid layouts is too great to ignore.
Fluid grids go a few steps beyond the traditional liquid layout. Instead of designing a layout based on rigid pixels or arbitrary percentage values, a fluid grid is more carefully designed in terms of proportions. This way, when a layout is squeezed onto a tiny mobile device or stretched across a huge screen, all of the elements in the layout will resize their widths in relation to one another.
In order to calculate the proportions for each page element, you must divide the target element by its context. Currently, the best way to do this is to first create a high fidelity mockup in a pixel based imaged editor, like Photoshop. With your high fidelity mockup in hand, you can measure a page element and divide it by the full width of the page. For example, if your layout is a typical size like 960 pixels across, then this would be your “container” value. Then, let’s say that our target element is some arbitrary value, like 300 pixels wide. If we multiply the result by 100, we get the percentage value of 31.25% which we can apply to the target element. Here’s the math:

If your values don’t work out so neatly, and you get some floating point value with many numbers after the decimal, don’t round the value! We humans may enjoy nice neat numbers and making our code look pretty, but your computer (and the final look of your design) will benefit from the seemingly excessive mathematical precision.
Fluid grids are a very important part of creating a responsive design, but they can only take us so far. When the width of the browser becomes too narrow, the design can start to severely break down. For example, a complex three-column layout isn’t going to work very well on a small mobile phone. Fortunately, responsive design has taken care of this problem by using media queries.
Media Queries
The second part of responsive design is CSS3 media queries, which currently enjoy decent support across many modern browsers. If you’re not familiar with CSS3 media queries, they basically allow you to gather data about the site visitor and use it to conditionally apply CSS styles. For our purposes, we’re primarily interested in the min-width media feature, which allows us to apply specific CSS styles if the browser window drops below a particular width that we can specify. If we wanted to apply some styling to mobile phones, our media query might look something like the following.
@media screen and (min-width: 480px) { .content { float: left; } .social_icons { display: none } // and so on... } |
Using a series of media queries like this, we can work our way up towards larger resolutions. The set of pixel widths I recommend targeting are as follows:
- 320px
- 480px
- 600px
- 768px
- 900px
- 1200px
Again, these are just recommended, and should serve as a starting point. In an ideal world, you would adjust your layout to perfectly match every device width, but often times you have to pick and choose where you spend your efforts. From a more practical perspective, the resolutions that a design targets will be based on the resolutions of the people using that design, time and budget constraints, highly contextual situations, and so on. In summary, when deciding what resolutions to target, you should use your judgement. Targeting more resolutions is going to take more time, and assuming you’re not an immortal being with unlimited time, that effort should be spent carefully.
Again, to see a responsive design in action, simply open this article up on a desktop browser and slowly resize the browser to make it thinner. You should see all the page elements adjusting themselves automagically to fit the new width, going all the way down to the size of a mobile browser.
Resources
Responsive web design is about a year old now, and there are plenty of resources that can help you learn more about it. On our high-quality video training service Treehouse, we have many videos that go in depth on the topic. Here are some links:
- Responsive Web Design Video Course on Treehouse
- Video: Introduction to Responsive Web Design
- Ethan Marcotte’s article on Responsive Web Design
- The W3C specification for CSS3 Media Queries
- A great roundup of responsive design techniques via Smashing Magazine
Hopefully this article helped, but if you’re still feeling confused about responsive design, don’t be afraid to leave a question or comment. If you’re already utilizing responsive web design in your site or web application, share the link here so we can see!
Bonus
We’re starting to add free Youtube videos on responsive web design so if you’re interested in learning more, you can subscribe to our channel here: http://trhou.se/subscribe-treehouse-yt
Here’s a video to start:



Comments
Pingback: Rising Stars of The Future Of Web Design: Micro InterviewsTreehouse Blog
Pingback: Free Biscuit Downloader
Pingback: Calgary Engagement Photographer
Pingback: Get Facebook Subscribers
Pingback: Build a Website Just Like This One | Black Market Media Dot Info
Pingback: Facebook Subscribers
Pingback: No Moar Mobile Version Plugins! — Harlequin Girl
Pingback: How to Enlarge Your Penis
Pingback: Beginner’s Guide to Responsive Web Design Treehouse Blog « Magno Valdetaro | Feedshare
Pingback: Beginner's Guide to Responsive Web Design – Treehouse Blog | inLine Media RSS Blog
Pingback: Beginner's Guide to Responsive Web Design – Treehouse Blog | Cell Mobile Guide
Pingback: Free Biscuit Downloader
Pingback: uk casino sites
Pingback: how to play roulette
Pingback: Beginner's Guide to Responsive Web Design - Treehouse Blog | deSign of the Times | Scoop.it
Pingback: Beginner's Guide to Responsive Web Design – Treehouse Blog | Internet blog
Pingback: ageless male
Pingback: Leonardo Garcia Fischer
Pingback: Build A Better Website With These Web Design Tips : Doctor Preppers Family Preparedness Journal|Promoting the preparedness and self-reliance lifestyle, family survival, tips for survivalists and preppers, how to be prepared for a personal, man-made or nat
Pingback: Dreamweaver Tutorial: What is Responsive Web Design?
Pingback: Responsive Web Design « ash1520
Pingback: Dorian Heyward
Pingback: Responsive Web Design | deejayskywalker
Pingback: What I Learned This Week, 9.7.12 « Point Park Marketing Bog
Pingback: Free Biscuit Downloader
Pingback: Brushless Conversion
Pingback: click here
Pingback: tutorial (css[1]) | Pearltrees
Pingback: Chris Chu
Pingback: newborn photography augusta ga
Pingback: models
Pingback: Beginner’s Guide to Responsive Web Design | New Day Interactive
Pingback: Anna Sawyer
Pingback: Filme Porno
Pingback: Costa Rica Rental Car
Pingback: Fun City
Pingback: Important Observations About Mobile Web Design | Wisdom Health Prosperity
Pingback: free advertising and free traffic
Pingback: trouble ejaculating
Pingback: webmaster free marketing
Pingback: Mobile Websites Are Dead. | Creative Multimedia Solutions
Pingback: Aventura Movers
Pingback: no exam life insurance
Pingback: Elvis Chicles
Pingback: Jame Jorden
Pingback: wine classes
Pingback: URL
Pingback: Loren Aliment
Pingback: A great roundup of responsive design techniques « SEO HEADLINE
Pingback: Creating a Grid for Product View in PHP for a eCommerce Site
Pingback: Using inline-block to Display a Product Grid View | WebDesignAdmin.tk
Pingback: Media Queries and responsive web design | Samson Muhangi
Pingback: Develop in the Cloud - Keith Dawson - Responsive Design
Pingback: How do I make my website 'mobile' friendly?
Pingback: Liquid and responsive designs, the rise of mobile and tablets, and an epiphany about my project « LRD on DMT
Pingback: Responsive Web Design using Twitter Bootstrap, Spring MVC | Spring under the hood
Pingback: Latest in JQuery, Javascript frameworks for Web development | Spring under the hood
Pingback: Responsive Website Design | TXAD Blog
Pingback: Introducing PSD To Responsive HTML | The PSD To HTML/CSS Blog | Where We Blog Great Ideas
Pingback: Responsive Web Design « Kylie Jean Weglo
Pingback: Optimizacija za mobitele - androide
Pingback: What is responsive web design? | Serendipity Online Marketing Ltd
Pingback: About the Webmaster - Professional, Affordable and Creative
Pingback: Fully responsive unordered list with CSS only [pure CSS] | Christian Fei
Pingback: Buying website design themes: is it the right choice for my business? | Freelance Marketing Blog
Pingback: Responsive Web Design Tutorials Video - Responsive Web Design Blog
Pingback: Responsive Web Design – The Shape of the Future « FutureWebHorsham
Pingback: 8 Free Responsive Web Design Tutorials. - Responsive Web Design Blog
Pingback: responsive web design | kiana shanel
Pingback: Responsive Web Design: CSS Grid Template | 9to5IT
Pingback: 15+ Comprehensive Responsive Web Design Tutorials | gonzoblog
Pingback: 15 Interessante responsive webdesign tutorials » claudia angenent
Pingback: 响应式设计的十个基本技巧 | 博客 - 伯乐在线
Pingback: Technol.gy | The Technology Marketing Blog
Pingback: Responsive Design Techniques
Pingback: A beginners guide to responsive design | MM&B Studio
Pingback: Responsive 设计的十个基本技巧 | 5迷3道 | HTML5和CSS3的真材实料
Pingback: What is a Responsive Web Design?
Pingback: What you need to know, to be a UI Designer « The Mythical User
Pingback: Does your content travel? | Coull Blog
Pingback: Marty's WebPress | Let’s Get Responsive Up In Here!
Pingback: 转载:Responsive设计的十个基本技巧 | Yuan Peng`s Tech Blog
Pingback: To Web or to Native…That is the question | itechnology.am
Pingback: Для Web или родной … Вот в чем вопрос | itechnology.am
Pingback: Համացանցային կամ բնիկ … Դա է հարցը: | itechnology.am
Pingback: more responsive web design info for designers | Misenheimer Creative
Pingback: Responsive Web Design – Coming Now to Your Mobile Device | Marketsmith, Inc
Pingback: Responsive Web Design. Adaptades per tots els dispositius.hipèric
Pingback: 佈景主題:Whatever Lab | Lab Crocodile
Pingback: 初學者淺談自適應網頁設計 | Lab Crocodile
Pingback: Responsive Design :: Morgan Tepsic
Pingback: Advent Blog Post 18/12/12 - Really Good SEO
Pingback: Beginner’s Guide to Responsive Web Design | Dnyanesh Bhonde | WEB DESIGNER & FRONT-END DEVELOPER
Pingback: Be More Responsive | CORALthirteen
Pingback: Le Responsive Design : la grande tendance 2013
Pingback: 动态网页设计(RWD) | 自學百科
Pingback: What Is Responsive Web Design, What Makes a Website Design More Responsive, and Why is it so Important? | Web Marketing Daily Post
Pingback: Project: Rampture Calculator – modern rockstar | design art tech new media | joseph maddela
Pingback: top 3 online fundraising tips for 2013 | living earth adventure
Pingback: 4 Reasons to Go Responsive for the New Year – Jibe Talkin'
Pingback: ClearEdge Marketing: Innovative Marketing Solutions
Pingback: Responsive Web Design | cKegel
Pingback: Responsive Web Design « I am also Zach Evans
Pingback: Responsive Web Design « breezycunha
Pingback: Responsive Web Design | jlbecke
Pingback: What is Responsive Design? | Dome Projects
Pingback: Responsive Web Design – First Post! | avivaallegro
Pingback: Responsive Web Design (RWD) Important? or Not? | hollylei
Pingback: Responsive Web Design: What is it? Why is it increasingly more important? « spiderb
Pingback: Best Responsive Web Design Resources for Designers | Website Designing | Tech Design Blog
Pingback: Responsive Design - One site to rule them all
Pingback: Things for this week | A context-aware web
Pingback: Dieter Rams and Why Designers Will Lead the Future - The Industry
Pingback: Fahim's Blog : WordPress, Web Design and Development , Graphics Design & Inspiration
Pingback: Examples and articles on Responsive Design « Web Design Intermediate
Pingback: Your first responsive web design
Pingback: 60+ Responsive Web Design Tutorial Roundup – Spoil Your Mobile visitors! | Good Favorites
Pingback: Beginner’s Guide to Responsive Web Design. « kaylahull11
Pingback: Need advice setting up mobile-friendly site . mobi - CSS
Pingback: VANUiT UNITiD – Responsive Design. Content, componenten en breakpoints | UNITiD.nl
Pingback: Blogplattform FHNW | My links 19. February 2013
Pingback: Wk 3/Tut 2 : Responsive Web Design – Part 1
Pingback: 5 Mobile Optimization Strategies You Can't Afford To Ignore - Vysibility
Pingback: Week 3 – Responsive Web Design | Musings of a 21st Century Renaissance Man
Pingback: Be Responsive: The Importance of Responsive Web Design :: Jacine Arias Web
Pingback: Ten things you need to know about responsive design » Mobimatter
Pingback: Hostmethod » Responsive Resources
Pingback: – Responsive Web Design
Pingback: ePortfolio Update: Boy was I wrong about mobile design | Library, Baby!
Pingback: Responsive web design is the future. | Artesano's Workshop
Pingback: Further reading on responsive design | WEB DESIGN COMM
Pingback: 40 articles and resources to improve your responsive design skills - Web Hosting Blog
Pingback: 10 Things You Need To Know About Responsive Design - Firm8
Pingback: Dieter Rams and Why Designers Will Lead the Future | The Industry
Pingback: Responsive web design | I heart digital
Pingback: Responsive Web Design | Assignments
Pingback: Be More Responsive |
Pingback: Beginner’s Guide to Responsive Web Design | Mobile.pro
Pingback: Dusefull php links | PHP MySQL
Pingback: Year 2013 | Shinyee
Pingback: What is a Responsive Website? | rdhenker