Answers for "grid columns"

1

grid-column css

grid-column: span 2;
Posted by: Guest on November-26-2020
0

grid columns

.hero {
  /* Photo by mnm.all on Unsplash */
  background: url('https://images.unsplash.com/photo-1518176258769-f227c798150e') center;
  background-size: cover;
  padding: 4rem 2rem;

  /* Grid styles */
  display: grid;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
Posted by: Guest on August-16-2021

Browse Popular Code Answers by Language