Is there a way to add margin to the "col" element with the class "mr-md-3" without causing any layout breaks within the containing div?
.content {
height: 200px;
border: 1px solid black;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
<div class="container">
<div class="row no-gutters">
<div class="col-md-4 col-12 content mr-md-3 mb-3"></div>
<div class="col-md-8 col-12 content mb-3"></div>
</div>
</div>
<footer>
<div class="container">
<div class="row no-gutters">
<div class="col-md-4 col-12 content mb-3"></div>
<div class="col-md-8 col-12 content mb-3"></div>
</div>
</div>
</footer>
How can I apply some right margin to an element while keeping it within the global container and preventing any layout issues? Any suggestions on achieving this?
Please refer to the example provided for better understanding in larger resolution.