<div class="container">
<h1>Functional Resin Art</h1>
<ul>
<li>
<div class="pimg"></div>
<h2>Cheese Board</h2>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit.</p>
<a href="#" aria-label="Add cheese board to your cart">Add to Cart</a>
</li>
<li>
<div class="pimg"></div>
<h2>Coasters</h2>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit.</p>
<a href="#" aria-label="Add coasters to your cart">Add to Cart</a>
</li>
<li>
<div class="pimg"></div>
<h2>Charcuterie Board</h2>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit.</p>
<a href="#" aria-label="Add charcuterie board to your cart">Add to Cart</a>
</li>
<li>
<div class="pimg"></div>
<h2>Jewellery Box</h2>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit.</p>
<a href="#" aria-label="Add jewellery box to your cart">Add to Cart</a>
</li>
</ul>
</div>
.container{
font-family: Arial, Helvatica, sans-serif;
max-width: 1000px;
margin: 0 auto;
}
ul{
list-style: none;
padding: 0;
margin: 0;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1rem;
}
ul li{
border: 1px solid black;
border-radius: 8px;
padding: 2rem;
}
ul li .pimg{
width: 100%;
height: 200px;
background-color: #2e4a62;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.