I'm trying to create a card similar to this design https://i.sstatic.net/WCzDp.png
but I keep getting unwanted margins like in this image https://i.sstatic.net/XthmZ.png
Can someone guide me on how to achieve the desired layout? Check out the code on Codepen Link, or see below:
body{
font-family: 'Catamaran', sans-serif;
letter-spacing: 1px;
}
.hotel-li {
margin: 0;
}
.hotel-header{
margin-bottom: 0;
}
.hotel-desc {
margin-bottom: 0;
}
<!DOCTYPE html>
<html>
<head>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Catamaran:wght@300&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
</head>
<body>
<div class="w-75 mx-auto card bg-dark text-white"><div class="card-header text-center border-white">Hotels</div><ul class="list-group list-group-flush"><li class="hotel-li list-group-item bg-dark border-white row"><div class="col-md-4"><h3 class="hotel-header">hotell</h3><p class="hotel-desc">dfsfdsfdsfdsfdsfdsfds</p></div><div class="col-md-4"><button class="btn btn-outline-light mx-2">Edit</button><button class="btn btn-outline-danger">Delete</button></div></li><li class="hotel-li list-group-item bg-dark border-white row"><div class="col-md-4"><h3 class="hotel-header">hotel 2</h3><p class="hotel-desc">random text</p></div><div class="col-md-4"><button class="btn btn-outline-light mx-2">Edit</button><button class="btn btn-outline-danger">Delete</button></div></li></ul></div>
</body>
</html>