Docsity

Cheat Sheet Flexbox (Hoja de EStilos Flexbox CSS), Esquemas y mapas conceptuales de Diseño y Desarrollo Web

Vista previa parcial del texto

¡Descarga Cheat Sheet Flexbox (Hoja de EStilos Flexbox CSS) y más Esquemas y mapas conceptuales en PDF de Diseño y Desarrollo Web solo en Docsity!

CSS Grid Layout cheatsheet .. conceptos básicos E Grid Track (horizontal o vertical) Grid Gap IM Grid Area Grid Cell .container ( Justify-items: start | end | center | stretch (default); center A 0/0 ¿207 0:07 .container ( align-itens: start | end | center | stretch (default); center display // determina que el contenedor va a ser un grid .container display: grid (organizado en bloque) | inline-grid (organizado en línea); stretch justify-items / align-items ,, 11in02 o justisica 15 £3135/columas del grid B Paradigma grid-row / grid-column / grid-column + grid-row // ¡indica la ubicación basada en columas/filas dentro del grid /* Teniendo en cuenta un grid de 3 columas y 3 filas */ 1ten-1 ( Oriana 1 f0108 2 y2* grid-row-start: span 2; O.itema ( 7% columna 1 Erid-rom-start: Erid-rom-end: 45 » Oiten-a 4 /* columa 1 - filas 1, 2 y 3 */ grid=row: 1/4 | 17 span == == ==> filas 2 y 3 */ justify-content / align-content // Alánea o justifica las filas/columas del grid grid-template /, befine el ancho/atto de las filas/columas del grid O container ( grid-template-colums: 150px 1900px 250px5 Brid-templatecrows: 25% 199px auto; Erid-template-areas: “header header header” "nena main sideba "footer footer footer”; /* columnas */ 1% Filas */ .container ( justify-content: start | end | center | stretch (default) space-around | space-betueen | space-evenly; 1% áreas */ ) /* El valor ancho/alto se puede indicar con diferentes formatos */ grid-template-colums: 25% 50% 25%; /* porcentaje */ grid-template-rows: 1fr 3fr 1fr /* tracks flexibles */ grid-template-columns: repeat(3,200px)5 /* 3 columas de 209px */ grid-template-rows: min-content max-content; /* relativo al contenido */ grid-template-colums: minmax(150px,1809px) 1fr5 — /* rango mínimo y máximo */ e 150px 1000px 250px 2 header container ( - align-content: start | end | center | stretch (default) 168pxj| menu main sidebar space-around | space-between | space-evenly; > auto footer grid-gap // Define el tanaño del espacio entre las filas/columas del grid O-container grid-ro-g0p: 19px5 grid-column-gap: 28px; grid-gap: 10px 20px; /* carril de las columnas */ /* carril de filas y columas */ 1 1 ¡| 1 /* carril de las filas */ ! 1 1 1 1 /* Teniendo en cuenta un grid de 3 columas y 3 filas */ Quitema 4 /* columas 1 y 2 - fila 1 */ grid-colum-start: span 25 Oriten-2 4 /* columa 3 - fila 1 */ Erid-colum-start: 35 grid-column-end: 43 ) O-iten-a € /* columas 1, 2 y 3 - fila 1 */ grid-row: 2/4 | 2 / span 3; y AAA 2 2 /* Teniendo en cuenta un grid de 3 columas y 3 filas */ item ( /* columnas 1, 2 y 3 - filas 2 y 3 */ grid-column: 1 / span 3; grid-row: 2 / span 25 justify-self / align-self // Alánea vertical u horizontalmente el contenido de una cuadrícula Stenca € A justify-self: start | end | center | stretch (default); e 20px id sl y o T grid-auto-flow // Coloca autonáticamente elementos que no están explícitamente ubicados start end center T Y ] T ] Y T ] y ] container € o o e | E grid-auto-flow: row | column | dense; 19px (| .item-a ( align-self: start | end | center | stretch (default); row column dense 1 2 3 1 3 5 1 2 3 start end center stretch “ 5 6 2 4 6 4 5 6 EH EH a e | [ T Y 31 I 1 JL Y I j Y J paradig ma/grid-flex s: https ympanus m/snippets/ess/cc