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
CSS Wranglin'
Search
Joe Ellis
March 01, 2013
Technology
6
130
CSS Wranglin'
How to wrangle and organize CSS in a sane way for medium to large applications.
Joe Ellis
March 01, 2013
Tweet
Share
More Decks by Joe Ellis
See All by Joe Ellis
Sass vs Less vs Stylus vs Rework
notjoeellis
3
2.2k
Scalable CSS
notjoeellis
5
360
Barcamp 5 - A Website's Tale
notjoeellis
2
200
Other Decks in Technology
See All in Technology
ざっくり学ぶ 『エンジニアリングリーダー 技術組織を育てるリーダーシップと セルフマネジメント』 / 50 minute Engineering Leader
iwashi86
7
3.7k
SREのキャリアから経営に近づく - Enterprise Risk Managementを基に -
shonansurvivors
1
500
DMMの検索システムをSolrからElasticCloudに移行した話
hmaa_ryo
0
300
.NET 10のBlazorの期待の新機能
htkym
0
160
어떤 개발자가 되고 싶은가?
arawn
1
320
実践マルチモーダル検索!
shibuiwilliam
2
460
AWS re:Invent 2025事前勉強会資料 / AWS re:Invent 2025 pre study meetup
kinunori
0
890
Oracle Base Database Service 技術詳細
oracle4engineer
PRO
14
82k
AIを使ってテストを楽にする
kworkdev
PRO
0
350
20251027_findyさん_音声エージェントLT
almondo_event
2
510
re:Invent 2025の見どころと便利アイテムをご紹介 / Highlights and Useful Items for re:Invent 2025
yuj1osm
0
450
dbtとAIエージェントを組み合わせて見えたデータ調査の新しい形
10xinc
7
1.6k
Featured
See All Featured
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
10
630
Embracing the Ebb and Flow
colly
88
4.9k
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.2k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
Rebuilding a faster, lazier Slack
samanthasiow
84
9.2k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
48
9.7k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Six Lessons from altMBA
skipperchong
29
4k
Code Review Best Practice
trishagee
72
19k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.3k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.6k
Transcript
CSS Wranglin’ Friday, March 1, 13
by Joe Ellis @notjoeellis
[email protected]
Developer at Audiosocket Friday, March
1, 13
Disclaimer Friday, March 1, 13
This is for medium to large applications Rules may not
make sense for small sites. Friday, March 1, 13
YMMV Friday, March 1, 13
Use a CSS precompiler Friday, March 1, 13
File Structure Friday, March 1, 13
Friday, March 1, 13
General Goals Friday, March 1, 13
• Predictable • Reusable • Maintainable • Scalable Good CSS
is: How to do this? Friday, March 1, 13
Avoid overly specific selectors and parent selectors Friday, March 1,
13
BAD Friday, March 1, 13
GOOD Friday, March 1, 13
Avoid #IDS Friday, March 1, 13
Avoid overly generic class names Friday, March 1, 13
BAD Friday, March 1, 13
GOOD Friday, March 1, 13
Avoid having classes do too much. Abstract where possible. Friday,
March 1, 13
BAD Friday, March 1, 13
NOT BAD Friday, March 1, 13
BEST Friday, March 1, 13
Separate CSS styles from JS hooks Friday, March 1, 13
BAD Friday, March 1, 13
GOOD Friday, March 1, 13
Got questions /tips? Friday, March 1, 13
FIN Friday, March 1, 13