All guides about CSS grid seem to imply a structure where the elements positioned in a grid are children of the grid itself.
<div class="wrapper">
<div>A</div>
<div>B</div>
</div>
Where .wrapper
has display: grid
and a definition of the grid properties.
Does it make any sense if I want to position a element that is a "grandchild" of the grid, on the grid itself (instead of relying on its parent ?)
<div class="wrapper">
<div>A</div>
<div>
<div>B</div>
<div>C</div>
</div>
</div>
Here, I want to be able to put A, B and C each on their own row of the grid; would that even make sense ?
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…