Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Responsive webdesign - webdesign done right
Search
Sybren Wartna
January 09, 2012
Technology
300
3
Share
Responsive webdesign - webdesign done right
Sybren Wartna
January 09, 2012
More Decks by Sybren Wartna
See All by Sybren Wartna
Typography on the web
syb
0
80
Everything can break
syb
1
99
Werken in stijl
syb
0
97
Other Decks in Technology
See All in Technology
ハーネスエンジニアリングをやりすぎた話 ~そのハーネスは解体された~
gotalab555
5
1.8k
Rapid Start: Faster Internet Connections, with Ruby's Help
kazuho
2
760
AgentCore Managed Harness を使ってみよう
yakumo
2
210
スクラムの中で AI-DLC workflow を 使い始めて3ヶ月の振り返り
kaminashi
0
130
巨大プラットフォームを進化させる「第3のROI」
recruitengineers
PRO
2
1.1k
No Types Needed, Just Callable Method Check
dak2
1
1.8k
Hacobu Tech Deck
hacobu
PRO
0
120
プラットフォームエンジニアリングの実践 - AWS コンテナサービスで構築する社内プラットフォーム / AWS Containers Platform Meetup #1
literalice
1
210
コードや知識を組み込む / Incorporate Code and Knowledge
ks91
PRO
0
170
実践ハーネスエンジニアリング:TAKTで実現するAIエージェント制御 / Practical Harness Engineering: AI Agent Control Enabled by TAKT
nrslib
12
4.8k
レビューしきれない?それは「全て人力でのレビュー」だからではないでしょうか
amixedcolor
0
350
AndroidアプリとCopilot Studioの統合
nakasho
0
120
Featured
See All Featured
Making the Leap to Tech Lead
cromwellryan
135
9.8k
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
160
Un-Boring Meetings
codingconduct
0
270
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.1k
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.2k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
280
How to build a perfect <img>
jonoalderson
1
5.4k
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.4k
New Earth Scene 8
popppiees
3
2.1k
Mind Mapping
helmedeiros
PRO
1
160
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.4k
The untapped power of vector embeddings
frankvandijk
2
1.7k
Transcript
RESPONSIVE WEBDESIGN webdesign done right
Sybren Wartna
None
WAAROM RESPONSIVE?
devices, devices, devices
wie heeft geen smartphone?
mobile first ‣ markt groeit sterk ‣ meer mogelijkheden ‣
focus op broodnodige
let’s make a mobile app
telefoons niet in verhouding
oh, en we willen ook iets met tablets
None
er is geen mobile web
er is één web
en dat is responsive
RESPONSIVE VOORBEELDEN
< film van hicksdesign.co.uk >
media queries flexibel grid flexibele afbeeldingen
garrettwinder.com
None
None
None
werkenbijmirabeau.nl
None
None
None
sony.com
None
None
None
staffanstorp.se
None
None
None
simplebits.com
None
None
None
HOE WORD JE RESPONSIVE?
media queries flexibel grid flexibele afbeeldingen
flexibel grid
wat doet een grid?
‣ orde scheppen ‣ organiseren van elementen op de pagina
‣ groeperen van elementen ‣ visuele connecties creëren wat doet een grid?
target ÷ context = result
target ÷ context = result doel in pixels (inclusief marges)
ouderelement (parent)
None
None
960px 60 20 60 20 60 20 300px
300 ÷ 960 = 0,3125 .advertisement { width: 31,25% }
media queries
mediawat? ‣ type medium ‣ eigenschappen van medium ‣ nesten
van styles ‣ overruling
‣ braille ‣ embossed ‣ handheld ‣ print ‣ projection
‣ screen ‣ speech ‣ tty ‣ tv typen media
handheld wordt niet (meer) voor mobiele telefoons gebruikt
‣ breedte / hoogte device ‣ breedte / hoogte viewport
‣ oriëntatie van device ‣ kleuren eigenschappen van media
@media screen and (max-device-width: 480px) { /* specifieke CSS */
}
@media print and (orientation:landscape) and (monochrome) { }
Opera Mini Internet Explorer Blackberry
hoe oplossen? ‣ mobile first html + css ‣ modernizr
‣ jQuery plugins
iPhone iPhone 4+
@media screen and (-webkit-min-device-pixel-ratio: 2) { /* retina afbeeldingen */
}
Modernizr.load([{ test : Modernizr.mq(‘(-webkit-min- device-pixel-ratio: 2)’), yep : [‘retina.css’], nope
: [‘images.css’] }]);
modernizr ‣ touch screen ‣ CSS3 animations ‣ CSS3 transform
what’s next? ‣ ondersteuning tv’s ‣ ondersteuning beamers ‣ meer
CSS3 ondersteuning
flexibele afbeeldingen
.advertisement img { max-width: 100%; } afbeelding schaalt mee
<img src="small.r.jpg" data- fullsrc="large.jpg"> ‘mobile’ first
services ‣ adaptive-images.com ‣ github.com/filamentgroup/Responsive-Images
moeilijkheden ‣ inladen van afbeeldingen ‣ schalen in browsers ‣
background sizing
< film van hicksdesign.co.uk >
WERKWIJZE VOOR RESPONSIVE
projectaanpak
None
‣ samenwerken ‣ iteratief werken ‣ continue testen agile /
scrum
content first ‣ wat is er echt nodig? ‣ focus
op toptaken ‣ tekst ‣ afbeeldingen
niet ontwerpen in photoshop ‣ content first ‣ functioneel ontwerp
‣ grid maken ‣ schetsen
testen
bookmarklet ‣ resize window bookmarklet ‣ http://tiny.cc/resize-bookmarklet ‣ niet dé
oplossing
zorg voor devices
must read
WEBDESIGN DONE RIGHT twitter: @NLife - http://tiny.cc/webdesign-done-right