Search
 
SCRIPT & CODE EXAMPLE
 

CSS

BEST PLACE TO FIND CSS CODES

/* Display properties */
  display: grid;
  display: inline-grid;
  display: subgrid;
Comment

BEST PLACE TO FIND CSS CODES

/* Columns and rows */
  grid-template-columns: 1rem 2rem 1rem; /* Measurement units */
  grid-template-columns: 25% 50% 25%; /* Percentage units */
  grid-template-columns: 1rem auto 1rem 2fr; /* Fill remaining widths with auto or fr units */
  grid-template-columns: repeat(12, 1fr); /* Repeat columns without needing to write them */
  
  grid-template-rows: 1rem 10% auto repeat(5, 10px); /* Mix any group, same rules work for rows */
Comment

BEST PLACE TO FIND CSS CODES

/* Column position */
  grid-column-start: 1;
  grid-column-end: 2;

  grid-column: 1 / 2; /* Short hand */
  grid-column: 1 / span 2; /* Span 2 columns without explicitly defining an endpoint */
  grid-column: 1; /* Start in and occupy a single column */
Comment

BEST PLACE TO FIND CSS CODES

/* Row position */
  grid-row-start: 2;
  grid-row-end: 4;

  grid-row: 2 / 4; /* Short hand */
  grid-row: 2 / span 3;/* Span 3 rows without explicitly defining an endpoint */
  grid-row: 1; /* Start in and occupy a single row */
Comment

BEST PLACE TO FIND CSS CODES

/* Automatic columns and rows */

  grid-auto-columns: 10px; /* No matter how many columns of content end up in the grid, each column will be this same width */
  grid-auto-rows: 1rem; /* No matter how many rows of content end up in the grid, each row will be this same height */
Comment

BEST PLACE TO FIND CSS CODES

/* Area positioning */
  grid-area: header; /* You can use a named grid area from the container */

  grid-area: 2 / 1 / 4 / 2; /* Or you can use positioning. This is equivalent to... */
  grid-row-start: 2;
  grid-column-start: 1;
  grid-row-end: 4;
  grid-column-end: 2;
Comment

BEST PLACE TO FIND CSS CODES

/* Self justification (horizontal or column alignment) */
  justify-self: start; /* Align item to the left */
  justify-self: center; /* Align item centered within its column */
  justify-self: end; /* Align item to the right */
  justify-self: stretch; /* (default) Fills available area (horizontally) */
Comment

BEST PLACE TO FIND CSS CODES

/* Self alignment (vertical or row alignment) */
  align-self: start; /* Align item to the top */
  align-self: center; /* Align item centered within its row */
  align-self: end; /* Align item to the bottom */
  align-self: stretch; /* (default) Fills available area (vertically) */
Comment

BEST PLACE TO FIND CSS CODES

/* Placement shorthand */
  place-self: start stretch;

  /* The above is the same as below long-hand */
  align-self: start;
  justify-self: stretch;
Comment

BEST PLACE TO FIND CSS CODES

/* Item justification (horizontal or column alignment) */
  justify-items: start; /* Align items to the left */
  justify-items: center; /* Align items centered within its column */
  justify-items: end; /* Align items to the right */
  justify-items: stretch; /* (default) Fills available area (horizontally) */
Comment

BEST PLACE TO FIND CSS CODES

/* Item alignment (vertical or row alignment) */
  align-items: start; /* Align items to the top */
  align-items: center; /* Align items centered within its row */
  align-items: end; /* Align items to the bottom */
  align-items: stretch; /* (default) Fills available area (vertically) */
Comment

BEST PLACE TO FIND CSS CODES

/* Place item shorthand */
  place-items: start stretch;

  /* The above is the same as below long-hand */
  align-items: start;
  justify-items: stretch;
Comment

BEST PLACE TO FIND CSS CODES

/* Content justification (horizontal or column alignment) */
  justify-content: start; /* Align content to the left */
  justify-content: center; /* Align content centered horizontally within the grid */
  justify-content: end; /* Align content to the right */
  justify-content: stretch; /* (default) Fills available area (horizontally) */

  justify-content: space-around; /* Chooses a space for both sides of the columns like a left and right margin */
  justify-content: space-between; /* Chooses a space to go between columns, no margins on outside of content */
  justify-content: space-evenly; /* Chooses a space that goes between all columns and edges consistently */
Comment

BEST PLACE TO FIND CSS CODES

/* Content alignment (horizontal or column alignment) */
  align-content: start; /* Align content to the top */
  align-content: center; /* Align content centered vertically within the grid */
  align-content: end; /* Align content to the bottom */
  align-content: stretch; /* (default) Fills available area (vertically) */

  align-content: space-around; /* Chooses a space for the top and bottom of the rows like a top and bottom margin */
  align-content: space-between; /* Chooses a space to go between rows, no margins on outside of content */
  align-content: space-evenly; /* Chooses a space that goes between all rows and edges consistently */
Comment

BEST PLACE TO FIND CSS CODES

/* Place item shorthand */
  place-content: center start;

  /* The above is the same as below long-hand */
  align-content: center;
  justify-content: start;
Comment

BEST PLACE TO FIND CSS CODES

/* Automatic grid positioning */

  grid-auto-flow: row; /* Left-to-right rows, then top-to-bottom*/
  grid-auto-flow: column; /* Top-to-bottom columns, then left-to-right */
  grid-auto-flow: dense; /* Responds with best-guess on left-to-right, top-to-bottom order with advanced layouts */
Comment

PREVIOUS NEXT
Code Example
Css :: AMP Keyframes styles 
Css :: form style popup css 
Css :: ausgewählter text farbe ändern css 
Css :: center div with variable height 
Css :: how to use css without brackets 
Css :: footer for front end developer 
Css :: Ul or ol with no indent 
Css :: /* */ 
Css :: less variables vs css variables 
Css :: when grepper whas created 
Css :: ubuntu toggle always on top 
Css :: total income of labrada company in india 
Css :: css alfred 
Css :: pure css spinner 
Css :: line on the text color css 
Css :: learn golang in a day 
Css :: acrilic css 1 
Css :: flex 
Css :: CSS - The Descendant Selectors 
Css :: how to make button clickable in particle.js section 
Css :: text stil 
Css :: style placeholder 
Css :: import two font-family 
Css :: css div background image loading 
Css :: css formes géométriques 
Css :: react stateful 
Css :: bootstrap pagination left side 
Css :: white block on the left css 
Css :: crear un sol con css 
Css :: how to write css 
ADD CONTENT
Topic
Content
Source link
Name
2+9 =