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
510
Frontend Testing
sebdeckers
3
360
Grunt: The JavaScript Task Runner
sebdeckers
8
420
Other Decks in Programming
See All in Programming
過去のレビュー知見をSkillsで資産化した話
pkshadeck
PRO
1
1.9k
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
350
サーバーレスで作る、動画データ管理基盤
oyasumipants
0
180
開発とはなにか、Essenceカーネルで見えるもの
ukin0k0
0
170
My daily life on Ruby
a_matsuda
3
390
Surviving Black Friday: 329 billion requests with Falcon!
ioquatix
0
3.1k
20260514 - build with ai 2026 - build LINE Bot with Gemini CLI
line_developers_tw
PRO
0
450
SREに優しいTerraform構成 modulesとstateの組み方
hiyanger
2
180
属人化しないコード品質の作り方_2026.04.07.pdf
muraaano
0
350
PHPでバイナリをパースして理解するASN.1
muno92
PRO
0
460
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
670
ローカルLLMでどこまでコードが書けるか / How much code can be written on a local LLM
kishida
2
360
Featured
See All Featured
Raft: Consensus for Rubyists
vanstee
141
7.4k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
360
The World Runs on Bad Software
bkeepers
PRO
72
12k
The agentic SEO stack - context over prompts
schlessera
0
780
RailsConf 2023
tenderlove
30
1.4k
Everyday Curiosity
cassininazir
0
210
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.4k
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
3k
The SEO Collaboration Effect
kristinabergwall1
1
450
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.4k
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