SlideShare a Scribd company logo
Responsive web design
FOR ZOMBIES… by zeeshan khan
What is responsive web design?
It’s not a single piece of technology, but rather, a set of techniques and ideas that form a
effect which we term as “responsive”. Responsive design is an approach to web design
that adjusts to the user, from varying browser sizes to changes in device.
Features of a responsive design
1) Fluid
2) Flexible
3) Flowing
4) Device-agnostic
5) Optimised viewing
Why do we need responsive UI?
The spectrum of screen sizes and resolutions is widening every day, and creating a
different version of an application that targets each individual device is not a practical
way forward. This is the problem that responsive web design addresses head on.
Why do we need responsive UI?
It enables to design a single version of the application that would run in different
devices and of browsers of different sizes and would adjust itself according to the
viewport.
Examples of responsive websites
Components of a responsive design
1) Fluid layout
2) Responsive images
3) Responsive fonts
4) CSS Media Queries
Fluid layout
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.
Fluid layout
Fluid layout
An ideal fluid layout :
1) Works in all major browsers
2) Shrinks to 780px. This accommodates users with 800x600 resolution, with no horizontal
scroll!
3) Grows to 1260px. This accommodates users with 1280x768 resolution and everything in
between.
4) This accommodates 90%+ of all internet users. You could easily make this layout grow larger,
but be mindful of how line-length affects readability. Nobody wants to read a line of text
1980px long.
5) Sidebars are of "equal height" to the main content
6) Page content is centred for users with even higher resolutions.
Responsive images
Basic :
Styling foreground images to adjust to the width of their container is very easy.
img {max-width : 100 % }
embed, object, video { max-width : 100 %}
In most cases, that tiny style rule will do the trick! Once it’s in place, if the container around the
image becomes narrower than the width of the image, then the image will scale down to match
the width of its container. Setting the max-width to 100% also ensures that the image does not
scale larger than its actual size, which would significantly reduce the image’s quality.
Responsive images
The performance problem :
With the responsive image solution outlined above, all devices are fed the same images. Small
icons and logos might not be too bad, but the problem compounds quickly as the images get
larger and heftier.
Retina images exacerbate the problem — you don’t want to send a big Retina image to a device
that isn’t capable of displaying its full detail! Should we really be sending a 990 × 300-pixel 100
KB image meant for desktop viewers to a mobile phone?
Responsive font
Principles of responsive typography :
1) The typography should be of resizable type. That means type that not only resizes
based on the size of the screen, but that is also resizable by the user.
2) The line lengths should be optimized, which maintain readability. That means for
some screens, keeping the content area smaller and the line lengths shorter makes
more sense, even though the content theoretically could stretch wider.
Responsive font
An example of responsive style in LESS :
@media only screen and (max-width: 499px) {
html {
font-size: @basefont-size-singlecol-traditional + 1;
&.BigFont {
font-size: @basefont-size-singlecol-traditional + 7;
}
&.multicol {
font-size: @basefont-size-multicol-traditional + 1;
}
}
}
Media queries
CSS3 media queries 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.
In html …
<link rel=“stylesheet” type=“text/css” media = “screen and (max-device-width : 480px)” href =
“example.css” />
In CSS …
@media screen and (max-device-width : 480px) {….}
@import url(“example.css”) screen and (max-device-width : 480px);
Media queries
320 pixels For small screen devices, like phones, held in portrait mode
480 pixels For small screen devices, like phones, held in landscape mode
600 pixels Smaller tablets, like the kindle (600x800) held in portrait
mode
768 pixels Ten-inch tablets like the iPad(768x1024) held in portrait
mode.
1024 pixels Tablets like the iPad held in landscape mode, as well as
certain laptop, netbook.
1200 pixels For widescreen displays, primarily laptop and desktop
browsers
Media features
1) width
2) height
3) color
4) device-width
5) color-index
6) device-height
7) orientation
8) resolution
9) aspect-ratio
Browser issues and compatibilty

More Related Content

PDF
Design responsively
PDF
Responsive Web Design
PPTX
Responsive
KEY
Optimizing HTML Email for Mobile | WDYK
PDF
CrowDM system
PPTX
My next holidays ines moreno
PDF
A One-Pass Triclustering Approach: Is There any Room for Big Data?
PDF
Preterite
Design responsively
Responsive Web Design
Responsive
Optimizing HTML Email for Mobile | WDYK
CrowDM system
My next holidays ines moreno
A One-Pass Triclustering Approach: Is There any Room for Big Data?
Preterite

Viewers also liked (14)

PPTX
Radio recommender system for FMHost
PDF
Social Learning in Networks: Extraction Deterministic Rules
PDF
Pattern Mining and Machine Learning for Demographic Sequences
PPTX
AIST 2016 Opening Slides
PDF
Putting OAC-triclustering on MapReduce
PDF
A lattice-based consensus clustering
PDF
Pattern-based classification of demographic sequences
PDF
Version control with GIT
PDF
Intro to Data Mining and Machine Learning
PDF
Context-Aware Recommender System Based on Boolean Matrix Factorisation
PPTX
RAPS: A Recommender Algorithm Based on Pattern Structures
PDF
Поиск частых множеств признаков (товаров) и ассоциативные правила
PPT
Paparan bab 12 regulasi dan antitrust
PDF
Introduction to jQuery
Radio recommender system for FMHost
Social Learning in Networks: Extraction Deterministic Rules
Pattern Mining and Machine Learning for Demographic Sequences
AIST 2016 Opening Slides
Putting OAC-triclustering on MapReduce
A lattice-based consensus clustering
Pattern-based classification of demographic sequences
Version control with GIT
Intro to Data Mining and Machine Learning
Context-Aware Recommender System Based on Boolean Matrix Factorisation
RAPS: A Recommender Algorithm Based on Pattern Structures
Поиск частых множеств признаков (товаров) и ассоциативные правила
Paparan bab 12 regulasi dan antitrust
Introduction to jQuery
Ad

Similar to Responsive web design (20)

PPTX
esponsive web design means that your website (
PDF
Responsive Design Tools & Resources
PDF
Responsive Websites
PPTX
Responsive Web Design - NYC Webgrrls
PPTX
Responsive Web Design
PPT
Mobile Monday Presentation: Responsive Web Design
PDF
Responsive Web Site Design
PPT
Responsive Web Design
PPTX
Talk 03 responsive-web-design
PDF
Monkeytalk Fall 2012 - Responsive Web Design
PPTX
Responsive web design ppt
PDF
Responsive Design and Joomla!
PDF
Going responsive
PDF
(Practical) Beyond Responsive Web Design (WordCamp Miami 2011)
PDF
Responsive web design
PDF
Introduction to Responsive Design v.2
PDF
Responsive web design
KEY
Responsive Web Design
PPTX
Responsive web designing
PDF
Sbwire 531031
esponsive web design means that your website (
Responsive Design Tools & Resources
Responsive Websites
Responsive Web Design - NYC Webgrrls
Responsive Web Design
Mobile Monday Presentation: Responsive Web Design
Responsive Web Site Design
Responsive Web Design
Talk 03 responsive-web-design
Monkeytalk Fall 2012 - Responsive Web Design
Responsive web design ppt
Responsive Design and Joomla!
Going responsive
(Practical) Beyond Responsive Web Design (WordCamp Miami 2011)
Responsive web design
Introduction to Responsive Design v.2
Responsive web design
Responsive Web Design
Responsive web designing
Sbwire 531031
Ad

Recently uploaded (20)

PDF
KodekX | Application Modernization Development
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
sap open course for s4hana steps from ECC to s4
PPTX
MYSQL Presentation for SQL database connectivity
PPT
Teaching material agriculture food technology
PPTX
Spectroscopy.pptx food analysis technology
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
Big Data Technologies - Introduction.pptx
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Electronic commerce courselecture one. Pdf
PPTX
Programs and apps: productivity, graphics, security and other tools
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Empathic Computing: Creating Shared Understanding
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
KodekX | Application Modernization Development
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Mobile App Security Testing_ A Comprehensive Guide.pdf
sap open course for s4hana steps from ECC to s4
MYSQL Presentation for SQL database connectivity
Teaching material agriculture food technology
Spectroscopy.pptx food analysis technology
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
NewMind AI Weekly Chronicles - August'25 Week I
Big Data Technologies - Introduction.pptx
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Electronic commerce courselecture one. Pdf
Programs and apps: productivity, graphics, security and other tools
Understanding_Digital_Forensics_Presentation.pptx
Empathic Computing: Creating Shared Understanding
Advanced methodologies resolving dimensionality complications for autism neur...
Building Integrated photovoltaic BIPV_UPV.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Per capita expenditure prediction using model stacking based on satellite ima...

Responsive web design

  • 1. Responsive web design FOR ZOMBIES… by zeeshan khan
  • 2. What is responsive web design? It’s not a single piece of technology, but rather, a set of techniques and ideas that form a effect which we term as “responsive”. Responsive design is an approach to web design that adjusts to the user, from varying browser sizes to changes in device.
  • 3. Features of a responsive design 1) Fluid 2) Flexible 3) Flowing 4) Device-agnostic 5) Optimised viewing
  • 4. Why do we need responsive UI? The spectrum of screen sizes and resolutions is widening every day, and creating a different version of an application that targets each individual device is not a practical way forward. This is the problem that responsive web design addresses head on.
  • 5. Why do we need responsive UI? It enables to design a single version of the application that would run in different devices and of browsers of different sizes and would adjust itself according to the viewport.
  • 7. Components of a responsive design 1) Fluid layout 2) Responsive images 3) Responsive fonts 4) CSS Media Queries
  • 8. Fluid layout 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.
  • 10. Fluid layout An ideal fluid layout : 1) Works in all major browsers 2) Shrinks to 780px. This accommodates users with 800x600 resolution, with no horizontal scroll! 3) Grows to 1260px. This accommodates users with 1280x768 resolution and everything in between. 4) This accommodates 90%+ of all internet users. You could easily make this layout grow larger, but be mindful of how line-length affects readability. Nobody wants to read a line of text 1980px long. 5) Sidebars are of "equal height" to the main content 6) Page content is centred for users with even higher resolutions.
  • 11. Responsive images Basic : Styling foreground images to adjust to the width of their container is very easy. img {max-width : 100 % } embed, object, video { max-width : 100 %} In most cases, that tiny style rule will do the trick! Once it’s in place, if the container around the image becomes narrower than the width of the image, then the image will scale down to match the width of its container. Setting the max-width to 100% also ensures that the image does not scale larger than its actual size, which would significantly reduce the image’s quality.
  • 12. Responsive images The performance problem : With the responsive image solution outlined above, all devices are fed the same images. Small icons and logos might not be too bad, but the problem compounds quickly as the images get larger and heftier. Retina images exacerbate the problem — you don’t want to send a big Retina image to a device that isn’t capable of displaying its full detail! Should we really be sending a 990 × 300-pixel 100 KB image meant for desktop viewers to a mobile phone?
  • 13. Responsive font Principles of responsive typography : 1) The typography should be of resizable type. That means type that not only resizes based on the size of the screen, but that is also resizable by the user. 2) The line lengths should be optimized, which maintain readability. That means for some screens, keeping the content area smaller and the line lengths shorter makes more sense, even though the content theoretically could stretch wider.
  • 14. Responsive font An example of responsive style in LESS : @media only screen and (max-width: 499px) { html { font-size: @basefont-size-singlecol-traditional + 1; &.BigFont { font-size: @basefont-size-singlecol-traditional + 7; } &.multicol { font-size: @basefont-size-multicol-traditional + 1; } } }
  • 15. Media queries CSS3 media queries 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. In html … <link rel=“stylesheet” type=“text/css” media = “screen and (max-device-width : 480px)” href = “example.css” /> In CSS … @media screen and (max-device-width : 480px) {….} @import url(“example.css”) screen and (max-device-width : 480px);
  • 16. Media queries 320 pixels For small screen devices, like phones, held in portrait mode 480 pixels For small screen devices, like phones, held in landscape mode 600 pixels Smaller tablets, like the kindle (600x800) held in portrait mode 768 pixels Ten-inch tablets like the iPad(768x1024) held in portrait mode. 1024 pixels Tablets like the iPad held in landscape mode, as well as certain laptop, netbook. 1200 pixels For widescreen displays, primarily laptop and desktop browsers
  • 17. Media features 1) width 2) height 3) color 4) device-width 5) color-index 6) device-height 7) orientation 8) resolution 9) aspect-ratio
  • 18. Browser issues and compatibilty