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
Data-Centric Kaggle
isax1015
2
770
なるべく楽してバックエンドに型をつけたい!(楽とは言ってない)
hibiki_cube
0
140
フロントエンド開発の勘所 -複数事業を経験して見えた判断軸の違い-
heimusu
7
2.8k
ThorVG Viewer In VS Code
nors
0
770
AI巻き込み型コードレビューのススメ
nealle
1
190
HTTPプロトコル正しく理解していますか? 〜かわいい猫と共に学ぼう。ฅ^•ω•^ฅ ニャ〜
hekuchan
2
690
Oxlintはいいぞ
yug1224
5
1.3k
なぜSQLはAIぽく見えるのか/why does SQL look AI like
florets1
0
460
「ブロックテーマでは再現できない」は本当か?
inc2734
0
970
CSC307 Lecture 08
javiergs
PRO
0
670
高速開発のためのコード整理術
sutetotanuki
1
400
humanlayerのブログから学ぶ、良いCLAUDE.mdの書き方
tsukamoto1783
0
190
Featured
See All Featured
Into the Great Unknown - MozCon
thekraken
40
2.3k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.7k
How to train your dragon (web standard)
notwaldorf
97
6.5k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
1
51
Believing is Seeing
oripsolob
1
54
Un-Boring Meetings
codingconduct
0
200
Java REST API Framework Comparison - PWX 2021
mraible
34
9.1k
Test your architecture with Archunit
thirion
1
2.1k
Are puppies a ranking factor?
jonoalderson
1
2.7k
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
80
Fashionably flexible responsive web design (full day workshop)
malarkey
408
66k
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
120
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