JSFiddle - React, Tailwind, and code Playground
HTML
<div class="jumbo">
<div class="container">
<div class="box">
<div class="p1">
100%
</div>
<div class="p2">
SAMSUNG
</div>
</div>
<div class="box">
<div class="p1">
100%
</div>
<div class="p2">
SAMSUNG
</div>
</div>
<div class="box">
<div class="p1">
100%
</div>
<div class="p2">
SAMSUNG
</div>
</div>
<div class="box">
<div class="p1">
100%
</div>
<div class="p2">
SAMSUNG
</div>
</div>
</div>
</div>
CSS
html,
body {
padding: 0;
margin: 0;
}
.jumbo {
float: right;
display: flex;
flex-direction: row;
justify-content: flex-end;
}
.container {
width: 100%;
display: grid;
grid-template-columns: 50% 50%;
column-gap: 20px;
}
.box {
width: 300px;
height: 10rem;
margin: 1.0em 1em;
box-sizing: border-box;
position: relative;
display: flex;
}
.p1,
.p2,
.p3 {
text-align: center;
color: blue;
font-family: sans-serif;
font-weight: bold;
background-color: #ffffff;
border-bottom-left-radius: 25px;
border-top-left-radius: 25px;
background-color: white;
}
.p1 {
width: 100%;
background-color: #DCDCDC;
color: black;
border-bottom-right-radius: 25px;
border-top-right-radius: 25px;
}
.p2 {
width: 100%;
background-color: black;
position: absolute;
color: #DCDCDC;
right: 0;
left: 0;
top: 0;
height: 40px;
border-bottom-right-radius: 25px;
border-top-right-radius: 25px;
}