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
Das Tabelas ao Grid CSS
Search
Simone Amorim
April 29, 2017
Technology
150
0
Share
Das Tabelas ao Grid CSS
A evolução de criação de layouts das tabelas ao Grid CSS
Simone Amorim
April 29, 2017
More Decks by Simone Amorim
See All by Simone Amorim
A Inclusão de Mulheres no Mercado de Tecnologia
simoneas02
0
72
Get start with react-test-library.
simoneas02
0
66
ES6 and Beyond pdf
simoneas02
0
200
Montando layouts em um mini game
simoneas02
2
270
Experiência na China Simone e Willany pareando <3
simoneas02
0
90
Front-end na vida real
simoneas02
0
220
It's me!!
simoneas02
0
110
Montando layouts em um mini game chamado Browser
simoneas02
1
210
It's me!!
simoneas02
0
270
Other Decks in Technology
See All in Technology
Building Production-Ready Agents Microsoft Agent Framework
_mertmetin
0
140
AI와 협업하는 조직으로의 여정
arawn
0
580
GitHub Copilot CLI と VS Code Agent Mode の使い分け
tomokusaba
0
140
AgentCore Managed Harness を使ってみよう
yakumo
2
300
Cortex Codeのコスト見積ヒントご紹介
yokatsuki
0
140
サービスの信頼性を高めるため、形骸化した「プロダクションミーティング」を立て直すまでの取り組み
stefafafan
1
220
自動テストだけで リリース判断できるチームへ - 鍵はテストの量ではなくリリース判断基準の再設計にあった / Redesigning Release Criteria for Lightweight Releases
ewa
7
3.2k
音声言語モデル手法に関する発表の紹介
kzinmr
0
160
知ってた?JavaScriptの"正しさ"を検証するテストが5万以上もあること(Test262)
riyaamemiya
1
130
Oracle Cloud Infrastructure:2026年4月度サービス・アップデート
oracle4engineer
PRO
0
290
「誰一人取り残されない」 AIエージェント時代のプロダクト設計思想 Product Management Summit 2026
mizushimac
1
2.7k
ファインディの事業拡大を支える 拡張可能なデータ基盤へのリアーキテクチャ
hiracky16
0
800
Featured
See All Featured
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.4k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
The Curse of the Amulet
leimatthew05
1
12k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
780
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.2k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.7k
Paper Plane
katiecoart
PRO
1
49k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
270
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
2k
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
340
Transcript
Born 01/01/17
CSS GRID LAYOUT グリッドレイアウト
Simone Amorim Mother, WWcode Leader and studying for become a
Front-End Developer and CSS Evangelist <3 I love running and ride a bike! @samorim02 @simoneas02 simoneas02.github.io
CSS LAYOUTS ONTEM 昨日のCSSレイアウト
<table> <td></td> </table> Table
Table .box { display: inline-block; } inline
Table inline .box { float: left; } Float
Table inline Float .container { display: flex; } Flex
Grid Layout?
Biblioteca ou framework?
Um modulo CSS3 que define um grid otimizado para interfaces
CSS GRID LAYOUT CSS Grid Layout Module Level 1 w3.org/TR/css3-grid-layout/
Grid Layout x Flexbox
FLEXBOX Layouts unidimensionais w3.org/TR/css-flexbox-1/
GRID LAYOUT w3.org/TR/css3-grid-layout/ Layouts bidimensionais
TERMINOLOGiA 用語
GRID LINES As linhas que dividem o grid.
GRID TRACK É o termo genérico para o espaço entre
duas grid lines, verticais ou horizontais.
GRID CELLS Também conhecida como grid item. É o espaçamento
entre duas line grids verticais e duas horizontais.
GRID AREA Um ou mais grid items (grid cells)
CODE コード
HTML <div class=“grid-container”> </div> <div class=“grid-item a”>A</div> <div class=“grid-item b”>B</div>
<div class=“grid-item f”>F</div> <div class=“grid-item e”>E</div> <div class=“grid-item d”>D</div> <div class=“grid-item c”>C</div>
DEFININDO UM GRID GRIDの定義
.grid-container { display: grid; } .grid- container { display: inline-grid;
}
LINE-BASE PLACEMENT ラインベース配置
A B C D E F 1 column 2 column
3 column 2 row 1 row 3 row .grid-container { display: grid; } grid-template-rows: 100px 100px; grid-template-columns: 120px 120px 120px; 100px;
LINE-BASE POSITIONING ラインベース位置決め
.a { } grid-column-start: 1; grid-column-end: 2; grid-row-start: 1; grid-row-end:
2; .f { } grid-column-start: 3; grid-column-end: 4; grid-row-start: 2; grid-row-end: 3; B C D A E F
SHORTHANDS ショーランズ
.a { } grid-column: 1 / 2; grid-row: 1 /
2; .a { } grid-column-start: 1; grid-column-end: 2; grid-row-start: 1; grid-row-end: 2; .a { } grid-area: 1 / 1 / 2 / 2; B C D A E F
GRID GAP グリッドギャップ
… … grid-row-gap: 10px; grid-column-gap: 10px; … … grid-gap: 10px;
AREA NAMING エリア名
.a {grid-area: header;} .b {grid-area: aside;} .c {grid-area: main;} .d
{grid-area: footer;} .container { display: grid; grid-template-rows: auto; grid-template-columns: auto; grid-template-areas: “header header header” “aside main main” “aside content content” “footer footer footer”; } main header content aside footer .e {grid-area: content;}
RESPONSIVE WEB DESIGN レスポンシブウェブデザイン
main header content aside footer @media screen and (max-width: 666px)
{ } … grid-template-areas: “header header header” “aside main main” “aside content content” “footer footer footer”; … .container { grid-template-areas: “aside header header” “aside main main” “aside main main” “content footer footer”; } main header content aside footer
MAIS もっと
caniuse.com/#feat=css-grid SUPORTE Parcial / prefixo -ms Soportado
QUER SABER MAIS github.com/simoneas02/awesome-grid-layout A curated list of CSS Grid
Layout Module or only Css Grid もっと知りたいです
bit.ly/aprendendo-grid-layout
Freedom 03/04/17
“Não importa ser Front-end, Desiger, Back-end.. O importante é amar
o que você faz! Dinheiro e reconhecimento são apenas uma consequência” by Bernard de Luna
None