I have the following code:
<div class="row justify-content-md-center">
<div class="col-lg-6 col-md-8">
<div style="background-color: #1b6d85">test</div>
</div>
</div>
The div with the text "test" uses the full width inside the col. So the whole cols background is #1b6d85. But why? I didnt't declare the width of this div so ´shouldn't it be only the width of the text?