I'm trying to set up my child card within the parent card to look like the image provided. I'm using Bootstrap 4 and the card_deck class.
https://i.sstatic.net/ihWrb.png
However, I'm facing difficulties in getting the layout to match the picture. I also want to include a vertical divider in HTML as shown in the image, and when I click on the number span, I want a Bootstrap list group to display with either 8 apples or 3 pears (depending on the span clicked).
In my code, you can see the basic structure: head, body, and the addition of the Bootstrap link. My main issue is arranging the elements as depicted in the image.
Does anyone have any ideas?
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
</head>
<body>
<div class="container">
<h4 class="card-title">Shopping List</h4>
<div class="card-deck">
<h5 class="card-title">Today</h5>
<div class="card text-center">
<div class="card-block">
<button type="button" class="btn btn-primary">
<span class="badge badge-light">8</span> apples
<span class="sr-only">unread messages</span>
</button>
</div>
</div>
<div class="card text-center">
<div class="card-block">
<button type="button" class="btn btn-primary">
<span class="badge badge-light">3</span> pears
<span class="sr-only">unread messages</span>
</button>
</div>
</div>
</div>
<div class="card-deck mt-20">
<h5 class="card-title">Tomorrow</h5>
<div class="card text-center">
<div class="card-block">
<button type="button" class="btn btn-primary">
<span class="badge badge-light">2</span> cherries
<span class="sr-only">unread messages</span>
</button>
</div>
</div>
<div class="card text-center">
<div class="card-block">
<button type="button" class="btn btn-primary">
<span class="badge badge-light">6</span> mangoes
<span class="sr-only">unread messages</span>
</button>
</div>
</div>
</div>
</div>
</body>