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
Le futur du positionnement CSS
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Raphael Goetter
June 15, 2012
Design
230
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
Les aventures de CSS, saison 2026
goetter
1
75
Ça bouge du côté des animations CSS !
goetter
3
290
Dark mode : comment rejoindre le côté sombre ?
goetter
2
210
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.4k
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
Flexbox, place à la gueule de bois !
goetter
6
6.9k
Other Decks in Design
See All in Design
AIスライド生成を進化させるMDファイル
kenichiota0711
1
1.4k
空間アプリ開発のフィードバックをCodexにするための抽象的なデザインツールの模索
karad
0
150
設計と制作 意図を形に表す / Design and Making: Intent Made Form
usagimaru
3
2k
Claudeもくもく会、はじめませんか?
yusukeiyoda
0
120
結びながら、ひらく - にじむ境界のデザイン
hilokifigma
4
1.7k
2026の目標「もっと定量的に事業、会社へ貢献する!」
yuri_ohashi
0
860
開閉UIのアニメーション設計
hiro0218
2
740
Connpass-Xperia_Camera_App_by_HCD.pdf
sony
1
690
AI時代に求められるUXデザインのアプローチ
xtone
1
6.5k
全員がアウトプットを出せる時代、 誰を採用する?
nishame
0
600
「ツール」から「パートナー」へ。AI伴走時代のUXデザインとは?~操作を減らし、成果を最大にするための設計~
ncdc
1
690
root COMPANY DECK / We are hiring!
root_recruit
3
29k
Featured
See All Featured
GitHub's CSS Performance
jonrohan
1033
470k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
500
Building Flexible Design Systems
yeseniaperezcruz
330
40k
A Soul's Torment
seathinner
6
3k
How to make the Groovebox
asonas
2
2.3k
Google's AI Overviews - The New Search
badams
0
1.1k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.8k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
[RailsConf 2023] Rails as a piece of cake
palkan
59
6.7k
Designing for Timeless Needs
cassininazir
1
270
Mobile First: as difficult as doing things right
swwweet
225
10k
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
170
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