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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
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
Oxlintはいいぞ
yug1224
5
1.3k
AIと一緒にレガシーに向き合ってみた
nyafunta9858
0
230
「ブロックテーマでは再現できない」は本当か?
inc2734
0
970
AI前提で考えるiOSアプリのモダナイズ設計
yuukiw00w
0
230
16年目のピクシブ百科事典を支える最新の技術基盤 / The Modern Tech Stack Powering Pixiv Encyclopedia in its 16th Year
ahuglajbclajep
5
1k
生成AIを使ったコードレビューで定性的に品質カバー
chiilog
1
270
AgentCoreとHuman in the Loop
har1101
5
230
Basic Architectures
denyspoltorak
0
670
AI & Enginnering
codelynx
0
110
humanlayerのブログから学ぶ、良いCLAUDE.mdの書き方
tsukamoto1783
0
190
CSC307 Lecture 08
javiergs
PRO
0
670
フルサイクルエンジニアリングをAI Agentで全自動化したい 〜構想と現在地〜
kamina_zzz
0
400
Featured
See All Featured
ラッコキーワード サービス紹介資料
rakko
1
2.3M
The browser strikes back
jonoalderson
0
370
New Earth Scene 8
popppiees
1
1.5k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.4k
Being A Developer After 40
akosma
91
590k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Prompt Engineering for Job Search
mfonobong
0
160
Making the Leap to Tech Lead
cromwellryan
135
9.7k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
450
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
0
430
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
1
51
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1k
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