I'm having trouble positioning a div like the one in the photo.
<div class="cards" id="cards"> <div class="container"> <div class="single"> <span class="dot"></span> </div> <div class="single"> <span class="dot"></span> </div> <div class="second"> <span class="dot"></span> </div> <div class="second"> <span class="dot"></span> </div> </div> </div>
I've tried something like this, but I'm having trouble styling and positioning it using css.
A single div is named after the first two cards/divs. The second div is named the second card/div down.
CSS Grid can help you with these types of layouts. Study the code below to see how to lay out the boxes based on the model.
Be sure to carefully study the following section on MDN about
Grid Template Areas
: Leave Grid Cells BlankResources: The Complete Guide to CSS Grid