Right, this has got to be the world must idiotic thing I have ever come across. Why – despite following the tutorial on here to the letter – can I not get the below into four columns?
Absolutely ridiculous.
footer {
background-color: #000861;
color: #fff;
padding: 20px 10px;
display: grid;
grid-gap: 10px;
}
footer div{
border: solid 2px #fff;
grid-template-columns: auto auto auto auto;
}
<footer>
<div class="">Text</div>
<div class="">Text</div>
<div class="">Text</div>
<div class="">Text</div>
<div class="">Text</div>
<div class="">Text</div>
</footer>
2
Answers
you need to add
grid-template-columns
inside the footer insteadUse
grid-template-columns: repeat(4, 1fr);
css property to yourfooter
break it into columnP.S
You can use any number instead 4