As a newcomer to Bootstrap, I have a question about the code snippet below:
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet"/>
<div class="container">
<div class="row border">
<div class="col-lg-4 border">One</div>
<div class="col-lg-4 border">Two</div>
<div class="col-lg-4 border">Three</div>
</div>
</div>
When I resize my browser window to a smaller size that doesn't meet the lg breakpoint criteria, the three elements stack on top of each other. However, if I remove the breakpoint entirely, like so:
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet"/>
<div class="container">
<div class="row border">
<div class="border">One</div>
<div class="border">Two</div>
<div class="border">Three</div>
</div>
</div>
The three elements now appear as inline elements instead of stacking on top of each other. Why is this happening? The code remains the same with col-lg-4, and the lg breakpoint isn't being triggered as long as I stay within the small window size.