Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
CSS – You’ve Been Doing It Wrong
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Harry Roberts
June 04, 2013
Design
3k
14
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
CSS – You’ve Been Doing It Wrong
CSS – You’ve Been Doing It Wrong, Hey!Stac, Leeds. June 2013.
Harry Roberts
June 04, 2013
More Decks by Harry Roberts
See All by Harry Roberts
Build for the Web, Build on the Web, Build With the Web
csswizardry
0
580
Site-Speed That Sticks
csswizardry
13
1.5k
How to Think Like a Performance Engineer
csswizardry
28
2.8k
cache rules everything
csswizardry
5
3.9k
My Website Is Slow! Where Do I Start?
csswizardry
5
610
Optimising Largest Contentful Paint
csswizardry
37
4k
Get Your Head Straight
csswizardry
15
21k
From Milliseconds to Millions: A Look at the Numbers Powering Web Performance
csswizardry
1
2.8k
More Than You Ever Wanted to Know About Resource Hints
csswizardry
6
11k
Other Decks in Design
See All in Design
Техники структурирования беседы с собой, заказчиком и командо
ashapiro
0
300
「おすすめ」はなぜ信用されないのか - 信頼を築くUI/UX設計
ryu1013
0
290
StartDesignEngineering
uchiyama886
0
110
日経電子版を支えていく Kasane Design System
taitotnk
0
330
富山デザイン勉強会_デザイン思考.pdf
keita_yoshikawa
3
180
LP制作のための熱量ハーネス -人の熱量を、AIとの制作につなぐ-
niccy
0
1.3k
TOPOSTOPOS
shoheyey
0
210
開閉UIのアニメーション設計
hiro0218
2
1.1k
【CEDEC2026】『Shadowverse: Worlds Beyond』続編開発におけるUIデザイン・アニメーション演出の「超進化」 ~継承と挑戦を両立するデザイン手法~
cygames
PRO
3
5.2k
root COMPANY DECK / We are hiring!
root_recruit
4
30k
UI生成の鍵は要件整理 -デザインプロセスのエッセンスを プロンプト作成に取り入れよう-
abokadotyann
4
1.1k
もっともらしさ生成器と暮らす – AI懐疑派の試行錯誤
sekiguchiy
0
190
Featured
See All Featured
The Illustrated Children's Guide to Kubernetes
chrisshort
51
53k
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.2k
Between Models and Reality
mayunak
4
460
4 Signs Your Business is Dying
shpigford
187
23k
[SF Ruby Conf 2025] Rails X
palkan
3
1.4k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
1k
Bootstrapping a Software Product
garrettdimon
PRO
306
120k
Done Done
chrislema
186
16k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
56
3.5k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
12k
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
280
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
570
Transcript
CSS – You’ve Been Doing It Wrong
Harry Roberts @csswizardry @
None
CSS – You’ve Been Doing It Wrong
Should designers code?
Sure! But not as designers.
‘We all know developers shouldn’t design.’
1955: FORTRAN
1996: CSS
Programmers have had a 41 year head start!
We should listen to developers.
Abstractions
Object orientation
Performance first
DRY
Single Responsibility Principle
KISS
CSS != ‘Code’
DRYness
DRYness Robustness
DRYness Scalability Robustness
DRYness Scalability Robustness Performance
DRYness Scalability Maintainability Robustness Performance
DRYness Efficiency Scalability Maintainability Robustness Performance
DRYness Efficiency Scalability Maintainability Modularity Robustness Performance
DRYness Efficiency Scalability Maintainability Modularity Robustness Portability Performance
DRYness Efficiency Scalability Maintainability Readability Modularity Robustness Portability Performance
Over engineered
Complex
Spaghetti code
Developers have been listening to designers :(
<?= date("Y") ?>
‘No extra markup!’
‘Semantic classes!’
Prettiness
Hand crafting
Gold plating
Complexity
CSS is pretty poor…
…but you can write it better.
Write CSS with a developer’s mind.
CSS – You’ve Been Doing It Wrong
Harry Roberts @csswizardry @