SlideShare a Scribd company logo
1 of 46
Download to read offline
Designing Hacks
Jeremy Cimafonte
“Turns out good design is
just a collection of hacks”
Thursday, September 5, 13
who i am.
Thursday, September 5, 13
Thursday, September 5, 13
Thursday, September 5, 13
Thursday, September 5, 13
how to make your
hack that stand out.
design principles
elements of design
responsive design
debug design / things watch out for
css
Thursday, September 5, 13
Developers want
good design.
"Attractive things work better."
Don Norman
Thursday, September 5, 13
"its a lot easier to execute a minimal
design than it is for you to get
ambitious.
“you get ambitious you fail"
Idan Gazit
Thursday, September 5, 13
minimal is what works
Thursday, September 5, 13
your users can only focus on one thing
at a time.
"Do not try to do everything. Do one
thing well.”

Jeff Raskin
Steve Jobs
Thursday, September 5, 13
Knowing how people
will use something is
essential.
"Everyday people are not very
good designers."
Don Norman
Designers are not good
designers.............
Thursday, September 5, 13
think humane.
your flow. and interface.
should help the user.
one obvious way to do things.
easy to learn, easy to remember.
Thursday, September 5, 13
cohesive idea. not groups of a few ideas
Thursday, September 5, 13
• who do you think will use your app?
• draw out an interface tailored for them.
x
Thursday, September 5, 13
Sketch
Your Ideas.
Thursday, September 5, 13
Alignment...Spacing..
Visual Hierarchy
Thursday, September 5, 13
“Design is as much an
act of spacing as an
act of marking.”
Thinking with Type
Ellen Lupton
Thursday, September 5, 13
Use Margins so
everything lines up
equally
Thursday, September 5, 13
=
Thursday, September 5, 13
Thursday, September 5, 13
Thursday, September 5, 13
Visual Hierarchy
• Contrast shows relative importance.
• Repetition attaches meaning to new
elements.
• Alignment creates order.
• A single element that breaks the
established alignment calls attention to
itself and it’s importance. Think of a pull
quote.
• Proximity groups elements within a
hierarchy and creates new sub
hierarchies.
Thursday, September 5, 13
Visual Hierarchy
Size
Color
density density density
Value
whitespace
Thursday, September 5, 13
Debug Your Design
1. Desaturation Test 2. Blur Test 3. Upside Down Test
Thursday, September 5, 13
Typography
Thursday, September 5, 13
Text-background color contrast
Lazy handling of titles and subtitles
Common Mistakes
Thursday, September 5, 13
Text Size
Have fixed sizes for headers, subheaders, body copy. Go for consistency.
Provide adequate line spacing. Don’t decrease linespacing...
Common Mistakes
Thursday, September 5, 13
Text blocks that are not split up into enough small, scannable, digestible parts
Indiscernible links.
Text is not treated as an interface but as decoration
Common Mistakes
Thursday, September 5, 13
content is the center of attention, content deserves the most love from the
designer
Common Mistakes
Thursday, September 5, 13
content is the center of attention, content deserves the most love from the
designer
Common Mistakes
Thursday, September 5, 13
Find Fonts?
• Go to fontsinuse.com
• Look for fonts and font combos you like.
• Try and find similar ones on google fonts so you can
embed easily. (no searching around internet)
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
Thursday, September 5, 13
Use Icons
http://fortawesome.github.io/
Thursday, September 5, 13
Use Icons
Place them next to text to indicate action.
Thursday, September 5, 13
Colors
Go to http://colourlovers.com/
Pick a Color Palette that you think fits your app.
create variable for them and reuse throughout.
$blue: #939393
$dark-blue: #121234
$green: #734323
Thursday, September 5, 13
A note on Responsive
Design
Thursday, September 5, 13
courtesy open signals
iOS
Thursday, September 5, 13
courtesy open signals
Android
Thursday, September 5, 13
courtesy open signals
Comparison
Thursday, September 5, 13
Use a CSS
Framework
• frameworks give equal margins and grids.
for easier alignment
• prebuilt components you can restyle
• so you can use your app on any device.
(if its good, you can use later..)
• Use Foundation or SASS
Thursday, September 5, 13
Think Before You Shrink
Thursday, September 5, 13
Use this to fix box model.
*{box-sizing: border-box;}
• drop this in your CSS.
• something 200px wide. will
always be 200px wide
• otherwise, with padding/
margin, could be different
size....
Thursday, September 5, 13
Inline Elements do thisInline Elements do
this
Block Elements do
Table Cell’s
can do this
(verticalalign!)
Thursday, September 5, 13
display property controls what type of box is generated for an element
Values:
inline | block | list-item | run-in | compact | marker | table | inline-table | table-row-
group | table-header-group | table-footer-group | table-row | table-column-group
| table-column | table-cell | table-caption | none | inherit
Thursday, September 5, 13
float property allows element boxes to be shifted to the right or left on
the current line
Floated boxes are block boxes
Floated boxes are “pulled out” of the normal flow and repositioned
Must have explicit width
May overlap other boxes
clear property specifies which side(s) of an element should NOT be
adjacent to a floating box that is specified earlier in the document
Thursday, September 5, 13
position property:
static – box is positioned according to normal flow
relative – box is positioned relative to where it would have been placed in the
normal flow
absolute – box is positioned relative to its containing block; these boxes are
taken out of flow
fixed – box is fixed in relation to the viewport (a browser window or a printed
page)
Thursday, September 5, 13
CSS allows authors to generate content that is not part of the
document tree using the following entities:
:before pseudo-element
:after pseudo-element
content property
Thursday, September 5, 13

More Related Content

Similar to Designing hacks

Learn You a Designing for Great Good!, AtlasCamp US 2012
Learn You a Designing for Great Good!, AtlasCamp US 2012Learn You a Designing for Great Good!, AtlasCamp US 2012
Learn You a Designing for Great Good!, AtlasCamp US 2012Atlassian
 
A Few Secrets to Making a Presentation That Doesn't Suck
A Few Secrets to Making a Presentation That Doesn't SuckA Few Secrets to Making a Presentation That Doesn't Suck
A Few Secrets to Making a Presentation That Doesn't SuckVinay Parikh
 
Typography & WordPress
Typography & WordPressTypography & WordPress
Typography & WordPressAndyStaple
 
Web Designer Gurugram |Web Designer in Gurugram
Web Designer Gurugram |Web Designer in GurugramWeb Designer Gurugram |Web Designer in Gurugram
Web Designer Gurugram |Web Designer in Gurugramshailenra
 
Advanced Skinning & Styling for Android
Advanced Skinning & Styling for AndroidAdvanced Skinning & Styling for Android
Advanced Skinning & Styling for Androidcephus07
 
Give a Great Tech Talk
Give a Great Tech TalkGive a Great Tech Talk
Give a Great Tech Talkjberkus
 
6 Key Principles Of Making A Web Design
6 Key Principles Of Making A Web Design6 Key Principles Of Making A Web Design
6 Key Principles Of Making A Web DesignClippingimages
 
Android Design: Beyond the Guidelines
Android Design: Beyond the GuidelinesAndroid Design: Beyond the Guidelines
Android Design: Beyond the Guidelineskevingrant5
 
Some simple tips for front-end performance in WordPress
Some simple tips for front-end performance in WordPressSome simple tips for front-end performance in WordPress
Some simple tips for front-end performance in WordPressiparr
 
Science-Fair Project - (Template)
Science-Fair Project - (Template)Science-Fair Project - (Template)
Science-Fair Project - (Template)Geogropedia World
 
The 17 Graphic Design Tips All Non Designers Need to Know
The 17 Graphic Design Tips All Non Designers Need to KnowThe 17 Graphic Design Tips All Non Designers Need to Know
The 17 Graphic Design Tips All Non Designers Need to KnowRam Chary Everi
 
Design Guidelines for Screen Presentations
Design Guidelines for Screen PresentationsDesign Guidelines for Screen Presentations
Design Guidelines for Screen PresentationsRobert W. Williams
 
Design for non-designers: five visual principles to guide you
Design for non-designers: five visual principles to guide youDesign for non-designers: five visual principles to guide you
Design for non-designers: five visual principles to guide youDavid Hall
 
Visual Literacy Basics.Key
Visual Literacy Basics.KeyVisual Literacy Basics.Key
Visual Literacy Basics.KeyStratervation
 
Presentation Visuals
Presentation VisualsPresentation Visuals
Presentation Visualsbthat
 
Adaptive Experiences
Adaptive ExperiencesAdaptive Experiences
Adaptive ExperiencesWINTR
 
Group Presentation Skills
Group Presentation SkillsGroup Presentation Skills
Group Presentation SkillsMrs Aissa Rim
 
Jonathan Whiting - Ten things you can start doing today that will make your w...
Jonathan Whiting - Ten things you can start doing today that will make your w...Jonathan Whiting - Ten things you can start doing today that will make your w...
Jonathan Whiting - Ten things you can start doing today that will make your w...Plain Talk 2015
 

Similar to Designing hacks (20)

Learn You a Designing for Great Good!, AtlasCamp US 2012
Learn You a Designing for Great Good!, AtlasCamp US 2012Learn You a Designing for Great Good!, AtlasCamp US 2012
Learn You a Designing for Great Good!, AtlasCamp US 2012
 
A Few Secrets to Making a Presentation That Doesn't Suck
A Few Secrets to Making a Presentation That Doesn't SuckA Few Secrets to Making a Presentation That Doesn't Suck
A Few Secrets to Making a Presentation That Doesn't Suck
 
Typography & WordPress
Typography & WordPressTypography & WordPress
Typography & WordPress
 
Web Designer Gurugram |Web Designer in Gurugram
Web Designer Gurugram |Web Designer in GurugramWeb Designer Gurugram |Web Designer in Gurugram
Web Designer Gurugram |Web Designer in Gurugram
 
Making Powerpoint Slide
Making Powerpoint Slide Making Powerpoint Slide
Making Powerpoint Slide
 
Advanced Skinning & Styling for Android
Advanced Skinning & Styling for AndroidAdvanced Skinning & Styling for Android
Advanced Skinning & Styling for Android
 
Give a Great Tech Talk
Give a Great Tech TalkGive a Great Tech Talk
Give a Great Tech Talk
 
6 Key Principles Of Making A Web Design
6 Key Principles Of Making A Web Design6 Key Principles Of Making A Web Design
6 Key Principles Of Making A Web Design
 
Android Design: Beyond the Guidelines
Android Design: Beyond the GuidelinesAndroid Design: Beyond the Guidelines
Android Design: Beyond the Guidelines
 
Some simple tips for front-end performance in WordPress
Some simple tips for front-end performance in WordPressSome simple tips for front-end performance in WordPress
Some simple tips for front-end performance in WordPress
 
Science-Fair Project - (Template)
Science-Fair Project - (Template)Science-Fair Project - (Template)
Science-Fair Project - (Template)
 
News design
News designNews design
News design
 
The 17 Graphic Design Tips All Non Designers Need to Know
The 17 Graphic Design Tips All Non Designers Need to KnowThe 17 Graphic Design Tips All Non Designers Need to Know
The 17 Graphic Design Tips All Non Designers Need to Know
 
Design Guidelines for Screen Presentations
Design Guidelines for Screen PresentationsDesign Guidelines for Screen Presentations
Design Guidelines for Screen Presentations
 
Design for non-designers: five visual principles to guide you
Design for non-designers: five visual principles to guide youDesign for non-designers: five visual principles to guide you
Design for non-designers: five visual principles to guide you
 
Visual Literacy Basics.Key
Visual Literacy Basics.KeyVisual Literacy Basics.Key
Visual Literacy Basics.Key
 
Presentation Visuals
Presentation VisualsPresentation Visuals
Presentation Visuals
 
Adaptive Experiences
Adaptive ExperiencesAdaptive Experiences
Adaptive Experiences
 
Group Presentation Skills
Group Presentation SkillsGroup Presentation Skills
Group Presentation Skills
 
Jonathan Whiting - Ten things you can start doing today that will make your w...
Jonathan Whiting - Ten things you can start doing today that will make your w...Jonathan Whiting - Ten things you can start doing today that will make your w...
Jonathan Whiting - Ten things you can start doing today that will make your w...
 

Recently uploaded

"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 

Recently uploaded (20)

"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 

Designing hacks

  • 1. Designing Hacks Jeremy Cimafonte “Turns out good design is just a collection of hacks” Thursday, September 5, 13
  • 2. who i am. Thursday, September 5, 13
  • 6. how to make your hack that stand out. design principles elements of design responsive design debug design / things watch out for css Thursday, September 5, 13
  • 7. Developers want good design. "Attractive things work better." Don Norman Thursday, September 5, 13
  • 8. "its a lot easier to execute a minimal design than it is for you to get ambitious. “you get ambitious you fail" Idan Gazit Thursday, September 5, 13
  • 9. minimal is what works Thursday, September 5, 13
  • 10. your users can only focus on one thing at a time. "Do not try to do everything. Do one thing well.”  Jeff Raskin Steve Jobs Thursday, September 5, 13
  • 11. Knowing how people will use something is essential. "Everyday people are not very good designers." Don Norman Designers are not good designers............. Thursday, September 5, 13
  • 12. think humane. your flow. and interface. should help the user. one obvious way to do things. easy to learn, easy to remember. Thursday, September 5, 13
  • 13. cohesive idea. not groups of a few ideas Thursday, September 5, 13
  • 14. • who do you think will use your app? • draw out an interface tailored for them. x Thursday, September 5, 13
  • 17. “Design is as much an act of spacing as an act of marking.” Thinking with Type Ellen Lupton Thursday, September 5, 13
  • 18. Use Margins so everything lines up equally Thursday, September 5, 13
  • 22. Visual Hierarchy • Contrast shows relative importance. • Repetition attaches meaning to new elements. • Alignment creates order. • A single element that breaks the established alignment calls attention to itself and it’s importance. Think of a pull quote. • Proximity groups elements within a hierarchy and creates new sub hierarchies. Thursday, September 5, 13
  • 23. Visual Hierarchy Size Color density density density Value whitespace Thursday, September 5, 13
  • 24. Debug Your Design 1. Desaturation Test 2. Blur Test 3. Upside Down Test Thursday, September 5, 13
  • 26. Text-background color contrast Lazy handling of titles and subtitles Common Mistakes Thursday, September 5, 13
  • 27. Text Size Have fixed sizes for headers, subheaders, body copy. Go for consistency. Provide adequate line spacing. Don’t decrease linespacing... Common Mistakes Thursday, September 5, 13
  • 28. Text blocks that are not split up into enough small, scannable, digestible parts Indiscernible links. Text is not treated as an interface but as decoration Common Mistakes Thursday, September 5, 13
  • 29. content is the center of attention, content deserves the most love from the designer Common Mistakes Thursday, September 5, 13
  • 30. content is the center of attention, content deserves the most love from the designer Common Mistakes Thursday, September 5, 13
  • 31. Find Fonts? • Go to fontsinuse.com • Look for fonts and font combos you like. • Try and find similar ones on google fonts so you can embed easily. (no searching around internet) <link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'> Thursday, September 5, 13
  • 33. Use Icons Place them next to text to indicate action. Thursday, September 5, 13
  • 34. Colors Go to http://colourlovers.com/ Pick a Color Palette that you think fits your app. create variable for them and reuse throughout. $blue: #939393 $dark-blue: #121234 $green: #734323 Thursday, September 5, 13
  • 35. A note on Responsive Design Thursday, September 5, 13
  • 39. Use a CSS Framework • frameworks give equal margins and grids. for easier alignment • prebuilt components you can restyle • so you can use your app on any device. (if its good, you can use later..) • Use Foundation or SASS Thursday, September 5, 13
  • 40. Think Before You Shrink Thursday, September 5, 13
  • 41. Use this to fix box model. *{box-sizing: border-box;} • drop this in your CSS. • something 200px wide. will always be 200px wide • otherwise, with padding/ margin, could be different size.... Thursday, September 5, 13
  • 42. Inline Elements do thisInline Elements do this Block Elements do Table Cell’s can do this (verticalalign!) Thursday, September 5, 13
  • 43. display property controls what type of box is generated for an element Values: inline | block | list-item | run-in | compact | marker | table | inline-table | table-row- group | table-header-group | table-footer-group | table-row | table-column-group | table-column | table-cell | table-caption | none | inherit Thursday, September 5, 13
  • 44. float property allows element boxes to be shifted to the right or left on the current line Floated boxes are block boxes Floated boxes are “pulled out” of the normal flow and repositioned Must have explicit width May overlap other boxes clear property specifies which side(s) of an element should NOT be adjacent to a floating box that is specified earlier in the document Thursday, September 5, 13
  • 45. position property: static – box is positioned according to normal flow relative – box is positioned relative to where it would have been placed in the normal flow absolute – box is positioned relative to its containing block; these boxes are taken out of flow fixed – box is fixed in relation to the viewport (a browser window or a printed page) Thursday, September 5, 13
  • 46. CSS allows authors to generate content that is not part of the document tree using the following entities: :before pseudo-element :after pseudo-element content property Thursday, September 5, 13