mjordan.codes
hi@mjordan.codes
mjordan.codes
hi@mjordan.codes
@mjordancodes
<table>
{ float : right }
{ position : absolute }
{ display : table }
@mjordancodes
@mjordancodes
@mjordancodes
{ display: flex }
The Flexible Box Module, usually referred to as flexbox, was designed as a one-dimensional layout model, and as a method that could offer space distribution between items in an interface and powerful alignment capabilities.
@mjordancodes
@mjordancodes
@mjordancodes
.container {
display: flex;
flex-direction: row | column;
flex-wrap: wrap;
justify-content: space-between;
align-items: stretch;
}
.item {
order: 1;
flex-grow: 4;
flex-shrink: 1;
flex-basis: 5em;
align-self: flex-end;
}
flex: 0 1 auto;
@mjordancodes
Flexbox NavBar
@mjordancodes
{ display: grid }
CSS Grid Layout excels at dividing a page into major regions or defining the relationship in terms of size, position, and layer, between parts of a control built from HTML primitives. Grid is for working in two-dimensions.
@mjordancodes
@mjordancodes
@mjordancodes
@mjordancodes
.grid {
display: grid;
}
@mjordancodes
.grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
}
@mjordancodes
.grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-template-rows: 100px 200px;
}
@mjordancodes
.grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-template-rows: 100px 200px;
grid-gap-columns: 10px;
grid-gap-rows: 5px;
}
@mjordancodes
min-content
max-content
fr
minmax( )
@mjordancodes
@mjordancodes
1
2
3
4
-4
-3
-2
-1
@mjordancodes
.grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(4, 25px);
grid-template-areas: "a a a"
"b b c"
"b b c"
"d d d";
}
or floats??
@mjordancodes
@mjordancodes
@mjordancodes
@mjordancodes
@mjordancodes
@mjordancodes
Know these humans. They are AMAZING. Read their blogs, newsletters, and books, checkout their code, learn from their videos.
Complete Guide to Flexbox --> https://css-tricks.com/snippets/css/a-guide-to-flexbox/
MDN Flexbox Concepts --> https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flexible_Box_Layout/Basic_Concepts_of_Flexbox
Flexbox
MDN Flexbox Intro --> https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Flexbox
CSS Reference --> https://cssreference.io/flexbox/
W3C Flexible Box Specs --> https://www.w3.org/TR/css-flexbox-1/
Course: What The Flexbox? --> https://flexbox.io/
Flexbox Froggy --> https://flexboxfroggy.com/
@mjordancodes
Complete Guide to CSS Grid --> https://css-tricks.com/snippets/css/complete-guide-grid/
MDN Grid Layout --> https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout
CSS Reference --> https://cssreference.io/css-grid/
W3C Grid Layout Specs --> https://www.w3.org/TR/css-grid-1/
Course: CSS Grid --> https://cssgrid.io/
Grid Garden --> https://cssgridgarden.com/
CSS Grid
Learn CSS Grid --> https://learncssgrid.com/
Grid By Example --> https://gridbyexample.com/
Layout Land --> https://www.youtube.com/layoutland
Flexbox or Grid --> https://rachelandrew.co.uk/archives/2016/03/30/should-i-use-grid-or-flexbox/
Implicit & Explicit Grid --> https://css-tricks.com/difference-explicit-implicit-grids/
@mjordancodes