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
Le futur du positionnement CSS
Search
Raphael Goetter
June 15, 2012
Design
240
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Le futur du positionnement CSS
Web Event Lyon 2012
Raphael Goetter
June 15, 2012
More Decks by Raphael Goetter
See All by Raphael Goetter
Typographie et intégration web
goetter
0
170
Les aventures de CSS, saison 2026
goetter
1
150
Ça bouge du côté des animations CSS !
goetter
3
310
Dark mode : comment rejoindre le côté sombre ?
goetter
2
250
Les petites aventures de CSS, saison 2025
goetter
4
4.2k
Tu fais du Web et tu connais pas les Layout Shifts ?! Nan mais...
goetter
3
1.2k
50 nuances de grilles
goetter
9
8.5k
Flexbox fallait pas l'inviter
goetter
1
1.5k
L'épopée des polices web, de Comic Sans aux variable fonts
goetter
0
1.9k
Other Decks in Design
See All in Design
デザインワークフローの最前線。 ログラスでのAI活用の現在地
ukaoli
1
3.5k
デザインツールを開く前に その画面は誰に何と言わせたい?受託UIデザイナーが顧客解像度を高める 「打ち合わせの場での確かめ方」
garyuten
1
280
日経電子版を支えていく Kasane Design System
taitotnk
0
430
染み出し好きの、 染み出しコントロール論
mukai_takeru
0
500
分散するデザイン組織をつなぐ デザインミートアップの取り組み/nikkei-tech-talk49
nikkei_engineer_recruiting
1
360
分裂するデザイン、取り残される空間—インクルーシブデザインスタジオが建築をやる理由
culumu
0
160
LP制作のための熱量ハーネス -人の熱量を、AIとの制作につなぐ-
niccy
0
1.8k
技術に明るくない人が技術を選ぶために
moco1013
0
150
【2026】ポートフォリオ_大坪明日香
tsubo52
0
130
言幹と言葉(Stems & Leaves)
kakukoki
0
250
泥臭く語るUIデザイン会|ホワイトボードチャレンジ【RAMEN TECH 2026】
garyuten
1
180
デザイナーがいない部署にハーネスを設計する
kenichiota0711
5
5.4k
Featured
See All Featured
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
940
So, you think you're a good person
axbom
PRO
2
2.2k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
990
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.4k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
250
1.3M
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
1
570
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
12k
The SEO identity crisis: Don't let AI make you average
varn
0
590
How Software Deployment tools have changed in the past 20 years
geshan
2
35k
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
540
KATA
mclloyd
PRO
35
16k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
62k
Transcript
Positionnement CSS : l’avenir du futur 15 juin 2012 Raphaël
Goetter Cheerleader Alsacréations
Où en est-on ? position: relative <br><br><br> frames spacer.gif marges
négatives float position: absolute <table> colspan hacks clear bidouilles flux bugs rowspan reset commentaires conditionnels calques frameworks CSS IE6 must die !
Temps 1 : imparfait ▪ display : block ▪ display
: inline ▪ margin / padding ▪ frames / framesets ▪ calques « Dreamweaver » ▪ tableaux HTML
Temps 2 : Présent de l'indicatif ▪ float + clear
▪ position absolute + position relative
Web Event Lyon 2012 http://event.lafermeduweb.net ▪ float : 66x ▪
clear : 8x ▪ position absolute : 27x ▪ position relative : 20x
Temps 3 : Futur simple ▪ display : inline-block ▪
display : table-cell
display : inline-block
display inline-block
None
None
display inline-block
display : table
display table-*
display table-*
display table-*
Répartition auto
Centrage vertical
display table-*
Temps 4 : Futur antérieur ▪ CSS3 Multicolumns
Multicolumns
Multi-columns
Multi-columns
Distribution
Listes ordonnées
CSS Multi-columns
Temps 5 : Futur du subjonctif ▪ flexible box model
▪ grid layout model ▪ regions ▪ exclusions
Flexbox
None
Flex en action
Lignes et Colonnes
Reverse
Fluidité
Alignements
None
None
None
CSS Flexbox
Grid Layout
CSS3 Grid Layout « Représentation virtuelle composée de lignes, de
colonnes et de cellules. »
body { display: grid } Et hop ! La Grille
Colonnes body { display: grid ; grid-columns: 250px 1fr; }
Colonnes body { display: grid ; grid-columns: 250px 1fr; }
nav { grid-column: 1; } section { grid-column: 2; }
body { display: grid ; grid-columns: 250px 1fr; grid-rows: 100px
300px; } nav { grid-column: 1; grid-row: 1; } article { grid-column: 1; grid-row: 2; } …
body { display: grid ; grid-columns: 10px (1fr 10px)[4]; }
… correspond à 10px 1fr 10px 1fr 10px 1fr 10px 1fr 10px Répétitions
body { display: grid; grid-columns: 250px 1fr; grid-rows: 100px 300px;
} header { grid-column: 1; grid-row: 1; grid-column-span: 2; } … Distribution
body { display: grid; grid-template: "hh" "nc" "ff"; } header
{ grid-cell: "h"; } nav { grid-cell: "n"; } … Template syntax Template
section { grid-row-align: center; } article { grid-column-align: center; }
aside { grid-row-align: center; grid-column-align: center; } Alignements
Adaptatif ! body { display: grid; grid-template: "abcd"; } body
{ display: grid; grid-template: "a" "b" "c" "d"; }
CSS Grid Layout
CSS regions
None
<div id="origin"><p>Lorem Salu bissame ! Wie geht's les samis ?
Hans apporte moi une Wurschtsalad avec un picon bitte, s'il te plaît. […]</p></div> <div id="layout"> <p>1)</p> <p>2)</p> <img src="img.jpg" alt=""> <p>3)</p> <p>4)</p> <p>5)</p> <p>6)</p> </div>
<div id="origin"><p>Lorem Salu bissame ! Wie geht's les samis ?
Hans apporte moi une Wurschtsalad avec un picon bitte, s'il te plaît. […]</p></div> <div id="layout"> <p>1)</p> <p>2)</p> <img src="img.jpg" alt=""> <p>3)</p> <p>4)</p> <p>5)</p> <p>6)</p> </div> #origin { flow-into: kiwi; } #layout p { flow-from: kiwi; }
None
CSS regions
CSS exclusions
#exclusion {float :positionned ; wrap-flow: auto}
#exclusion {float :positionned ; wrap-flow: both}
#exclusion {float :positionned ; shape-inside: circle} ‘rectangle’, ‘circle’, ‘ellipse’ or
‘polygon’
▪ http://labs.adobe.com/downloads/cssregions.html Démo !
Et ensuite ? CSS 4 ?
CSS evolution frames <table> float / position display table inline-block
multicolumns flexbox / grid regions / exclusions CSS4 ?
Crédits photos ▪ http://www.flickr.com/photos/41597157@N00/6919795175/ ▪ http://www.flickr.com/photos/8070463@N03/2484684062/ ▪ http://www.flickr.com/photos/7762644@N04/2220008689/ ▪ http://www.flickr.com/photos/please/131241808/
▪ www.GdeFon.ru (CSS evolution) ▪ http://www.flickr.com/photos/7900943@N06/3084329562/ ▪ http://www.toutsaufsarkozy.com
Merci ! www.alsacreations.com www.goetter.fr www.ie7nomore.com @goetter Raphaël Goetter