SlideShare a Scribd company logo
Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |
Israel JavaScript Conference
Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |
Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |
Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |
• Introducing and the need for RWD
Science
• The Science of Responsive Web Design (RWD)
Art
• Design approach
Test
• Testing and Debugging
Rules
• Rules/Suggestions for a successful
implementation of RWD
Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |
Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |
 Website rolled out to millions
 Needed to be Light, Lean and
Lightning fast
 Non-reflexive, responsive server
infrastructure unlike Amazon S3
 Want mobile but no history of
mobile at the Ministry and no
hardware devices
 Short development time
Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |
 No time/ability to learn native
mobile code (obj C, java)
 Use current skill-sets
 Needed to be maintainable
 Small team
 High profile project watched at
the highest levels
 NO PRESSURE!
Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |
Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |
This was a mistake!
Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |
Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |
 Standalone
page, multiple files
 Fixed-width layouts
 Focus on pixels
 Doesn’t display well
on mobile
 Single page/file
 Fluid layouts
 Focus on EMs / %
 Display adjusts to
different layouts and
orientations
Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |
 CSS Reset
 A flexible, grid-based layout
 Flexible images and media
 Media queries, a module from the CSS3
specification
http://responsivewebdesign.com/robot/
http://www.starbucks.com/
Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |
Each browser calculates differently:
1. Blocks
2. Margins
3. Padding
CSS Reset’s normalize
cross-browser
incompatibility for CSS
layouts
http://meyerweb.com/eric/tools/css/reset/
http://html5boilerplate.com/
Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |
Font = 100% = 16px (default)
Fonts will always be proportional
body {
background-color: #DCDBD9;
color: #2C2C2C;
font: normal 100% Cambria, Georgia;
}
h1 a {
color: #747474;
font: bold 11px Arial, sans-serif;
letter-spacing: 0.15em;
text-transform: uppercase;
text-decoration: none;
}
target / context = result
24 / 16 = 1.5
h1 {
/* 24px / 16px */
font-size: 1.5em;
}
11 / 24 =
Target = 11px, headline = 24px
= . %
Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |
Proportional blocks
Margins keep blocks lined up
#page {
width: 960px;
margin: 0 auto;
}
Non-responsive
Non-fluid
Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |
Proportional blocks
Margins keep blocks lined up
#page {
width: 90%;
margin: 36px auto;
}
Responsive
.blog {
margin: 0 auto 53px;
width: 93.75%;
/* 900px / 960px */
}
900 / 960 =
Fluid
Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |
img {
max-width: 100%;
height: auto;
width: auto9; /* ie8 */
}
Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |
@media screen and (device-pixel-ratio: 1.5)
{
/*adjust your layout for 1.5 hardware pixels to
each reference pixel*/
}
<link rel="stylesheet" href="paper.css" media="print" />
@media print {
body {
font-size: 15pt;
}
}
@media screen and (min-device-width: 480px) and (orientation: landscape){
body {
font-size: 100%;
}
}
http://stephen.io/mediaqueries/
http://www.javascriptkit.com/dhtml
tutors/cssmediaqueries2.shtml
Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |
12-column
responsive grid
JavaScript plugins
Fixed width and Fluid grids
12/16/24 default grid layouts
Customizer
Form controls
Typography
Customizer
Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-
scale=1.0,maximum-scale=1.0,user-scalable=no">
Flexible layout with media queries layered upon that non-fixed foundation
Flexible Images
Flexible Fonts
Responsive design is, I believe, one part design philosophy, one
part front-end development strategy. And as a development
strategy, it’s meant to be evaluated to see if it meets the needs of
the project you’re working on. - Ethan Marcotte
Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |
Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |
Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |
Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |
Why do people use your
site?
Know your users goals
Decide which devices to
support
Additive Expansionist
Non-reductionist
Pixels vs % vs EMs
Focus on functionality over
sexy
Semantic HTML
Who determines which
image to serve up?
JavaScript Libraries
Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |
Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |
Testing
Emulators
Devices
Wireframe
Ghosting
ADB
Browsers
Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |
Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |
Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |
Start with mockups in 5
dimensions (Balsamiq)
Target screens on major
devices
Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |
Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |
Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |
ymeirovich@gmail.com

More Related Content

PDF
Machine Learning in the Cloud: Building a Better Forecast with H20 & Salesforce
PPTX
How to Deploy a No Code Predictive Machine Learning Model as a Web Service wi...
PPTX
SharePoint Conference 2019: What's new and what's next -Transforming business...
PPTX
Rwd ppt
PDF
Web Design Patterns
PDF
Responsive Web Design
PDF
Dynamic User Interfaces for Desktop and Mobile
PPTX
Responsive Web Design
Machine Learning in the Cloud: Building a Better Forecast with H20 & Salesforce
How to Deploy a No Code Predictive Machine Learning Model as a Web Service wi...
SharePoint Conference 2019: What's new and what's next -Transforming business...
Rwd ppt
Web Design Patterns
Responsive Web Design
Dynamic User Interfaces for Desktop and Mobile
Responsive Web Design

Similar to E4D js conference responsive web design - js-il.com (20)

PPTX
Responsive & Adaptive Web Design
PPTX
Using Responsive Web Design To Make Your Web Work Everywhere
PDF
Responsive Webdesign
PPTX
Chapter 17: Responsive Web Design
PPTX
Responsive web designing
PDF
Responsive Design Tools & Resources
PPTX
Responsive Web Design
PDF
Beautiful.ai - HTMLCSS Fundamentals Mastering the Essentials.pdf
PDF
The Future of CSS Layout
PDF
Responsive Web design Zambig
PPTX
Responsive webdesign
PDF
Devon 2011-f-1 반응형 웹 디자인
PDF
Flex Web Development.pdf
PPTX
Responsive web design
PDF
Responsive web design
PPTX
Responsive web design ppt
PDF
Introduction to Responsive Design v.2
PDF
Fewd week7 slides
PDF
Squishy pixels
PPTX
Responsive web design
Responsive & Adaptive Web Design
Using Responsive Web Design To Make Your Web Work Everywhere
Responsive Webdesign
Chapter 17: Responsive Web Design
Responsive web designing
Responsive Design Tools & Resources
Responsive Web Design
Beautiful.ai - HTMLCSS Fundamentals Mastering the Essentials.pdf
The Future of CSS Layout
Responsive Web design Zambig
Responsive webdesign
Devon 2011-f-1 반응형 웹 디자인
Flex Web Development.pdf
Responsive web design
Responsive web design
Responsive web design ppt
Introduction to Responsive Design v.2
Fewd week7 slides
Squishy pixels
Responsive web design
Ad

More from Eyal Vardi (20)

PPTX
Why magic
PPTX
Smart Contract
PDF
Rachel's grandmother's recipes
PPTX
Performance Optimization In Angular 2
PPTX
Angular 2 Architecture (Bucharest 26/10/2016)
PPTX
Angular 2 NgModule
PPTX
Upgrading from Angular 1.x to Angular 2.x
PPTX
Angular 2 - Ahead of-time Compilation
PPTX
Routing And Navigation
PPTX
Angular 2 Architecture
PPTX
Angular 1.x vs. Angular 2.x
PPTX
Angular 2.0 Views
PPTX
Component lifecycle hooks in Angular 2.0
PPTX
Template syntax in Angular 2.0
PPTX
Http Communication in Angular 2.0
PPTX
Angular 2.0 Dependency injection
PPTX
Angular 2.0 Routing and Navigation
PPTX
Async & Parallel in JavaScript
PPTX
Angular 2.0 Pipes
PPTX
Angular 2.0 forms
Why magic
Smart Contract
Rachel's grandmother's recipes
Performance Optimization In Angular 2
Angular 2 Architecture (Bucharest 26/10/2016)
Angular 2 NgModule
Upgrading from Angular 1.x to Angular 2.x
Angular 2 - Ahead of-time Compilation
Routing And Navigation
Angular 2 Architecture
Angular 1.x vs. Angular 2.x
Angular 2.0 Views
Component lifecycle hooks in Angular 2.0
Template syntax in Angular 2.0
Http Communication in Angular 2.0
Angular 2.0 Dependency injection
Angular 2.0 Routing and Navigation
Async & Parallel in JavaScript
Angular 2.0 Pipes
Angular 2.0 forms
Ad

Recently uploaded (20)

PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Electronic commerce courselecture one. Pdf
PPTX
sap open course for s4hana steps from ECC to s4
PPT
Teaching material agriculture food technology
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
cuic standard and advanced reporting.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
Spectral efficient network and resource selection model in 5G networks
MYSQL Presentation for SQL database connectivity
Chapter 3 Spatial Domain Image Processing.pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Electronic commerce courselecture one. Pdf
sap open course for s4hana steps from ECC to s4
Teaching material agriculture food technology
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
“AI and Expert System Decision Support & Business Intelligence Systems”
Advanced methodologies resolving dimensionality complications for autism neur...
Programs and apps: productivity, graphics, security and other tools
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
MIND Revenue Release Quarter 2 2025 Press Release
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
The AUB Centre for AI in Media Proposal.docx
cuic standard and advanced reporting.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm
Network Security Unit 5.pdf for BCA BBA.
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Building Integrated photovoltaic BIPV_UPV.pdf

E4D js conference responsive web design - js-il.com

  • 1. Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com | Israel JavaScript Conference
  • 2. Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |
  • 3. Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |
  • 4. Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com | • Introducing and the need for RWD Science • The Science of Responsive Web Design (RWD) Art • Design approach Test • Testing and Debugging Rules • Rules/Suggestions for a successful implementation of RWD
  • 5. Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |
  • 6. Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |  Website rolled out to millions  Needed to be Light, Lean and Lightning fast  Non-reflexive, responsive server infrastructure unlike Amazon S3  Want mobile but no history of mobile at the Ministry and no hardware devices  Short development time
  • 7. Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |  No time/ability to learn native mobile code (obj C, java)  Use current skill-sets  Needed to be maintainable  Small team  High profile project watched at the highest levels  NO PRESSURE!
  • 8. Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |
  • 9. Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com | This was a mistake!
  • 10. Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |
  • 11. Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |  Standalone page, multiple files  Fixed-width layouts  Focus on pixels  Doesn’t display well on mobile  Single page/file  Fluid layouts  Focus on EMs / %  Display adjusts to different layouts and orientations
  • 12. Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |  CSS Reset  A flexible, grid-based layout  Flexible images and media  Media queries, a module from the CSS3 specification http://responsivewebdesign.com/robot/ http://www.starbucks.com/
  • 13. Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com | Each browser calculates differently: 1. Blocks 2. Margins 3. Padding CSS Reset’s normalize cross-browser incompatibility for CSS layouts http://meyerweb.com/eric/tools/css/reset/ http://html5boilerplate.com/
  • 14. Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com | Font = 100% = 16px (default) Fonts will always be proportional body { background-color: #DCDBD9; color: #2C2C2C; font: normal 100% Cambria, Georgia; } h1 a { color: #747474; font: bold 11px Arial, sans-serif; letter-spacing: 0.15em; text-transform: uppercase; text-decoration: none; } target / context = result 24 / 16 = 1.5 h1 { /* 24px / 16px */ font-size: 1.5em; } 11 / 24 = Target = 11px, headline = 24px = . %
  • 15. Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com | Proportional blocks Margins keep blocks lined up #page { width: 960px; margin: 0 auto; } Non-responsive Non-fluid
  • 16. Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com | Proportional blocks Margins keep blocks lined up #page { width: 90%; margin: 36px auto; } Responsive .blog { margin: 0 auto 53px; width: 93.75%; /* 900px / 960px */ } 900 / 960 = Fluid
  • 17. Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com | img { max-width: 100%; height: auto; width: auto9; /* ie8 */ }
  • 18. Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com | @media screen and (device-pixel-ratio: 1.5) { /*adjust your layout for 1.5 hardware pixels to each reference pixel*/ } <link rel="stylesheet" href="paper.css" media="print" /> @media print { body { font-size: 15pt; } } @media screen and (min-device-width: 480px) and (orientation: landscape){ body { font-size: 100%; } } http://stephen.io/mediaqueries/ http://www.javascriptkit.com/dhtml tutors/cssmediaqueries2.shtml
  • 19. Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com | 12-column responsive grid JavaScript plugins Fixed width and Fluid grids 12/16/24 default grid layouts Customizer Form controls Typography Customizer
  • 20. Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com | <meta name="viewport" content="width=device-width, initial-scale=1, minimum- scale=1.0,maximum-scale=1.0,user-scalable=no"> Flexible layout with media queries layered upon that non-fixed foundation Flexible Images Flexible Fonts Responsive design is, I believe, one part design philosophy, one part front-end development strategy. And as a development strategy, it’s meant to be evaluated to see if it meets the needs of the project you’re working on. - Ethan Marcotte
  • 21. Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |
  • 22. Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |
  • 23. Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |
  • 24. Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com | Why do people use your site? Know your users goals Decide which devices to support Additive Expansionist Non-reductionist Pixels vs % vs EMs Focus on functionality over sexy Semantic HTML Who determines which image to serve up? JavaScript Libraries
  • 25. Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |
  • 26. Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com | Testing Emulators Devices Wireframe Ghosting ADB Browsers
  • 27. Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |
  • 28. Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |
  • 29. Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com | Start with mockups in 5 dimensions (Balsamiq) Target screens on major devices
  • 30. Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |
  • 31. Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |
  • 32. Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com | ymeirovich@gmail.com

Editor's Notes

  • #23: http://api.jquery.com/prop/