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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
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
パスワード再設定メールのURLについて知っておこう
uyuki234
0
160
Railsバージョンを4倍にした話
optim
0
390
AI主導のプログラミング学習アプリを作ってみた
econanringo
0
180
【加筆修正版】Laravel のアプリケーションをどこにデプロイするか #phpcon_ehime
akase244
0
150
パズルゲームの作り方 / how to make puzzle games
kaityo256
PRO
2
290
外から家のPCの電源入れたい!をPHPで解決する
kawashimo0
1
130
KiroのSpecで「五目並べ」を作ってみる
satoshi256kbyte
1
380
Railsのためのパスキー実践入門 〜マルチテナントSaaSでの意思決定〜
utakaha
2
570
re:Inventに行く前に知っておきたい現地参加のノウハウ
nokomoro3
0
430
AIに “答え“を書かせるのを やめてみた
___akari11
0
120
dotNET_vulnclicker_intro.pdf
deka_morita
0
140
ChromeでローカルLLM
ryu1013
0
140
Featured
See All Featured
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
2
6.3k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
7k
Utilizing Notion as your number one productivity tool
mfonobong
4
620
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
520
Designing for Performance
lara
612
70k
Odyssey Design
rkendrick25
PRO
2
870
The untapped power of vector embeddings
frankvandijk
2
1.9k
Paper Plane (Part 1)
katiecoart
PRO
2
12k
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.7k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
250
1.3M
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
570
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