And why is a grid row <p>
different then a grid row <div>
???
Sorry if it's something obvious but it just doesn't make any sense to me XD
.container {
display: grid;
grid-auto-rows: 20px;
grid-auto-columns: auto;
grid-row-gap: 5px;
}
.box {
display: block;
border: 1px solid black;
background-color: lightgreen;
}
<div class="container">
<p class="box">test</p>
<div class="box">test</div>
<div class="box">test</div>
</div>
` tag.
– Christopher Bennett Apr 27 '19 at 00:44` element in this case right?
– Gert Cuykens Apr 27 '19 at 00:46` is a block element itself, it is not advisable to place other block elements inside it.
– Christopher Bennett Apr 27 '19 at 00:49