Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
SlideShare a Scribd company logo
FEWD - WEEK 7
WILL MYERS
Freelance Front End Developer
SLIDES
http://www.slideshare.net/wilkom/fewd-week7-slides
FINAL PROJECT MILESTONE 2
By week 7, you should have submitted pseudo code and a
draft of the HTML/CSS for your application. This week, you'll
focus on drafting the JavaScript and jQuery you'll need for
your application.
YOUR WEEKLY FEWD GITHUB
REPOSITORY
Use the '+' button in the top-left of GitHub Desktop
(Create tab)
Create a new repository called 'FEWD_Week7'
Choose the [home]/FEWD folder for the local path
Open this repo folder in your editor
Commit the changes and publish the FEWD_Week7
repository to github.com
YOUR WEEKLY WORKING FILES
FROM ME
To get the week7_working_files you should just be able to
select the ga-fewd-files repository in GitHub Desktop and
press 'Sync'. This should pull in this weeks folder from
github.com.
If you any difficulties you should just re-clone the ga-fewd-
files repository.
Copy the whole week7_working_files into your FEWD_Week7
repository and commit and publish to github.com
REVIEW OF LAST WEEK'S
ASSIGNMENT
DEBUGGING
Why isn't this working?
DEBUGGING
Always start be defining the problem.
"The image is not moving"
"None of my code works"
DEBUGGING
This will tell you where to start your hunt
Image not moving
find the code that makes the image move
None of my code works
Syntax error, check console
DEBUGGING: LEVEL 1
Check for errors (red text, aligned right) in console To access
debugging console
PC: CTRL+SHIFT+J
Mac: COMMAND+OPTION+J
Click the error
The location may not be correct but is a good place to start
Ex: Unbalanced brackets or parentheses
DEBUGGING: LEVEL 2
So no red errors but not getting the right answer? Try
console.log
Ex:
var stringOfNames="";
["Bob","Joe"].forEach(function(element){
stringOfNames-=element+",";
console.log(stringOfNames);
});
DEBUGGING: LEVEL 3
Use the debugger in Chrome
Set a breakpoint
Run the code
Step through the code until you get to the error
Variable values display on the right
You can switch to the console to run code or check value
of variable
DEBUGGING: LEVEL 4
Get help!
1. Try "Your preferred search engine" search
2. Be ready to clearly articulate the problem (Write out what
your problem is)
3. If nothing, ask instructor
DEBUG
Open week6_working_files/debug
AGENDA
This week we are bringing HTML/CSS back into the
equation. Let's return to responsive layouts and units as
discussed in Week 3.
Responsive Layouts
REM/EM
Media Queries
Let's read through the refresher notes for Week 3 again. Go
to:
https://gist.github.com/wmyers/d2fedd6f2a52d272ad9e
A BIT MORE ON EMS VS REMS
em: a sized based on the width of the letter "m"
rem: a "root" em
Some browsers have issues with fonts sized in percents, em
is better for fonts.
LAYOUTS - STATIC VS LIQUID VS ADAPTIVE VS
RESPONSIVE
Did anyone read this web page?
http://blog.teamtreehouse.com/which-page-layout
LAYOUTS - ELASTIC
One other layout options is to use emfor layout widths as
well as for font-sizes. This means that the page will resize
according to the end user's preferred text size.
This blog post from 2009 is still useful for explaining fixed
versus fluid versus elastic layouts (though most of the
example links are no longer correct):
https://www.smashingmagazine.com/2009/06/fixed-vs-
fluid-vs-elastic-layout-whats-the-right-one-for-you/
But remember Flexbox is slowing making these older ways
of doing responsive websites obsolete.
BOXES EXERCISE
Let's start building a layout using boxes. We will eventually
make this layout responsive. Open
week7_working_files/responsive_boxes/readme.pdf in your
browser. You can use floator display:inline-
blockor Flexbox, for columns.
Recreate Boxing 1 using html and css. You can use the
week3_working_files/layout_challenge/5.magazine files as a
starting point if using Flexbox. Otherwise use one of the
1.two-column layouts. Copy the files into
week7_working_files/responsive_boxes folder.
Note that you need to have a hidden element.
RESPONSIVE DESIGN IS MORE DESIGN THAN CODE.
Go to this website
Open Chrome Dev Tools (CTRL + Alt + I)
Set the Dock Side to the right and then click on the mobile
icon
http://www.anderssonwise.com/
Also look at the site on your phone browser. Discuss what is
making the site responsive.
FIXED VS RESPONSIVE
Looking for comparisons of fixed versus responsive layouts.
Checkout these Fixed sites
UPS.com
Google.com
Checkout these Responsive Sites
Generalassemb.ly
Designmodo examples
MOBILE BOXES
Continuing with our boxing exercise. Keeping the same
HTML, add/overwrite classes in your CSS, below your
existing code, to make the boxes look like Boxing 2.
FIXED LAYOUT
We have used fixed layouts in our designs up to this point
- e.g in Relaxr pages
Relies on a container of fixed width - usually 960px or
980px
Has margin:0 auto(or similar) to center the container
RESPONSIVE LAYOUT
Different styles for different screen widths
Uses an elastic/fluid layout
Fluid - Sized in percentages
Elastic - Sized in ems
MEDIA QUERIES - USAGE
Please read the first part of regarding syntax.this page
For a list of @mediatypes:
https://developer.mozilla.org/en-
US/docs/Web/CSS/@media#Media_types
For building responsive web pages you will use the following
syntax:
@media only screen and
(max-width: Npx) (min-width: Npx) (max-device-width:Npx) (min-device-
For tablets
(orientation: portrait) (orientation: landscape)
MEDIA QUERIES - USAGE
Separate multiple clauses with "and"
@media only screen and (max-width: 769px)
and (orientation: landscape) {
...
}
Standard media queries sizes
Small: up to 768px
Medium: 769-991px
Large: 992px+
MOBILE DISPLAY - VIEWPORT
The viewport meta tag (placed in the <head>) lets the
browser know that it has to scale your webpage
responsively on every device.
Combining the viewport meta tag with responsive CSS will
make your web page work across different mobile browsers.
Otherwise the mobile browser will assume a fixed layout of
between 800px to 1024px, and the user will have to zoom in
to different sections of the page.
<meta name="viewport" content="width=device-width, initial-scale=1">
VIEWPORT - DIFFERENT PIXELS
See this page to understand how device independent pixels
are required to enable the viewport meta tag to scale a
mobile browser page correctly:
https://developers.google.com/speed/docs/insights/ConfigureV
hl=en
VIEWPORT - USER SCALING
There is an additional attribute for the viewport meta tag:
user-scalable=none
<meta name="viewport" content="width=device-width,
initial-scale=1 user-scalable=none">
This prevents the user from using default browser zoom
functionality (including pinch-zooming) - the implication is
that responsive CSS and the standard use of the viewport
meta tag should make zooming unnecessary.
However this is essentially anti-accessibility:
http://codepen.io/absolutholz/post/user-scalable-no-evil-
or-slightly-not-evil
VIEWPORT - 300MS TAP IN ANDROID
On the flip-side of the argument against using user-
scalable=none, a couple of years ago, if you did use it
then (in Android) you would remove a mandatory 300
millisecond delay caused by waiting to detect a user double-
tap.
https://developers.google.com/web/updates/2013/12/300ms-
tap-delay-gone-away
Following more recent changes, Chrome and Firefox now
remove the 300ms tap delay if your web page contains the
content="width=device-width"attribute instead.
This means you can retain pinch zooming.
MOBILE DISPLAY - 300MS TAP IN IOS
Mobile Safari has a more complicated approach to solving
the 300ms delay by detecting for fast taps and slow taps:
http://developer.telerik.com/featured/300-ms-click-delay-
ios-8/
However there is a JavaScript library called FastClick which
can be included which can be used to remove the 300ms
click delay across all mobile browsers:
https://github.com/ftlabs/fastclick
MEDIA QUERY USAGE
/*inline boxes into columns*/
.box{
display:inline-block;
}
@media only screen and (max-width:768px){
/*insert responsive css here
eg: stack inline boxes*/
.box{
display:block;
}
}
If I put the media query before
.box{
display:inline-block;
}
will this work as expected? See .this link
RESPONSIVE BOXES
Returning to our boxing layout, use media-queries to make
your boxing web page responsive so that it changes from
Boxing 1 to Boxing 2 when the browser window width is
reduced.
TRANSITIONS TO MAKE MEDIA QUERY
CHANGES SMOOTHER
We will look more at CSS animations and transitions in Week
9 and Week 10.
Feel free to research this further in the meantime.
LAYOUTS - GRIDS
Grids are ways of creating complex fixed or fluid layouts,
involving nested rows and columns. Many grids have up to
12 columns and unlimited rows. NB Grids tend to use
floats for creating columns.
This article shows you how to create a responsive fluid grid
layout that uses media-queries to change to a single column
layout when the page gets too small.
http://www.sitepoint.com/understanding-css-grid-systems/
http://codepen.io/SitePoint/pen/dPqqvN
GRIDS - BOOTSTRAP
Grids are often implemented using popular third party CSS
libraries, that provide tested cross-browser complex layouts
that developers can use out of the box.
The Bootstrap CSS library has grid layout classes (available
when you include and link bootstrap.css in your <head>):
http://www.sitepoint.com/understanding-bootstrap-grid-
system/
The Bootstrap grid system is also responsive. You apply
different styles to your column <div>s and the relevant one
will be automatically used as your window resizes.
GRIDS
It is not actually that hard to build your own grid. In fact we
have already been doing so with things like the magazine
layout in Week 3.
A simple column layout is still a grid, more complex grid
layouts can still utilize simple CSS layout techniques:
https://css-tricks.com/dont-overthink-it-grids/
(NB: this layout uses floats. We could use
display:inline-blockor Flexbox instead.)
LAYOUTS - THE NEW GRID DISPLAY
PROPERTY
There is also a new display:gridproperty, which is a
recent CSS addition like display:flex. At this time it is
still better to use Flexbox (display:flex).
AGENDA
How to make a website responsive.
LEVEL ONE
Convert widths to percentages
Size fonts in ems
Identify columns that can be stacked
LEVEL TWO
Determine what content is extra
Does that h1 need an h2 under it?
Will that one liner get the visitor to understand my site
or is it extra?
Determine what content needs to be visible
Is it necessary to show my entire nav if there are other
ways of getting to navigation?
Identify extra styling
Do my columns need a border if they're stacked?
STARTUP MATCHMAKER

More Related Content

What's hot

forms
formsforms
Creating Acessible floating labels
Creating Acessible floating labelsCreating Acessible floating labels
Creating Acessible floating labels
Russ Weakley
 
Basic tutorial dreamweaver_cs5
Basic tutorial dreamweaver_cs5Basic tutorial dreamweaver_cs5
Basic tutorial dreamweaver_cs5
seanoiii
 
Vizwik part 1 views
Vizwik part 1 viewsVizwik part 1 views
Vizwik part 1 views
Vizwik
 
Fewd week2 slides
Fewd week2 slidesFewd week2 slides
Fewd week2 slides
William Myers
 
Android Button
Android ButtonAndroid Button
Android Button
bhavin joshi
 
Unit f adobe dreamweaver cs6
Unit f adobe dreamweaver cs6Unit f adobe dreamweaver cs6
Unit f adobe dreamweaver cs6
Krista Lawrence
 
Using class suffixes
Using class suffixesUsing class suffixes
Using class suffixes
shailendra vishwakarma
 
Baawjsajq109
Baawjsajq109Baawjsajq109
Baawjsajq109
Thinkful
 
Learn CSS From Scratch
Learn CSS From ScratchLearn CSS From Scratch
Learn CSS From Scratch
ecobold
 
Lesson 3 cs5
Lesson 3   cs5Lesson 3   cs5
Lesson 3 cs5
dtelepos
 
Knockout in action
Knockout in actionKnockout in action
Knockout in action
Gerardo Leyes
 
10 ways to bind multiple models on a view in mvc code project
10 ways to bind multiple models on a view in mvc   code project10 ways to bind multiple models on a view in mvc   code project
10 ways to bind multiple models on a view in mvc code project
Akshat Kumar
 
Introduction to-concrete-5
Introduction to-concrete-5Introduction to-concrete-5
Introduction to-concrete-5
Ketan Raval
 
Introduction to-concrete-5
Introduction to-concrete-5Introduction to-concrete-5
Introduction to-concrete-5
ketanraval
 
Google chrome developer and tags
Google chrome developer and tagsGoogle chrome developer and tags
Google chrome developer and tags
greg robertson
 
Lesson 2 cs5
Lesson 2   cs5Lesson 2   cs5
Lesson 2 cs5
dtelepos
 
Writing a blog post (edublogs)
Writing a blog post (edublogs)Writing a blog post (edublogs)
Writing a blog post (edublogs)
Paul L
 
Start a Blog: Module 6
Start a Blog: Module 6Start a Blog: Module 6
Start a Blog: Module 6
Merri Dennis
 
Word blogging feature
Word blogging featureWord blogging feature
Word blogging feature
Alan Haller
 

What's hot (20)

forms
formsforms
forms
 
Creating Acessible floating labels
Creating Acessible floating labelsCreating Acessible floating labels
Creating Acessible floating labels
 
Basic tutorial dreamweaver_cs5
Basic tutorial dreamweaver_cs5Basic tutorial dreamweaver_cs5
Basic tutorial dreamweaver_cs5
 
Vizwik part 1 views
Vizwik part 1 viewsVizwik part 1 views
Vizwik part 1 views
 
Fewd week2 slides
Fewd week2 slidesFewd week2 slides
Fewd week2 slides
 
Android Button
Android ButtonAndroid Button
Android Button
 
Unit f adobe dreamweaver cs6
Unit f adobe dreamweaver cs6Unit f adobe dreamweaver cs6
Unit f adobe dreamweaver cs6
 
Using class suffixes
Using class suffixesUsing class suffixes
Using class suffixes
 
Baawjsajq109
Baawjsajq109Baawjsajq109
Baawjsajq109
 
Learn CSS From Scratch
Learn CSS From ScratchLearn CSS From Scratch
Learn CSS From Scratch
 
Lesson 3 cs5
Lesson 3   cs5Lesson 3   cs5
Lesson 3 cs5
 
Knockout in action
Knockout in actionKnockout in action
Knockout in action
 
10 ways to bind multiple models on a view in mvc code project
10 ways to bind multiple models on a view in mvc   code project10 ways to bind multiple models on a view in mvc   code project
10 ways to bind multiple models on a view in mvc code project
 
Introduction to-concrete-5
Introduction to-concrete-5Introduction to-concrete-5
Introduction to-concrete-5
 
Introduction to-concrete-5
Introduction to-concrete-5Introduction to-concrete-5
Introduction to-concrete-5
 
Google chrome developer and tags
Google chrome developer and tagsGoogle chrome developer and tags
Google chrome developer and tags
 
Lesson 2 cs5
Lesson 2   cs5Lesson 2   cs5
Lesson 2 cs5
 
Writing a blog post (edublogs)
Writing a blog post (edublogs)Writing a blog post (edublogs)
Writing a blog post (edublogs)
 
Start a Blog: Module 6
Start a Blog: Module 6Start a Blog: Module 6
Start a Blog: Module 6
 
Word blogging feature
Word blogging featureWord blogging feature
Word blogging feature
 

Viewers also liked

Codigos profesionales
Codigos profesionalesCodigos profesionales
Codigos profesionales
JM9520
 
Social Media- Chapter Presentation
Social Media- Chapter PresentationSocial Media- Chapter Presentation
Social Media- Chapter Presentation
ambrosam
 
Delitos informaticos
Delitos informaticosDelitos informaticos
Delitos informaticos
arianator292108
 
Creacion de un nuevo lenguaje
Creacion de un nuevo lenguajeCreacion de un nuevo lenguaje
Creacion de un nuevo lenguaje
arianator292108
 
GutsGo eCall - How To Get Started On An eMarketing Career?
GutsGo eCall - How To Get Started On An eMarketing Career?GutsGo eCall - How To Get Started On An eMarketing Career?
GutsGo eCall - How To Get Started On An eMarketing Career?
Ratan KK
 
Agile software development: Rapid growth & Distributed scrum
Agile software development: Rapid growth & Distributed scrumAgile software development: Rapid growth & Distributed scrum
Agile software development: Rapid growth & Distributed scrum
Maite Wetters
 
643 edu slideshow of 10 apps
643 edu slideshow of 10 apps643 edu slideshow of 10 apps
643 edu slideshow of 10 apps
manday06
 
Mapas Conceptual Del Blog De InformáTica Jessiç
Mapas Conceptual Del Blog De InformáTica JessiçMapas Conceptual Del Blog De InformáTica Jessiç
Mapas Conceptual Del Blog De InformáTica Jessiç
guest76fb02
 
Energias (2)
Energias (2)Energias (2)
Energias (2)
arianator292108
 
Angelica
AngelicaAngelica
Know Your Customer MIFOS
Know Your Customer MIFOSKnow Your Customer MIFOS
Know Your Customer MIFOS
nk123kapoor
 
Taxonomy PDF
Taxonomy PDFTaxonomy PDF
The business side of ipl
The business side of iplThe business side of ipl
The business side of ipl
amar meena
 
0 AVCA 3 Transporte en la cadena alimentaria
0 AVCA 3 Transporte en la cadena alimentaria0 AVCA 3 Transporte en la cadena alimentaria
0 AVCA 3 Transporte en la cadena alimentaria
Midevago
 
Anteproyecto proyecto amplificador
Anteproyecto proyecto amplificadorAnteproyecto proyecto amplificador
Anteproyecto proyecto amplificador
joseph050
 
Los sistemas operativos y sus creadores
Los sistemas operativos y sus creadoresLos sistemas operativos y sus creadores
Los sistemas operativos y sus creadores
VicentClaudia
 
Vesna ----leto-1917-g
Vesna ----leto-1917-gVesna ----leto-1917-g
Vesna ----leto-1917-g
Oleg Katrenko
 
General chemistry academic journal (sample)
General chemistry academic journal (sample)General chemistry academic journal (sample)
General chemistry academic journal (sample)
Vincentius Soesanto
 
Note taking for university students
Note taking for university studentsNote taking for university students
Note taking for university students
Alaa Al-Musalli, Ph.D.
 

Viewers also liked (19)

Codigos profesionales
Codigos profesionalesCodigos profesionales
Codigos profesionales
 
Social Media- Chapter Presentation
Social Media- Chapter PresentationSocial Media- Chapter Presentation
Social Media- Chapter Presentation
 
Delitos informaticos
Delitos informaticosDelitos informaticos
Delitos informaticos
 
Creacion de un nuevo lenguaje
Creacion de un nuevo lenguajeCreacion de un nuevo lenguaje
Creacion de un nuevo lenguaje
 
GutsGo eCall - How To Get Started On An eMarketing Career?
GutsGo eCall - How To Get Started On An eMarketing Career?GutsGo eCall - How To Get Started On An eMarketing Career?
GutsGo eCall - How To Get Started On An eMarketing Career?
 
Agile software development: Rapid growth & Distributed scrum
Agile software development: Rapid growth & Distributed scrumAgile software development: Rapid growth & Distributed scrum
Agile software development: Rapid growth & Distributed scrum
 
643 edu slideshow of 10 apps
643 edu slideshow of 10 apps643 edu slideshow of 10 apps
643 edu slideshow of 10 apps
 
Mapas Conceptual Del Blog De InformáTica Jessiç
Mapas Conceptual Del Blog De InformáTica JessiçMapas Conceptual Del Blog De InformáTica Jessiç
Mapas Conceptual Del Blog De InformáTica Jessiç
 
Energias (2)
Energias (2)Energias (2)
Energias (2)
 
Angelica
AngelicaAngelica
Angelica
 
Know Your Customer MIFOS
Know Your Customer MIFOSKnow Your Customer MIFOS
Know Your Customer MIFOS
 
Taxonomy PDF
Taxonomy PDFTaxonomy PDF
Taxonomy PDF
 
The business side of ipl
The business side of iplThe business side of ipl
The business side of ipl
 
0 AVCA 3 Transporte en la cadena alimentaria
0 AVCA 3 Transporte en la cadena alimentaria0 AVCA 3 Transporte en la cadena alimentaria
0 AVCA 3 Transporte en la cadena alimentaria
 
Anteproyecto proyecto amplificador
Anteproyecto proyecto amplificadorAnteproyecto proyecto amplificador
Anteproyecto proyecto amplificador
 
Los sistemas operativos y sus creadores
Los sistemas operativos y sus creadoresLos sistemas operativos y sus creadores
Los sistemas operativos y sus creadores
 
Vesna ----leto-1917-g
Vesna ----leto-1917-gVesna ----leto-1917-g
Vesna ----leto-1917-g
 
General chemistry academic journal (sample)
General chemistry academic journal (sample)General chemistry academic journal (sample)
General chemistry academic journal (sample)
 
Note taking for university students
Note taking for university studentsNote taking for university students
Note taking for university students
 

Similar to Fewd week7 slides

Fewd week3 slides
Fewd week3 slidesFewd week3 slides
Fewd week3 slides
William Myers
 
RWD
RWDRWD
Lavacon 2014 responsive design in your hat
Lavacon 2014   responsive design in your hatLavacon 2014   responsive design in your hat
Lavacon 2014 responsive design in your hat
Neil Perlin
 
Responsive Web Designed for your communication and marketing needs
Responsive Web Designed for your communication and marketing needsResponsive Web Designed for your communication and marketing needs
Responsive Web Designed for your communication and marketing needs
SEGIC
 
Mobile Monday Presentation: Responsive Web Design
Mobile Monday Presentation: Responsive Web DesignMobile Monday Presentation: Responsive Web Design
Mobile Monday Presentation: Responsive Web Design
Cantina
 
Spectrum 2015 responsive design
Spectrum 2015   responsive designSpectrum 2015   responsive design
Spectrum 2015 responsive design
Neil Perlin
 
Aaug sample slides
Aaug sample slidesAaug sample slides
Aaug sample slides
Casandra Calo
 
Digibury: Getting your web presence mobile ready - David Walker
Digibury: Getting your web presence mobile ready - David WalkerDigibury: Getting your web presence mobile ready - David Walker
Digibury: Getting your web presence mobile ready - David Walker
Lizzie Hodgson
 
Create Responsive Website Design with Bootstrap 3
Create Responsive Website Design with Bootstrap 3Create Responsive Website Design with Bootstrap 3
Create Responsive Website Design with Bootstrap 3
Wahyu Putra
 
Stc 2015 preparing legacy projects for responsive design - technical issues
Stc 2015   preparing legacy projects for responsive design - technical issuesStc 2015   preparing legacy projects for responsive design - technical issues
Stc 2015 preparing legacy projects for responsive design - technical issues
Neil Perlin
 
Teams, styles and scalable applications
Teams, styles and scalable applicationsTeams, styles and scalable applications
Teams, styles and scalable applications
Vittorio Vittori
 
Organize Your Website With Advanced CSS Tricks
Organize Your Website With Advanced CSS TricksOrganize Your Website With Advanced CSS Tricks
Organize Your Website With Advanced CSS Tricks
Andolasoft Inc
 
Web development today
Web development todayWeb development today
Web development today
Jaydev Gajera
 
Responsivedesign 7-3-2012
Responsivedesign 7-3-2012Responsivedesign 7-3-2012
Responsivedesign 7-3-2012
Thomas Carney
 
Bootstrap for Beginners
Bootstrap for BeginnersBootstrap for Beginners
Bootstrap for Beginners
D'arce Hess
 
How to Project-Manage and Implement a Responsive Website
How to Project-Manage and Implement a Responsive WebsiteHow to Project-Manage and Implement a Responsive Website
How to Project-Manage and Implement a Responsive Website
Jj Jurgens
 
How i made the responsive mobile version of
How i made the responsive mobile version ofHow i made the responsive mobile version of
How i made the responsive mobile version of
Sayed Ahmed
 
Build tons of multi-device JavaScript applications - Part 2 : (black) Magic S...
Build tons of multi-device JavaScript applications - Part 2 : (black) Magic S...Build tons of multi-device JavaScript applications - Part 2 : (black) Magic S...
Build tons of multi-device JavaScript applications - Part 2 : (black) Magic S...
Skilld
 
7 new techniques every web developer should know
7 new techniques every web developer should know7 new techniques every web developer should know
7 new techniques every web developer should know
Mitiz Technologies
 
Reboot-Typography.pptx reboot typography to help you in research
Reboot-Typography.pptx reboot typography to help you in researchReboot-Typography.pptx reboot typography to help you in research
Reboot-Typography.pptx reboot typography to help you in research
AadiChauhan2
 

Similar to Fewd week7 slides (20)

Fewd week3 slides
Fewd week3 slidesFewd week3 slides
Fewd week3 slides
 
RWD
RWDRWD
RWD
 
Lavacon 2014 responsive design in your hat
Lavacon 2014   responsive design in your hatLavacon 2014   responsive design in your hat
Lavacon 2014 responsive design in your hat
 
Responsive Web Designed for your communication and marketing needs
Responsive Web Designed for your communication and marketing needsResponsive Web Designed for your communication and marketing needs
Responsive Web Designed for your communication and marketing needs
 
Mobile Monday Presentation: Responsive Web Design
Mobile Monday Presentation: Responsive Web DesignMobile Monday Presentation: Responsive Web Design
Mobile Monday Presentation: Responsive Web Design
 
Spectrum 2015 responsive design
Spectrum 2015   responsive designSpectrum 2015   responsive design
Spectrum 2015 responsive design
 
Aaug sample slides
Aaug sample slidesAaug sample slides
Aaug sample slides
 
Digibury: Getting your web presence mobile ready - David Walker
Digibury: Getting your web presence mobile ready - David WalkerDigibury: Getting your web presence mobile ready - David Walker
Digibury: Getting your web presence mobile ready - David Walker
 
Create Responsive Website Design with Bootstrap 3
Create Responsive Website Design with Bootstrap 3Create Responsive Website Design with Bootstrap 3
Create Responsive Website Design with Bootstrap 3
 
Stc 2015 preparing legacy projects for responsive design - technical issues
Stc 2015   preparing legacy projects for responsive design - technical issuesStc 2015   preparing legacy projects for responsive design - technical issues
Stc 2015 preparing legacy projects for responsive design - technical issues
 
Teams, styles and scalable applications
Teams, styles and scalable applicationsTeams, styles and scalable applications
Teams, styles and scalable applications
 
Organize Your Website With Advanced CSS Tricks
Organize Your Website With Advanced CSS TricksOrganize Your Website With Advanced CSS Tricks
Organize Your Website With Advanced CSS Tricks
 
Web development today
Web development todayWeb development today
Web development today
 
Responsivedesign 7-3-2012
Responsivedesign 7-3-2012Responsivedesign 7-3-2012
Responsivedesign 7-3-2012
 
Bootstrap for Beginners
Bootstrap for BeginnersBootstrap for Beginners
Bootstrap for Beginners
 
How to Project-Manage and Implement a Responsive Website
How to Project-Manage and Implement a Responsive WebsiteHow to Project-Manage and Implement a Responsive Website
How to Project-Manage and Implement a Responsive Website
 
How i made the responsive mobile version of
How i made the responsive mobile version ofHow i made the responsive mobile version of
How i made the responsive mobile version of
 
Build tons of multi-device JavaScript applications - Part 2 : (black) Magic S...
Build tons of multi-device JavaScript applications - Part 2 : (black) Magic S...Build tons of multi-device JavaScript applications - Part 2 : (black) Magic S...
Build tons of multi-device JavaScript applications - Part 2 : (black) Magic S...
 
7 new techniques every web developer should know
7 new techniques every web developer should know7 new techniques every web developer should know
7 new techniques every web developer should know
 
Reboot-Typography.pptx reboot typography to help you in research
Reboot-Typography.pptx reboot typography to help you in researchReboot-Typography.pptx reboot typography to help you in research
Reboot-Typography.pptx reboot typography to help you in research
 

Recently uploaded

@Call @Girls Vile Parle phone 9920874524 You Are Serach A Beautyfull Dolle co...
@Call @Girls Vile Parle phone 9920874524 You Are Serach A Beautyfull Dolle co...@Call @Girls Vile Parle phone 9920874524 You Are Serach A Beautyfull Dolle co...
@Call @Girls Vile Parle phone 9920874524 You Are Serach A Beautyfull Dolle co...
RACHANA GUPTA
 
202254.com免费观看《长相思第二季》免费观看高清,长相思第二季线上看,《长相思第二季》最新电视剧在线观看,杨紫最新电视剧
202254.com免费观看《长相思第二季》免费观看高清,长相思第二季线上看,《长相思第二季》最新电视剧在线观看,杨紫最新电视剧202254.com免费观看《长相思第二季》免费观看高清,长相思第二季线上看,《长相思第二季》最新电视剧在线观看,杨紫最新电视剧
202254.com免费观看《长相思第二季》免费观看高清,长相思第二季线上看,《长相思第二季》最新电视剧在线观看,杨紫最新电视剧
ffg01100
 
Nariman point @Call @Girls Whatsapp 9833363713 With High Profile Offer
Nariman point @Call @Girls Whatsapp 9833363713 With High Profile OfferNariman point @Call @Girls Whatsapp 9833363713 With High Profile Offer
Nariman point @Call @Girls Whatsapp 9833363713 With High Profile Offer
kmohit1234521
 
Quiz Quiz Hota Hai (School Quiz 2018-19)
Quiz Quiz Hota Hai (School Quiz 2018-19)Quiz Quiz Hota Hai (School Quiz 2018-19)
Quiz Quiz Hota Hai (School Quiz 2018-19)
Kashyap J
 
一比一原版(greenwich毕业证书)英国格林威治大学毕业证如何办理
一比一原版(greenwich毕业证书)英国格林威治大学毕业证如何办理一比一原版(greenwich毕业证书)英国格林威治大学毕业证如何办理
一比一原版(greenwich毕业证书)英国格林威治大学毕业证如何办理
taqyea
 
Ahmedabad @Call @Girls 0000000000 Riya Khan Beautiful And Cute Girl any Time
Ahmedabad @Call @Girls 0000000000 Riya Khan Beautiful And Cute Girl any TimeAhmedabad @Call @Girls 0000000000 Riya Khan Beautiful And Cute Girl any Time
Ahmedabad @Call @Girls 0000000000 Riya Khan Beautiful And Cute Girl any Time
adityaroy0215
 
一比一原版(kcl毕业证书)英国伦敦国王学院毕业证如何办理
一比一原版(kcl毕业证书)英国伦敦国王学院毕业证如何办理一比一原版(kcl毕业证书)英国伦敦国王学院毕业证如何办理
一比一原版(kcl毕业证书)英国伦敦国王学院毕业证如何办理
taqyea
 
( Call  ) Girls South Ex 9873777170 High Profile beauty lady
( Call  ) Girls South Ex 9873777170 High Profile beauty lady( Call  ) Girls South Ex 9873777170 High Profile beauty lady
( Call  ) Girls South Ex 9873777170 High Profile beauty lady
Hyderabad Escorts Agency
 
一比一原版(lu毕业证书)英国拉夫堡大学毕业证如何办理
一比一原版(lu毕业证书)英国拉夫堡大学毕业证如何办理一比一原版(lu毕业证书)英国拉夫堡大学毕业证如何办理
一比一原版(lu毕业证书)英国拉夫堡大学毕业证如何办理
taqyea
 
Megalive99 Situs Betting Online Gacor Terpercaya
Megalive99 Situs Betting Online Gacor TerpercayaMegalive99 Situs Betting Online Gacor Terpercaya
Megalive99 Situs Betting Online Gacor Terpercaya
Megalive99
 
Zephyr_CertificateOfCompletition_xxx.pdf
Zephyr_CertificateOfCompletition_xxx.pdfZephyr_CertificateOfCompletition_xxx.pdf
Zephyr_CertificateOfCompletition_xxx.pdf
AnielloGiugliano1
 
cyber-security-training-presentation-q320.ppt
cyber-security-training-presentation-q320.pptcyber-security-training-presentation-q320.ppt
cyber-security-training-presentation-q320.ppt
LiamOConnor52
 
SlideEgg_200767-ICC Mens T20 World Cup 2024.pptx
SlideEgg_200767-ICC Mens T20 World Cup 2024.pptxSlideEgg_200767-ICC Mens T20 World Cup 2024.pptx
SlideEgg_200767-ICC Mens T20 World Cup 2024.pptx
NandakumarP24
 
Tama Tonga MFT T shirts Tama Tonga MFT T shirts
Tama Tonga MFT T shirts Tama Tonga MFT T shirtsTama Tonga MFT T shirts Tama Tonga MFT T shirts
Tama Tonga MFT T shirts Tama Tonga MFT T shirts
exgf28
 
一比一原版(uom毕业证)曼彻斯特大学毕业证如何办理
一比一原版(uom毕业证)曼彻斯特大学毕业证如何办理一比一原版(uom毕业证)曼彻斯特大学毕业证如何办理
一比一原版(uom毕业证)曼彻斯特大学毕业证如何办理
taqyea
 
Lincoln University degree offer diploma Transcript
Lincoln University degree offer diploma TranscriptLincoln University degree offer diploma Transcript
Lincoln University degree offer diploma Transcript
ubufe
 
How to Choose the Right UIUX Design Service for Optimal Customer Experience
How to Choose the Right UIUX Design Service for Optimal Customer ExperienceHow to Choose the Right UIUX Design Service for Optimal Customer Experience
How to Choose the Right UIUX Design Service for Optimal Customer Experience
Serva AppLabs
 
10th International Conference on Networks, Mobile Communications and Telema...
10th International Conference on Networks, Mobile Communications and   Telema...10th International Conference on Networks, Mobile Communications and   Telema...
10th International Conference on Networks, Mobile Communications and Telema...
ijp2p
 
一比一原版(liverpool毕业证)利物浦大学毕业证如何办理
一比一原版(liverpool毕业证)利物浦大学毕业证如何办理一比一原版(liverpool毕业证)利物浦大学毕业证如何办理
一比一原版(liverpool毕业证)利物浦大学毕业证如何办理
mvahxyy
 
Founders Of Digital World Social Media..
Founders Of Digital World Social Media..Founders Of Digital World Social Media..
Founders Of Digital World Social Media..
jom pom
 

Recently uploaded (20)

@Call @Girls Vile Parle phone 9920874524 You Are Serach A Beautyfull Dolle co...
@Call @Girls Vile Parle phone 9920874524 You Are Serach A Beautyfull Dolle co...@Call @Girls Vile Parle phone 9920874524 You Are Serach A Beautyfull Dolle co...
@Call @Girls Vile Parle phone 9920874524 You Are Serach A Beautyfull Dolle co...
 
202254.com免费观看《长相思第二季》免费观看高清,长相思第二季线上看,《长相思第二季》最新电视剧在线观看,杨紫最新电视剧
202254.com免费观看《长相思第二季》免费观看高清,长相思第二季线上看,《长相思第二季》最新电视剧在线观看,杨紫最新电视剧202254.com免费观看《长相思第二季》免费观看高清,长相思第二季线上看,《长相思第二季》最新电视剧在线观看,杨紫最新电视剧
202254.com免费观看《长相思第二季》免费观看高清,长相思第二季线上看,《长相思第二季》最新电视剧在线观看,杨紫最新电视剧
 
Nariman point @Call @Girls Whatsapp 9833363713 With High Profile Offer
Nariman point @Call @Girls Whatsapp 9833363713 With High Profile OfferNariman point @Call @Girls Whatsapp 9833363713 With High Profile Offer
Nariman point @Call @Girls Whatsapp 9833363713 With High Profile Offer
 
Quiz Quiz Hota Hai (School Quiz 2018-19)
Quiz Quiz Hota Hai (School Quiz 2018-19)Quiz Quiz Hota Hai (School Quiz 2018-19)
Quiz Quiz Hota Hai (School Quiz 2018-19)
 
一比一原版(greenwich毕业证书)英国格林威治大学毕业证如何办理
一比一原版(greenwich毕业证书)英国格林威治大学毕业证如何办理一比一原版(greenwich毕业证书)英国格林威治大学毕业证如何办理
一比一原版(greenwich毕业证书)英国格林威治大学毕业证如何办理
 
Ahmedabad @Call @Girls 0000000000 Riya Khan Beautiful And Cute Girl any Time
Ahmedabad @Call @Girls 0000000000 Riya Khan Beautiful And Cute Girl any TimeAhmedabad @Call @Girls 0000000000 Riya Khan Beautiful And Cute Girl any Time
Ahmedabad @Call @Girls 0000000000 Riya Khan Beautiful And Cute Girl any Time
 
一比一原版(kcl毕业证书)英国伦敦国王学院毕业证如何办理
一比一原版(kcl毕业证书)英国伦敦国王学院毕业证如何办理一比一原版(kcl毕业证书)英国伦敦国王学院毕业证如何办理
一比一原版(kcl毕业证书)英国伦敦国王学院毕业证如何办理
 
( Call  ) Girls South Ex 9873777170 High Profile beauty lady
( Call  ) Girls South Ex 9873777170 High Profile beauty lady( Call  ) Girls South Ex 9873777170 High Profile beauty lady
( Call  ) Girls South Ex 9873777170 High Profile beauty lady
 
一比一原版(lu毕业证书)英国拉夫堡大学毕业证如何办理
一比一原版(lu毕业证书)英国拉夫堡大学毕业证如何办理一比一原版(lu毕业证书)英国拉夫堡大学毕业证如何办理
一比一原版(lu毕业证书)英国拉夫堡大学毕业证如何办理
 
Megalive99 Situs Betting Online Gacor Terpercaya
Megalive99 Situs Betting Online Gacor TerpercayaMegalive99 Situs Betting Online Gacor Terpercaya
Megalive99 Situs Betting Online Gacor Terpercaya
 
Zephyr_CertificateOfCompletition_xxx.pdf
Zephyr_CertificateOfCompletition_xxx.pdfZephyr_CertificateOfCompletition_xxx.pdf
Zephyr_CertificateOfCompletition_xxx.pdf
 
cyber-security-training-presentation-q320.ppt
cyber-security-training-presentation-q320.pptcyber-security-training-presentation-q320.ppt
cyber-security-training-presentation-q320.ppt
 
SlideEgg_200767-ICC Mens T20 World Cup 2024.pptx
SlideEgg_200767-ICC Mens T20 World Cup 2024.pptxSlideEgg_200767-ICC Mens T20 World Cup 2024.pptx
SlideEgg_200767-ICC Mens T20 World Cup 2024.pptx
 
Tama Tonga MFT T shirts Tama Tonga MFT T shirts
Tama Tonga MFT T shirts Tama Tonga MFT T shirtsTama Tonga MFT T shirts Tama Tonga MFT T shirts
Tama Tonga MFT T shirts Tama Tonga MFT T shirts
 
一比一原版(uom毕业证)曼彻斯特大学毕业证如何办理
一比一原版(uom毕业证)曼彻斯特大学毕业证如何办理一比一原版(uom毕业证)曼彻斯特大学毕业证如何办理
一比一原版(uom毕业证)曼彻斯特大学毕业证如何办理
 
Lincoln University degree offer diploma Transcript
Lincoln University degree offer diploma TranscriptLincoln University degree offer diploma Transcript
Lincoln University degree offer diploma Transcript
 
How to Choose the Right UIUX Design Service for Optimal Customer Experience
How to Choose the Right UIUX Design Service for Optimal Customer ExperienceHow to Choose the Right UIUX Design Service for Optimal Customer Experience
How to Choose the Right UIUX Design Service for Optimal Customer Experience
 
10th International Conference on Networks, Mobile Communications and Telema...
10th International Conference on Networks, Mobile Communications and   Telema...10th International Conference on Networks, Mobile Communications and   Telema...
10th International Conference on Networks, Mobile Communications and Telema...
 
一比一原版(liverpool毕业证)利物浦大学毕业证如何办理
一比一原版(liverpool毕业证)利物浦大学毕业证如何办理一比一原版(liverpool毕业证)利物浦大学毕业证如何办理
一比一原版(liverpool毕业证)利物浦大学毕业证如何办理
 
Founders Of Digital World Social Media..
Founders Of Digital World Social Media..Founders Of Digital World Social Media..
Founders Of Digital World Social Media..
 

Fewd week7 slides

  • 1. FEWD - WEEK 7 WILL MYERS Freelance Front End Developer SLIDES http://www.slideshare.net/wilkom/fewd-week7-slides
  • 2. FINAL PROJECT MILESTONE 2 By week 7, you should have submitted pseudo code and a draft of the HTML/CSS for your application. This week, you'll focus on drafting the JavaScript and jQuery you'll need for your application.
  • 3. YOUR WEEKLY FEWD GITHUB REPOSITORY Use the '+' button in the top-left of GitHub Desktop (Create tab) Create a new repository called 'FEWD_Week7' Choose the [home]/FEWD folder for the local path Open this repo folder in your editor Commit the changes and publish the FEWD_Week7 repository to github.com
  • 4. YOUR WEEKLY WORKING FILES FROM ME To get the week7_working_files you should just be able to select the ga-fewd-files repository in GitHub Desktop and press 'Sync'. This should pull in this weeks folder from github.com. If you any difficulties you should just re-clone the ga-fewd- files repository. Copy the whole week7_working_files into your FEWD_Week7 repository and commit and publish to github.com
  • 5. REVIEW OF LAST WEEK'S ASSIGNMENT
  • 7. DEBUGGING Always start be defining the problem. "The image is not moving" "None of my code works"
  • 8. DEBUGGING This will tell you where to start your hunt Image not moving find the code that makes the image move None of my code works Syntax error, check console
  • 9. DEBUGGING: LEVEL 1 Check for errors (red text, aligned right) in console To access debugging console PC: CTRL+SHIFT+J Mac: COMMAND+OPTION+J Click the error The location may not be correct but is a good place to start Ex: Unbalanced brackets or parentheses
  • 10. DEBUGGING: LEVEL 2 So no red errors but not getting the right answer? Try console.log Ex: var stringOfNames=""; ["Bob","Joe"].forEach(function(element){ stringOfNames-=element+","; console.log(stringOfNames); });
  • 11. DEBUGGING: LEVEL 3 Use the debugger in Chrome Set a breakpoint Run the code Step through the code until you get to the error Variable values display on the right You can switch to the console to run code or check value of variable
  • 12. DEBUGGING: LEVEL 4 Get help! 1. Try "Your preferred search engine" search 2. Be ready to clearly articulate the problem (Write out what your problem is) 3. If nothing, ask instructor
  • 14. AGENDA This week we are bringing HTML/CSS back into the equation. Let's return to responsive layouts and units as discussed in Week 3. Responsive Layouts REM/EM Media Queries
  • 15. Let's read through the refresher notes for Week 3 again. Go to: https://gist.github.com/wmyers/d2fedd6f2a52d272ad9e
  • 16. A BIT MORE ON EMS VS REMS em: a sized based on the width of the letter "m" rem: a "root" em Some browsers have issues with fonts sized in percents, em is better for fonts.
  • 17. LAYOUTS - STATIC VS LIQUID VS ADAPTIVE VS RESPONSIVE Did anyone read this web page? http://blog.teamtreehouse.com/which-page-layout
  • 18. LAYOUTS - ELASTIC One other layout options is to use emfor layout widths as well as for font-sizes. This means that the page will resize according to the end user's preferred text size. This blog post from 2009 is still useful for explaining fixed versus fluid versus elastic layouts (though most of the example links are no longer correct): https://www.smashingmagazine.com/2009/06/fixed-vs- fluid-vs-elastic-layout-whats-the-right-one-for-you/ But remember Flexbox is slowing making these older ways of doing responsive websites obsolete.
  • 19. BOXES EXERCISE Let's start building a layout using boxes. We will eventually make this layout responsive. Open week7_working_files/responsive_boxes/readme.pdf in your browser. You can use floator display:inline- blockor Flexbox, for columns. Recreate Boxing 1 using html and css. You can use the week3_working_files/layout_challenge/5.magazine files as a starting point if using Flexbox. Otherwise use one of the 1.two-column layouts. Copy the files into week7_working_files/responsive_boxes folder. Note that you need to have a hidden element.
  • 20. RESPONSIVE DESIGN IS MORE DESIGN THAN CODE. Go to this website Open Chrome Dev Tools (CTRL + Alt + I) Set the Dock Side to the right and then click on the mobile icon http://www.anderssonwise.com/ Also look at the site on your phone browser. Discuss what is making the site responsive.
  • 21. FIXED VS RESPONSIVE Looking for comparisons of fixed versus responsive layouts. Checkout these Fixed sites UPS.com Google.com Checkout these Responsive Sites Generalassemb.ly Designmodo examples
  • 22. MOBILE BOXES Continuing with our boxing exercise. Keeping the same HTML, add/overwrite classes in your CSS, below your existing code, to make the boxes look like Boxing 2.
  • 23. FIXED LAYOUT We have used fixed layouts in our designs up to this point - e.g in Relaxr pages Relies on a container of fixed width - usually 960px or 980px Has margin:0 auto(or similar) to center the container
  • 24. RESPONSIVE LAYOUT Different styles for different screen widths Uses an elastic/fluid layout Fluid - Sized in percentages Elastic - Sized in ems
  • 25. MEDIA QUERIES - USAGE Please read the first part of regarding syntax.this page For a list of @mediatypes: https://developer.mozilla.org/en- US/docs/Web/CSS/@media#Media_types For building responsive web pages you will use the following syntax: @media only screen and (max-width: Npx) (min-width: Npx) (max-device-width:Npx) (min-device- For tablets (orientation: portrait) (orientation: landscape)
  • 26. MEDIA QUERIES - USAGE Separate multiple clauses with "and" @media only screen and (max-width: 769px) and (orientation: landscape) { ... } Standard media queries sizes Small: up to 768px Medium: 769-991px Large: 992px+
  • 27. MOBILE DISPLAY - VIEWPORT The viewport meta tag (placed in the <head>) lets the browser know that it has to scale your webpage responsively on every device. Combining the viewport meta tag with responsive CSS will make your web page work across different mobile browsers. Otherwise the mobile browser will assume a fixed layout of between 800px to 1024px, and the user will have to zoom in to different sections of the page. <meta name="viewport" content="width=device-width, initial-scale=1">
  • 28. VIEWPORT - DIFFERENT PIXELS See this page to understand how device independent pixels are required to enable the viewport meta tag to scale a mobile browser page correctly: https://developers.google.com/speed/docs/insights/ConfigureV hl=en
  • 29. VIEWPORT - USER SCALING There is an additional attribute for the viewport meta tag: user-scalable=none <meta name="viewport" content="width=device-width, initial-scale=1 user-scalable=none"> This prevents the user from using default browser zoom functionality (including pinch-zooming) - the implication is that responsive CSS and the standard use of the viewport meta tag should make zooming unnecessary. However this is essentially anti-accessibility: http://codepen.io/absolutholz/post/user-scalable-no-evil- or-slightly-not-evil
  • 30. VIEWPORT - 300MS TAP IN ANDROID On the flip-side of the argument against using user- scalable=none, a couple of years ago, if you did use it then (in Android) you would remove a mandatory 300 millisecond delay caused by waiting to detect a user double- tap. https://developers.google.com/web/updates/2013/12/300ms- tap-delay-gone-away Following more recent changes, Chrome and Firefox now remove the 300ms tap delay if your web page contains the content="width=device-width"attribute instead. This means you can retain pinch zooming.
  • 31. MOBILE DISPLAY - 300MS TAP IN IOS Mobile Safari has a more complicated approach to solving the 300ms delay by detecting for fast taps and slow taps: http://developer.telerik.com/featured/300-ms-click-delay- ios-8/ However there is a JavaScript library called FastClick which can be included which can be used to remove the 300ms click delay across all mobile browsers: https://github.com/ftlabs/fastclick
  • 32. MEDIA QUERY USAGE /*inline boxes into columns*/ .box{ display:inline-block; } @media only screen and (max-width:768px){ /*insert responsive css here eg: stack inline boxes*/ .box{ display:block; } } If I put the media query before .box{ display:inline-block; } will this work as expected? See .this link
  • 33. RESPONSIVE BOXES Returning to our boxing layout, use media-queries to make your boxing web page responsive so that it changes from Boxing 1 to Boxing 2 when the browser window width is reduced.
  • 34. TRANSITIONS TO MAKE MEDIA QUERY CHANGES SMOOTHER We will look more at CSS animations and transitions in Week 9 and Week 10. Feel free to research this further in the meantime.
  • 35. LAYOUTS - GRIDS Grids are ways of creating complex fixed or fluid layouts, involving nested rows and columns. Many grids have up to 12 columns and unlimited rows. NB Grids tend to use floats for creating columns. This article shows you how to create a responsive fluid grid layout that uses media-queries to change to a single column layout when the page gets too small. http://www.sitepoint.com/understanding-css-grid-systems/ http://codepen.io/SitePoint/pen/dPqqvN
  • 36. GRIDS - BOOTSTRAP Grids are often implemented using popular third party CSS libraries, that provide tested cross-browser complex layouts that developers can use out of the box. The Bootstrap CSS library has grid layout classes (available when you include and link bootstrap.css in your <head>): http://www.sitepoint.com/understanding-bootstrap-grid- system/ The Bootstrap grid system is also responsive. You apply different styles to your column <div>s and the relevant one will be automatically used as your window resizes.
  • 37. GRIDS It is not actually that hard to build your own grid. In fact we have already been doing so with things like the magazine layout in Week 3. A simple column layout is still a grid, more complex grid layouts can still utilize simple CSS layout techniques: https://css-tricks.com/dont-overthink-it-grids/ (NB: this layout uses floats. We could use display:inline-blockor Flexbox instead.)
  • 38. LAYOUTS - THE NEW GRID DISPLAY PROPERTY There is also a new display:gridproperty, which is a recent CSS addition like display:flex. At this time it is still better to use Flexbox (display:flex).
  • 39. AGENDA How to make a website responsive.
  • 40. LEVEL ONE Convert widths to percentages Size fonts in ems Identify columns that can be stacked
  • 41. LEVEL TWO Determine what content is extra Does that h1 need an h2 under it? Will that one liner get the visitor to understand my site or is it extra? Determine what content needs to be visible Is it necessary to show my entire nav if there are other ways of getting to navigation? Identify extra styling Do my columns need a border if they're stacked?