Loading
Alejandro Avilés (Ome Gak)
This is a live streamed presentation. You will automatically follow the presenter and see the slide they're currently on.
{ The yoga of CSS }
Text
{ and how to get them right }
(*) This is satire
*
CSS layout modes are algorithms determining the position and the size of boxes based on the way they interact with their sibling and ancestor boxes
Make me float: right;
- A block element
{ display: block; }
Tables are bad!
- Some website out there
(for layout)
{ display: table; }
Tables are for Tabular Data. Period.
- Another website
I want to marry flexbox, man
- Ilias Trichopoulos
{ display: flex; }
{ The hands-on workshop starts now }
flex container
flex item
flex item
flex item
.container {
display: flex;
}
.container {
display: flex;
justify-content: ...;
}
.container {
display: flex;
align-items: ...;
}
.container {
display: flex;
flex-wrap: wrap;
}
.container {
display: flex;
align-content: ...;
}
.container {
display: flex;
}
.item {
flex-grow: 1;
}
.item2 {
flex-grow: 2;
}
0
0
0
.container {
display: flex;
}
.item {
align-self: ...;
}
.item {
order: <integer>;
}
Alejandro Avilés
Ilias Trichopoulos