If you're working with Bootstrap 5, there's a dedicated class called border-0
for handling borders.
Experiment by applying and removing the border-0
class in the code below to observe its impact.
To delve deeper into border utilities in Bootstrap, check out the documentation here.
I hope this explanation proves useful!
<!--include bootstrap 5 script and styles-->
<script src="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="61030e0e15121513001121544f534f52">[email protected]</a>/dist/js/bootstrap.bundle.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="f99b96968d8a8d8b9889b9ccd7cbd7ca">[email protected]</a>/dist/css/bootstrap.min.css" rel="stylesheet"/>
<!-- showcase a bootstrap 5 card without borders using the provided .css-->
<!--note the application of border-0 class-->
<div class="card border-0">
<div class="card-body">
<h1 class="display-1">Card With No Borders!</h1>
<p class="card-text">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed elementum dui arcu, eu aliquet odio elementum non. Curabitur vel mi ligula. In vel dolor diam. Curabitur ornare, magna eget ultrices luctus, magna lectus tempus dui, non facilisis elit dolor eu risus. </p>
<a href="#" class="btn btn-primary">A Button</a>
</div>
</div>