I'm reviewing https://gridbyexample.com/learn/
I watched Rachel Andrew's video at the Event Apart Denver 2017
https://www.youtube.com/watch?v=f1yM8HYv9lc
Here's what I learnt.
Flex layout in horizonatal writing mode.
I watched Rachel Andrew's video at the Event Apart Denver 2017
https://www.youtube.com/watch?v=f1yM8HYv9lc
Here's what I learnt.
- Remember CSS - Cascading Style Sheets.
- inheritance - some elements inherit from parent
- specificity - which one wins
- Flexbox - 1-dimensional; Grid - 2-dimensional
- In grid layout, block =column; inline-row
- Flexbox has a flex direction of row or column. Main axis determined by flex direction.
Flex layout in horizonatal writing mode.
- CSS Intrinsic and Extrinsic Sizing. Can use max-content and min-content to size box based on text.
- Flexbox starts with max content and takes away. Grid starts with min content and adds.
Some Grid code
.wrapper {
display:grid;
grid-template-columns: repeat(12, minmax(0,fr));
grid-column-gap:2.093333%;
grid-row-gap:20px;
}
.col-span2{
grid-column: auto / span 2;
}
.col.span3 {
grid-column: auto / span 3;
}
.col.span4 {
grid-column: auto / span 4;
}
Comments
Post a Comment