Re-color Tooltip in Bootstrap 4

As of Bootstrap 4.0 CSS for tooltip recoloring is handled by the .tooltip-inner class as you noticed: .tooltip-inner { max-width: 200px; padding: 3px 8px; color: #fff; text-align: center; background-color: #000; border-radius: .25rem; } Css for top arrow: .tooltip.bs-tooltip-auto[x-placement^=top] .arrow::before, .tooltip.bs-tooltip-top .arrow::before { margin-left: -3px; content: “”; border-width: 5px 5px 0; border-top-color: #000; } Css for … Read more

Horizontally scrollable list of cards in Bootstrap

Update 2021 Bootstrap 5 The flexbox utils still exist in Bootstrap 5: https://codeply.com/p/Vo13PAGO7e <div class=”container-fluid py-2″> <h2 class=”font-weight-light”>Bootstrap 5 Horizontal Scrolling Cards with Flexbox</h2> <div class=”d-flex flex-row flex-nowrap”> <div class=”card card-body”>Card</div> <div class=”card card-body”>Card</div> <div class=”card card-body”>Card</div> … </div> </div> Update 2019 Bootstrap 4.3+ The flexbox method still works, so you can use the flexbox … Read more

table caption goes bottom using bootstrap

That’s because bootstrap 4 has default caption css style – caption-side: bottom When you change caption-side: top; you will have your caption on the top of the table. Update: Bootstrap 5 You can also put the <caption> on the top of the table with .caption-top: <table class=”table caption-top”> <caption>List of users</caption> <thead> <tr></tr> </thead> <tbody> … Read more

Open bootstrap modal with vue.js 2.0

My code is based on the Michael Tranchida’s answer. Bootstrap 3 html: <div id=”app”> <div v-if=”showModal”> <transition name=”modal”> <div class=”modal-mask”> <div class=”modal-wrapper”> <div class=”modal-dialog”> <div class=”modal-content”> <div class=”modal-header”> <button type=”button” class=”close” @click=”showModal=false”> <span aria-hidden=”true”>&times;</span> </button> <h4 class=”modal-title”>Modal title</h4> </div> <div class=”modal-body”> modal body </div> </div> </div> </div> </div> </transition> </div> <button id=”show-modal” @click=”showModal = true”>Show … Read more

Bootstrap 4 navbar with 2 rows

You can use the flex-column flexbox utility class to stack the 2 navs vertically next to the icon. This sets flex-direction: column on the navbar-collapse div so that it’s child elements stack vertically. <nav class=”navbar navbar-toggleable-md navbar-inverse bg-inverse”> <div class=”container”> <button class=”navbar-toggler navbar-toggler-right align-self-center mt-3″ type=”button” data-toggle=”collapse” data-target=”#navbarCollapse”> <span class=”navbar-toggler-icon”></span> </button> <h1 class=”py-2 ml-lg-2 mx-3″><a … Read more

Align the form to the center in Bootstrap 4 [duplicate]

You need to use the various Bootstrap 4 centering methods… Use text-center for inline elements. Use justify-content-center for flexbox elements (ie; form-inline) https://codeply.com/go/Am5LvvjTxC Also, to offset the column, the col-sm-* must be contained within a .row, and the .row must be in a container… <section id=”cover”> <div id=”cover-caption”> <div id=”container” class=”container”> <div class=”row”> <div class=”col-sm-10 … Read more

bootstrap 4 – When to use reboot css and grid css?

bootstrap.css should contain all the CSS you need to use Bootstrap in your project. The files bootstrap-reboot.css and bootstrap-grid.css are cut down versions containing just the necessary styles for reboot and Bootstrap’s flexbox grid respectively. They are to be used if you don’t want to include the entirety of Bootstrap in your project and will … Read more

How to align content bottom on Bootstrap 4 col

You can use align-items-end from the new Bootstrap 4 flexbox utilities… <div class=”container”> <hr> <div class=”row align-items-end”> <div class=”col-md-6″> © BusinessName 2017. </div> <div class=”col-md-3″> <a href=”https://stackoverflow.com/blog”> Blog </a> <br> <a href=”https://stackoverflow.com/blog”> FAQ </a> <br> <a href=”https://stackoverflow.com/blog”> About </a> </div> <div class=”col-md-3″> <strong>Contact</strong> <br> contact@businessname.com <br> more info bla bla <br> more more more info … Read more