[ static | absolute | relative | fixed | sticky]
DIV 1
DIV 2
DIV 3
DIV 4
DIV 5
DIV 6
DIV 7
DIV 8
[ left | right ]
[ left | right | both ]
[ flex | grid ]
los elementos hijo se convierten en elementos flexibles.
flex-flow: ; → flex-direction: ; + flex-wrap: ;
justify-items: ; | align-items:
order: ;
flex-grow: ; | flex-shrink: ; | flex-basis: ;
align-self: ; | justify-self: ;
align-content: ; | justify-content: ;
Divide el contenedor en una grilla
Filas y Columas
grid-auto-columns: ; | grid-auto-rows: ;
<style>.grilla {
grid-auto-columns: 100px;
grid-auto-columns: minmax(100px, auto);
grid-auto-columns: minmax(min-content, 50%);
}</style>
grid-template: ; → grid-template-columns: ; + grid-template-rows: ;
<style>.grilla {
grid-template-columns: 1fr 40% auto;
grid-template-rows: repeat(4,1fr);
}
</style>
grid-template-areas:
<style>
grid-template-areas: "head head head"
"nav main aside"
"nav foot foot";
</style>
grid-column: ; | grid-row: ; | grid-area: ;
<style>.item {
grid-column: 1;
grid-column: 1 / 3;
grid-column: 1 / span 2;
grid-column: 1 / -1;
grid-area: head;
}
</style>
grid-gap: ; → grid-row-gap: ; + grid-column-gap: ;
flex-wrap: ;