Align grid items to the corners of the container
问题 I want to use CSS Grid to align the items to stick to all 4 corners of the container box. How would I do this? Does it make sense to use CSS grid or is it better to use flex box? I have the following HTML: <div class="container"> <div class="box1">Box1</div> <div class="box2">Box2</div> <div class="box3">Box3</div> <div class="box4">Box4</div> </div> 回答1: .container { display: grid; grid-template-columns: auto auto; /* grid has two columns; content defines width */ justify-content: space