Essentials of Responsive Design
One size fits all
In the pioneering days of the Web sites just needed to be viewed on standard computers but now, as technology gets more and more advanced, a myriad of different platforms are emerging, from smartphones through to gaming devices, tablets and even smart TVs.
Designing for each and every one of these devices individually would be time consuming, expensive and almost never ending, but as the use of these devices becomes increasingly embedded in peoples’ lives, providing a universally satisfying experience is vitally important. Very soon the majority of internet users will seek to access content with mobile devices first and they will demand high production values.
The most effective way for website owners to meet the challenge of multiple devices is to treat them as integral parts of the same experience. The practice of Responsive Web Design (RWD), which was first outlined by Ethan Marcotte in 2010, allows single sites to be produced that are not only more flexible, but more adaptive to the media that renders them, elegantly restructuring in response to the constraints imposed by the user’s device of choice.
‘Mobile First’
Setting viewports and media queries
max-width: 1024px (styles for narrow desktop browsers and iPad landscape)
max-width: 768px (styles for narrower desktop browsers and iPad portrait)
max-width: 480px (styles for iPhone/Android landscape)
max-width: 320px (styles for iPhone/Android portrait)
max-width: 240px (styles for smaller devices)
Feature detection and fallbacks
Fluid grids
Flexible images
The importance of adaptive/structured content
Providing multiple video formats
MPEG 4 (.mp4 or .m4v)
Ogg (.ogv)
Flash Video (.flv)
WebM (.webm)
Audio Video Interleave (.avi)
H.264 - also known as MPEG-4
Theora
VP8
MPEG-1 Audio Layer 3 (MP3)
Advanced Audio Coding (AAC)
Vorbis (Ogg Vorbis)
WebM (VP8 + Vorbis)
H.264 baseline video and AAC audio in an MP4 container
Theora video and Vorbis audio in an Ogg container
Hybrid apps
Testing
iPhone/iPad/iOS emulator with iOS SDK (Software Development Kit)
Android SDK and emulator
Opera Mini Simulator
Copyright John Pitman 2020