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
Frontend 102
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Sebastiaan Deckers
April 15, 2013
Programming
520
3
Share
Frontend 102
Sebastiaan Deckers
April 15, 2013
More Decks by Sebastiaan Deckers
See All by Sebastiaan Deckers
Commons Host: Building a CDN for the rest of the world
sebdeckers
1
150
SVG Reality
sebdeckers
5
170
About Sebastiaan
sebdeckers
0
170
Frontend 100
sebdeckers
1
520
Frontend 101
sebdeckers
4
570
Frontend 103
sebdeckers
2
520
Frontend Testing
sebdeckers
3
360
Grunt: The JavaScript Task Runner
sebdeckers
8
430
Other Decks in Programming
See All in Programming
生成AI時代にこそ効くGo | Why Go Works in the Age of Generative AI
mom0tomo
8
3k
さぁV100、メモリをお食べ・・・
nilpe
0
110
AI駆動開発勉強会 広島支部 第一回勉強会 AI駆動開発概要とワークショップ
hayatoshimiu
0
410
Why Laravel apps break—Mastering the fundamentals to keep them maintainable
kentaroutakeda
1
310
3Dシーンの圧縮
fadis
1
460
権限チェックの一貫性を型で守る TypeScript による多層防御
mnch
4
940
ビジネスモデルから紐解く、AI+型駆動開発
hirokiomote
2
3.9k
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
330
ユニットテストの先へ:テスト技法で要求・仕様を整理するJava開発実践 / Beyond_Unit_Testing_Practical_Java_Development_Techniques_for_Organizing_Requirements_and_Specifications
shimashima35
0
290
柔軟なPDFレイアウトエディタを支える型システム設計 — Discriminated UnionとConditional Typeの実践
minako__ph
4
1.2k
iOS26時代の新規アプリ開発
yuukiw00w
0
210
Moments When Things Go Wrong
aurimas
3
120
Featured
See All Featured
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
380
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
200
We Are The Robots
honzajavorek
0
230
AI Search: Where Are We & What Can We Do About It?
aleyda
0
7.5k
Tell your own story through comics
letsgokoyo
1
930
A Tale of Four Properties
chriscoyier
163
24k
Paper Plane (Part 1)
katiecoart
PRO
0
8k
AI: The stuff that nobody shows you
jnunemaker
PRO
7
660
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
290
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
160
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
1
240
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
250
Transcript
102 Layout Box model Content flow Positioning Weirdness
box model
box model content box < padding box < border box
< margin box
box model clockwise from the top top right bottom left
img { margin: 10px 5px 0px 20px; }
content box determined by text or fixed size p {
font-size: 14pt; line-height: 1.5; font-family: "Helvetica Neue"; } img { width: 300px; height: 150px; }
padding box adds a gap between content and border, makes
it easier to click elements button { padding: 20px; }
border box width, style, color header { border: 8px solid
gold; }
adds a gap between border and other boxes img {
margin: 25px; } margin box
content flow
1. Left to right 2. Top to bottom
Floats: easy to abuse, better to avoid Useful mostly for
images in a blog post Absolute/fixed positioning: Choose the top, right, bottom, or left distance from a container or viewport. Take it out of the flow
positioning X/Y axis: left to right, top to bottom Reference:
static, fixed, relative, absolute
weirdness Negative margin Overlapping z-index Cut off overflow