I am trying to achieve a similar effect in Bootstrap 5 as the following CSS code:
margin: 0 auto;
width:60%;
In Bootstrap, this code aligns items to the left of the page rather than center. How can I limit the width to the middle 60% and then distribute the content evenly across 2 columns?
Edit: Here is the HTML code (style.css only contains text-align and colors):
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="7c1e1313080f080e1d0c3c49524d524c">[email protected]</a>/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-KyZXEAg3QhqLMpG8r+8fhAXLRk2vvoC2f3B09zVXn8CA5QIVfZOJ3BCsw2P0p/We" crossorigin="anonymous">
<link rel="stylesheet" href="style.css">
<title>Bootstrap</title>
</head>
<body>
<div class="container-fluid">
<header class="row">
<div class="col-12" id="header_id"></div> <!--header_id is just for a background image-->
</header>
<section class="row">
<article class="col-4">Lorem, ipsum dolor sit amet consectetur adipisicing elit. Voluptates animi ratione esse, aut
vel iusto voluptas voluptatum illo suscipit veniam, laudantium qui, quidem nihil eaque repellendus
ducimus facilis velit sequi.</article>
<article class="col-4">Lorem, ipsum dolor sit amet consectetur adipisicing elit. Voluptates animi ratione esse, aut
vel iusto voluptas voluptatum illo suscipit veniam, laudantium qui, quidem nihil eaque repellendus
ducimus facilis velit sequi.</article>
<article class="col-4">Lorem, ipsum dolor sit amet consectetur adipisicing elit. Voluptates animi ratione esse, aut
vel iusto voluptas voluptatum illo suscipit veniam, laudantium qui, quidem nihil eaque repellendus
ducimus facilis velit sequi.</article>
<article class="col-4">Lorem, ipsum dolor sit amet consectetur adipisicing elit. Voluptates animi ratione esse, aut
vel iusto voluptas voluptatum illo suscipit veniam, laudantium qui, quidem nihil eaque repellendus
ducimus facilis velit sequi.</article>
<article class="col-4">Lorem, ipsum dolor sit amet consectetur adipisicing elit. Voluptates animi ratione esse, aut
vel iusto voluptas voluptatum illo suscipit veniam, laudantium qui, quidem nihil eaque repellendus
ducimus facilis velit sequi.</article>
</section>
<footer class="row">
<div class="col-12 align-center static-bottom">LICENCE</div> <!-- align-center is just for aligning text -->
</footer>
</div>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="17747865725725392e3924">[email protected]</a>/dist/umd/popper.min.js"
integrity="sha384-eMNCOe7tC1doHpGoWe/6oMVemdAVTMs2xqW4mwXrXsW0L84Iytr2wi5v2QjrP/xp"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="ee8c81819a9d9a9c8f9eaedbc0dfc0de">[email protected]</a>/dist/js/bootstrap.min.js"
integrity="sha384-cn7l7gDp0eyniUwwAZgrzD06kc/tftFf19TOAs2zVinnD/C7E91j9yyk5//jjpt/"
crossorigin="anonymous"gt;</script>
</body>
</html>