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
Sebastiaan Deckers
April 15, 2013
Programming
3
510
Frontend 102
Sebastiaan Deckers
April 15, 2013
Tweet
Share
More Decks by Sebastiaan Deckers
See All by Sebastiaan Deckers
Commons Host: Building a CDN for the rest of the world
sebdeckers
1
140
SVG Reality
sebdeckers
5
150
About Sebastiaan
sebdeckers
0
160
Frontend 100
sebdeckers
1
510
Frontend 101
sebdeckers
4
560
Frontend 103
sebdeckers
2
500
Frontend Testing
sebdeckers
3
350
Grunt: The JavaScript Task Runner
sebdeckers
8
420
Other Decks in Programming
See All in Programming
AIエージェントの設計で注意するべきポイント6選
har1101
7
3.3k
Honoを使ったリモートMCPサーバでAIツールとの連携を加速させる!
tosuri13
1
170
なるべく楽してバックエンドに型をつけたい!(楽とは言ってない)
hibiki_cube
0
130
ゆくKotlin くるRust
exoego
1
220
CSC307 Lecture 07
javiergs
PRO
0
530
Package Management Learnings from Homebrew
mikemcquaid
0
130
Apache Iceberg V3 and migration to V3
tomtanaka
0
120
TerraformとStrands AgentsでAmazon Bedrock AgentCoreのSSO認証付きエージェントを量産しよう!
neruneruo
4
2.6k
MUSUBIXとは
nahisaho
0
110
Patterns of Patterns
denyspoltorak
0
1.3k
コマンドとリード間の連携に対する脅威分析フレームワーク
pandayumi
1
430
【卒業研究】会話ログ分析によるユーザーごとの関心に応じた話題提案手法
momok47
0
180
Featured
See All Featured
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
150
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
270
Paper Plane
katiecoart
PRO
0
46k
Building a Modern Day E-commerce SEO Strategy
aleyda
45
8.6k
VelocityConf: Rendering Performance Case Studies
addyosmani
333
24k
Tell your own story through comics
letsgokoyo
1
800
4 Signs Your Business is Dying
shpigford
187
22k
Evolving SEO for Evolving Search Engines
ryanjones
0
110
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.3k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
160
Navigating Team Friction
lara
192
16k
How GitHub (no longer) Works
holman
316
140k
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