<div class="bg-secondary" style="width: 150px; height: 150px;"> <div class="h-auto bg-primary p-1 text-white">height auto</div> </div>Copy code
<div class="bg-secondary" style="width: 150px; height: 150px;"> <div class="h-auto bg-primary p-1 text-white">height auto</div> </div>
You don't need to remember all CSS classes. Just use the Bootstrap Editor instead.
Want to be the first to try?
Thanks! We'll be in touch.