Questions tagged [responsive-design]

Responsive Web Design (RWD) is an approach to Web design and development that aims at crafting sites to provide optimal experiences across a wide range of devices based on screen size, platform, and orientation.

Responsive Web Design (RWD) is an approach to Web design and development that aims at crafting sites to provide optimal experiences across a wide range of devices based on screen size, platform, and orientation. Proper execution of RWD can cut down on overall development time as multiple versions of the same website do not need to be created to target specific devices or screen resolutions.

The practice of RWD consists of a variety of techniques which include flexible grids and layouts, images, and an intelligent use of CSS media queries. The goal is to provide a consistent viewing experience across multiple devices. As the user switches from their desktop to their mobile phone or tablet, the website should automatically switch to accommodate for resolution, image size, and scripting abilities. In other words, the website should respond to the user's device or preferences on the fly.

Beginnings

Responsive Web Design got its start when it was first coined as a theory by Ethan Marcotte. His article "Responsive Web Design," published in a May 2010 article in A List Apart outlined the building blocks of making a responsive website and outlined beginning practices to accomplish fluid designs.

Browser Compatibility

All current browsers currently support the means to facilitate responsive design. Some older browsers (such as Internet Explorer 8) may require polyfills to bridge small gaps in functionality. However, since the goal of RWD is to allow the site to respond to the device it is being viewed on, you may opt-out of supporting older browsers that do not exist on mobile devices.

Current Challenges

Currently, the biggest challenge with RWD is image support. For example, you would want a very high-quality image on the desktop view of your website, but you would not want to send such a big image to small screen on a mobile device. There are currently many theories and techniques to bridge this gap, however most fall short in some aspect.

The W3C have proposed the <picture> element and the <img srcset=""> attribute to remedy this situation, however it has not been worked into all the major browsers yet.

Quickly Starting with RWD

While many developers chose to manage RWD on their own, there are several responsive-ready HTML5 frameworks that you can choose from to hit the ground running.

More information on Responsive Web Design

Related Tags

17320 questions
1736
votes
41 answers

Font scaling based on size of container

I'm having a hard time getting my head around font scaling. I currently have a website with a body font-size of 100%. 100% of what though? This seems to compute out at 16 pixels. I was under the impression that 100% would somehow refer to the size…
Francesca
  • 26,842
  • 28
  • 90
  • 153
1422
votes
33 answers

Maintain the aspect ratio of a div with CSS

I want to create a responsive div that can change its width/height as the window's width changes. Are there any CSS rules that would allow the height to change according to the width, while maintaining its aspect ratio? I know I can do this via…
jackb
  • 14,241
  • 3
  • 17
  • 7
600
votes
9 answers

Height equal to dynamic width (CSS fluid layout)

Is it possible to set same height as width (ratio 1:1)? Example +----------+ | body | | 1:3 | | | | +------+ | | | div | | | | 1:1 | | | +------+ | | | | | | | | | | …
Thomas Norman
  • 6,003
  • 3
  • 15
  • 4
595
votes
10 answers

What is the difference among col-lg-*, col-md-* and col-sm-* in Bootstrap?

What is the difference among col-lg-* , col-md-* and col-sm-* in Twitter Bootstrap?
436
votes
34 answers

Responsive font size in CSS

I've created a site using the Zurb Foundation 3 grid. Each page has a large h1: body { font-size: 100% } /* Headers */ h1 { font-size: 6.2em; font-weight: 500; }
user2213682
  • 4,375
  • 3
  • 14
  • 6
405
votes
5 answers

Fluid or fixed grid system, in responsive design, based on Twitter Bootstrap

I'm getting confused about the various options in the twitter bootstrap grid, and how they go together. To begin with, you can have an ordinary fixed container, or a container-fluid. Then either one can include either an ordinary row, or a fluid…
jrochkind
  • 22,799
  • 12
  • 59
  • 74
386
votes
18 answers

Does "display:none" prevent an image from loading?

Every responsive website development tutorial recommends using the display:none CSS property to hide content from loading on mobile browsers so the website loads faster. Is it true? Does display:none not load the images or does it still load the…
nasty
  • 6,797
  • 9
  • 37
  • 52
347
votes
9 answers

Hiding elements in responsive layout?

Looking through bootstrap it looks like they support collapsing the menubar items for smaller screens. Is there something similar for other items on the page? For example, I have a along with nav-pills floated right. On a small screen this causes…
Kaitlyn2004
  • 3,879
  • 4
  • 16
  • 16
336
votes
14 answers

Making button go full-width?

I want a button to take up the full width of the column, but having difficulties...
How do I make the button as…
user1438003
  • 6,603
  • 8
  • 30
  • 36
243
votes
6 answers

How to style a div to be a responsive square?

I want my div to adapt its height to always equal its width. The width is percental. When the parent's width decreases, the box should decrease by keeping its aspect ratio. How to do this is CSS?
danijar
  • 32,406
  • 45
  • 166
  • 297
242
votes
12 answers

What's the best way to make a d3.js visualisation layout responsive?

Assume I have a histogram script that builds a 960 500 svg graphic. How do I make this responsive so on resize the graphic widths and heights are dynamic?