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
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
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時代の認知負荷との向き合い方
optfit
0
160
CSC307 Lecture 05
javiergs
PRO
0
500
それ、本当に安全? ファイルアップロードで見落としがちなセキュリティリスクと対策
penpeen
7
3.9k
「ブロックテーマでは再現できない」は本当か?
inc2734
0
970
Basic Architectures
denyspoltorak
0
670
CSC307 Lecture 07
javiergs
PRO
0
550
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
550
【卒業研究】会話ログ分析によるユーザーごとの関心に応じた話題提案手法
momok47
0
200
Oxlintはいいぞ
yug1224
5
1.3k
今から始めるClaude Code超入門
448jp
8
8.6k
Unicodeどうしてる? PHPから見たUnicode対応と他言語での対応についてのお伺い
youkidearitai
PRO
1
2.5k
AIフル活用時代だからこそ学んでおきたい働き方の心得
shinoyu
0
130
Featured
See All Featured
How to make the Groovebox
asonas
2
1.9k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
0
140
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
49
9.9k
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
1
120
Information Architects: The Missing Link in Design Systems
soysaucechin
0
770
YesSQL, Process and Tooling at Scale
rocio
174
15k
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
57
Making Projects Easy
brettharned
120
6.6k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
34k
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
0
320
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1k
Bash Introduction
62gerente
615
210k
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