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
Level 1 - Week 5
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Graham Lewis
June 23, 2015
Technology
89
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Level 1 - Week 5
Graham Lewis
June 23, 2015
More Decks by Graham Lewis
See All by Graham Lewis
Level 1 - Week 1
gclssvglx
0
98
Level 1 - Week 2
gclssvglx
0
88
Level 1 - Week 3
gclssvglx
0
95
Level 1 - Week 4
gclssvglx
0
87
Level 1 - Week 6
gclssvglx
0
98
Level 1 - Week 7
gclssvglx
0
94
Level 1 - Week 8
gclssvglx
0
89
Other Decks in Technology
See All in Technology
コンテナ運用におけるネットワーク・コンテナコストの削減方法/How to Reduce Network and Container Costs in Container Operations
masakiokuda
1
240
専門領域のAIをどう評価するか
bengo4com
2
230
「事実」を「計測」して、「解釈」する 〜AWS Lambdaのメモリ最適解の見つけ方〜
maimyyym
0
170
V8のArray.prototype.flatを最大約20倍速くするまでと、巨大OSSへの大規模コミットの道のり
riyaamemiya
0
300
サブエージェントと Claude Mods で作る独自 Advisor ツールの話
kenichiodo
2
160
JAWS-UGグッズ職人仕事の流儀
kentapapa
0
120
QA4AI 2026-Oct 生成AI時代の品質保証
tokuty
1
870
会社説明資料
persolserverworks
0
9.8k
分析の民主化を支えるメタデータ整備の実践
kakehashi
PRO
4
1.4k
AI駆動で「他アプリの音を加工できる」アプリを作った
satomasahiro2005
0
160
ソフトウェア ファクトリー - 再現性のあるソフトウェアの工場づくり / Software factory
iktakahiro
6
5k
Rustuna: Rustによる高速なOptuna実装
pfn
PRO
0
190
Featured
See All Featured
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
850
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
6.1k
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
800
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
56
3.5k
The untapped power of vector embeddings
frankvandijk
2
1.9k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
203
77k
Un-Boring Meetings
codingconduct
0
460
Docker and Python
trallard
47
4.2k
Test your architecture with Archunit
thirion
2
2.4k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.7k
Optimizing for Happiness
mojombo
378
71k
The Pragmatic Product Professional
lauravandoore
37
7.5k
Transcript
</> wiggywebmasters.com
The CSS Box Model
Box model • Content area - where your text is
• Padding - visible space around text • Border - visible space around padding • Margin - invisible space around border
Think jaffa cake! • Padding - the sponge • Border
- the smashing orangy bit in the middle! • Margin - the chocolate topping (except it's not invisible !)
Margin p { margin-top: 10px; margin-right: 20px; margin-bottom: 10px; margin-left:
20px; } Shorthand p { margin: 10px 20px 10px 20px; }
Padding p { padding-top: 10px; padding-right: 20px; padding-bottom: 10px; padding-left:
20px; } Shorthand p { padding: 10px 20px 10px 20px; }
Border p { border-top: 10px; border-right: 20px; border-bottom: 10px; border-left:
20px; } Shorthand p { border: 10px 20px 10px 20px; }
Even shorter shorthand p { margin: 10px 20px; padding: 10px
20px; border: 10px; } Rule-of-thumb Use the long form when you are only controlling 1 side - otherwise use the shothand forms
Border options p { border-width: 1px; border-style: solid; border-color: #FFFFFF;
border-radius: 6px; } Shorthand p { border: 1px solid #FFFFFF; }
How to 'reset' the box model * { padding: 0;
margin: 0; border: 0; } ! Improves rendering across different browsers, but means you need to add your own padding, margin and border