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 Best Practices
Search
mahdi pedramrazi
November 19, 2013
Programming
140
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
CSS Best Practices
mahdi pedramrazi
November 19, 2013
More Decks by mahdi pedramrazi
See All by mahdi pedramrazi
CSS Shapes
pedramphp
1
71
Node.js Application Architecture.
pedramphp
0
870
Build Your Application On Node.js
pedramphp
1
140
How to write UI Components
pedramphp
0
100
Other Decks in Programming
See All in Programming
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
190
Atomic Design, Enforced: Scaling Mobile Design Systems (next.app devCon / droidCon Berlin 2026)
steliosf
PRO
0
170
AWSに止められる覚悟してますか?
morizo_1984
2
540
npm との違いを手がかりにGo の依存管理を理解したい
optim
0
450
KiroのSpecで「五目並べ」を作ってみる
satoshi256kbyte
1
380
sbt 2.0: takeoff
eed3si9n
0
160
[JA] Domain Modeling with Vanilla Rails: 「操作」から再考するRailsの設計論
yasaichi
0
260
最近”作らせてる” ローカルAIアプリの話
akit37
0
470
機械に任せるテスト、人が見るテスト ⽣成AIで引き直した、運⽤保守フェーズの線引き
dske104
0
190
AIに “答え“を書かせるのを やめてみた
___akari11
0
120
Domain-Driven Transformation
hschwentner
2
2.3k
個人開発者よ、Honoを使え(おじさんver)
tanahiro2010
2
260
Featured
See All Featured
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
800
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
500
Into the Great Unknown - MozCon
thekraken
41
2.8k
For a Future-Friendly Web
brad_frost
184
10k
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
530
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
340
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
4
4.4k
Chasing Engaging Ingredients in Design
codingconduct
0
360
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.7k
Heart Work Chapter 1 - Part 1
lfama
PRO
10
37k
YesSQL, Process and Tooling at Scale
rocio
174
15k
Transcript
CSS Best Practices Mahdi Pedramrazi
#1 Don’t repeat yourself.
DO YOU SEE THE PROBLEM
CAN WE DO BETTER ?
CREATING REUSABLE UNITS
USING CSS PREPROCESSOR Even more reusable units Less
File
#2 Don’t Introduce complexity.
Avoid Using !important
Don’t Use Inline CSS ProperQes <div style=“color: red;”></div>
Avoid Doing Styling With JavaScript
Avoid Using CSS classes used for styling in JS
Bad Good
#3 WRITE LESS CODE
CREATE REUSABLE CLASSES AND MARKUP
WRITE LESS MARKUP Faster reflow and rendering
Thank You