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 Best Practices
Search
mahdi pedramrazi
November 19, 2013
Programming
0
130
CSS Best Practices
mahdi pedramrazi
November 19, 2013
Tweet
Share
More Decks by mahdi pedramrazi
See All by mahdi pedramrazi
CSS Shapes
pedramphp
1
66
Node.js Application Architecture.
pedramphp
0
870
Build Your Application On Node.js
pedramphp
1
130
How to write UI Components
pedramphp
0
96
Other Decks in Programming
See All in Programming
AI時代のキャリアプラン「技術の引力」からの脱出と「問い」へのいざない / tech-gravity
minodriven
21
7.1k
AtCoder Conference 2025
shindannin
0
1.1k
AIによる開発の民主化を支える コンテキスト管理のこれまでとこれから
mulyu
3
190
Basic Architectures
denyspoltorak
0
670
生成AIを使ったコードレビューで定性的に品質カバー
chiilog
1
260
Data-Centric Kaggle
isax1015
2
770
Fragmented Architectures
denyspoltorak
0
150
dchart: charts from deck markup
ajstarks
3
990
余白を設計しフロントエンド開発を 加速させる
tsukuha
7
2.1k
QAフローを最適化し、品質水準を満たしながらリリースまでの期間を最短化する #RSGT2026
shibayu36
2
4.3k
CSC307 Lecture 01
javiergs
PRO
0
690
CSC307 Lecture 02
javiergs
PRO
1
780
Featured
See All Featured
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
A Soul's Torment
seathinner
5
2.2k
The Curious Case for Waylosing
cassininazir
0
230
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
AI: The stuff that nobody shows you
jnunemaker
PRO
2
250
Exploring anti-patterns in Rails
aemeredith
2
250
Design in an AI World
tapps
0
140
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.4k
Typedesign – Prime Four
hannesfritz
42
2.9k
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
0
1.1k
How to Ace a Technical Interview
jacobian
281
24k
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