Learning CSS Grid - 2????
CSS Property grid-template-rows
and grid-template-columns
Below, I use the aliases grid-template-rows
and grid-template-columns
for grid-template
:
<style>
.grid {
display: grid;
grid-template-rows: 2rem 50px;
grid-template-columns: 1fr 100px 1fr;
}
</style>
They render exactly the same.
span one
span two
span three
span four
span five