Answers for "how to have 2 columns in css grid"

CSS
2

css grid two columns

div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 10px;
}
Posted by: Guest on October-24-2021
0

have an item span multiple columns css grid

.item {
  grid-column: 2 / span 3;
  grid-row: 1 / span 2;
}
Posted by: Guest on September-16-2020

Browse Popular Code Answers by Language