Currently, I am in the process of developing a small website using Bootstrap 5. My goal is to have 6 elements displayed on two lines for breakpoints greater than or equal to md and on a single line for smaller breakpoints. It all seems to be working fine for the sm breakpoint, but when I downsize to xs, the 6 elements end up being displayed in a vertical line, which is not the intended behavior. I'm a bit puzzled as to why this is happening...
The code snippet provided above has been simplified to focus solely on reproducing the issue. The other elements within my code, like additional rows, do not seem to be the cause of this problem.
Thank you for any help you can provide!
<!doctype html>
<html lang="fr>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="9af8f5f5eee9eee8fbeadaafb4abb4a9">[email protected]</a>/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
</head>
<body>
<div class="container">
<div class="row">
<div class="col-sm-12 col-md-2">
<div class="row text-center">
<div class="col-md-4 col-sm-2">A</div>
<div class="col-md-4 col-sm-2">B</div>
<div class="col-md-4 col-sm-2">C</div>
<div class="col-md-4 col-sm-2">D</div>
<div class="col-md-4 col-sm-2">E</div>
<div class="col-md-4 col-sm-2">F</div>
</div>
</div>
</div>
</div>
</body>
</html>