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
Level 1 - Week 5
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
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
93
Level 1 - Week 8
gclssvglx
0
89
Other Decks in Technology
See All in Technology
CloudWatchから始めるAWS監視
butadora
0
320
[しろおび夏祭り2026] チャットするAIから、作業するAIへ - 使われ方の変化と、その裏側で起きていること
kk0n
0
1.5k
PLaMo 3.0 Primeの事後学習
pfn
PRO
0
260
AI ネイティブな組織に Gemini Enterprise Agent Platform がなぜ必要なのか
asei
1
160
toio・myCobotでフィジカルAIっぽいことを行うための検討(とりあえず調査) / フィジカルAI LT(IoTLTによる開催)
you
PRO
0
270
[MIRU26] To What Extent Does MLLM-as-a-Judge Exhibit Cross-Model Preference Bias?
keio_smilab
PRO
0
200
NYC Summit 2026 におけるAmazon Bedrock AgentCore のアップデート
ren8k
3
320
セキュリティ研修【MIXI 26新卒技術研修】
mixi_engineers
PRO
33
28k
A Bag-of-Documents Model for Query Specificity
dtunkelang
0
210
AIは実装を速くする。では、私たちは何を今作るべきか?-立場を越えてリリースに向き合ったチーム開発の実践 / 20260801 Hiromi Nakaya and Naoki Takahashi
shift_evolve
PRO
3
330
サイバー捜査員研修(後半)
nomizone
1
490
検索技術知識0のエンジニアが広告検索システムを内製化して運用するまで
lycorptech_jp
PRO
0
210
Featured
See All Featured
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
200
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.2k
Exploring anti-patterns in Rails
aemeredith
3
450
The Cult of Friendly URLs
andyhume
79
7k
Designing Powerful Visuals for Engaging Learning
tmiket
1
470
ラッコキーワード サービス紹介資料
rakko
1
4.2M
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
230
23k
Discover your Explorer Soul
emna__ayadi
2
1.2k
[RailsConf 2023] Rails as a piece of cake
palkan
59
6.9k
GitHub's CSS Performance
jonrohan
1033
470k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
690
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
63
45k
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