Is it possible to access the nth element of a column in Bootstrap v4.6 to change its size? I am looking to have 2 cards with unequal columns on the top and 2 cards with unequal columns on the bottom.
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link href="main.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons/font/bootstrap-icons.css" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Arvo&family=Nunito&display=swap" rel="stylesheet">
<title>Card Mockup</title>
</head>
<body>
<!-- Cards w/ button below text-->
<div class="container">
<div class="row">
<div class="col-sm-6 col-md-6 col-lg-4 d-flex">
...
CSS code:
$theme-colors: (
"primary": #0074d9,
"danger": #ed1c24
);
...
/* changing components of header h3 & p for smaller screen sizes */
@media (max-width: 575.98px) {
.card-text {
font-size: 16px;
}
}
Image reference for desired card layout: https://i.sstatic.net/bvvmj.png
The goal is to have 4 cards where the first one takes up about 67% of the page, the second one takes up about 33%, the third one takes up 33%, and the fourth one takes up 67%. When adding new sections, they should fill the larger section first before moving to the smaller sections.