Is there a way to set the width of a column in bootstrap based on its content size?
I am working with a list of items. The HTML code for this section is as follows:
<div class="row">
<div class="col-lg-1 " style="background-color: rebeccapurple">
<input type="checkbox">
</div>
<div class="col-lg-10" style="background-color: #007fff">
Title
</div>
<div class="col-lg-1" style="background-color: #777620">
Button Group
</div>
</div>
I want the first and last columns to adjust their width according to their content size. https://i.sstatic.net/yi2NK.png