Answers for "grid rows and columns css with responsive example code"

CSS
14

responsive css grid

@supports (display: grid) {
  main { 
    max-width: 10000px;
    margin: 0;
  }
  .grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 2fr));
    grid-gap: 1rem;
  }
}
Posted by: Guest on March-18-2020
1

grid rows css

/*creates 4 equal responsive rows in the availabe space of the css grid*/

grid-template rows: repeat(4, 1fr);

/*creates 3 different sized responsive rows. 3fr is 3x the size of 1fr */

grid-template rows: (1fr, 2fr, 3fr);
Posted by: Guest on September-05-2021

Code answers related to "grid rows and columns css with responsive example code"

Browse Popular Code Answers by Language