Increasing the size of a bootstrap checkbox

I added classes like *-sm, *-md, *-lg, *-xl for the bootstrap switch. Here I made all resolutions switch with one @mixin ( @mixin is very similar to JS functions but it does not return anything ). For Bootstrap 4 custom-switch-sm, custom-switch-md, custom-switch-lg, custom-switch-xl SCSS: https://codepen.io/nisharg/pen/VwLbYvv CSS: https://codepen.io/nisharg/pen/mdJmywW LIVE SNIPPET (CSS) /* for sm */ .custom-switch.custom-switch-sm … Read more

How to create jumbotron in Bootstrap 5?

The migration documents give you exactly what you need to know. In v4.x Bootstrap’s .jumbotron component is literally just this: .jumbotron { padding: 2rem 1rem; margin-bottom: 2rem; background-color: #e9ecef; border-radius: .3rem; } You can, with the exception of the specific background color, emulate this entirely without the use of this class: <link rel=”stylesheet” href=”https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css” integrity=”sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk” … Read more

Bootstrap 5 – Uncaught TypeError: Popper__namespace.createPopper is not a function

I received this error (TypeError: i.createPopper is not a function) each time when popovers should be shown. Previously I had to make use of the Separate Popper and Bootstrap JS (Option 2) – due to conflict with other scrips. However this is no longer necessary in my project, with Bootstrap 5.1.1. Including only the Bootstrap … Read more

How to create scrollable element in Tailwind without a scrollbar

To hide the scrollbar you’ll need to style it directly: /* Hide scrollbar for Chrome, Safari and Opera */ .no-scrollbar::-webkit-scrollbar { display: none; } /* Hide scrollbar for IE, Edge and Firefox */ .no-scrollbar { -ms-overflow-style: none; /* IE and Edge */ scrollbar-width: none; /* Firefox */ } You could easily add these as Tailwind … Read more

Bootstrap responsive sidebar menu to top navbar

Bootstrap 5 (update 2021) Some of the classed have change for Bootstrap 5, but the concept is still the same. Here’s an updated Bootstrap 5 sidebar to navbar example Bootstrap 4 (original answer) It could be done in Bootstrap 4 using the responsive grid columns. One column for the sidebar and one for the main … Read more

Navbar dropdown (collapse) is not working in Bootstrap 5

The data-* attributes used in Bootstrap 4 have been replaced with data-bs-* in Bootstrap 5 <button class=”navbar-toggler” data-bs-toggle=”collapse” data-bs-target=”#navbar”> <span class=”navbar-toggler-icon”></span> </button> Demo As explained in the docs, data attributes for all JavaScript plugins are now namespaced to help distinguish Bootstrap functionality from third parties and your own code. This means any javascript components (Collapse, … Read more

Changing Dropdown Icon on Bootstrap

Bootstrap 5 (update 2023) Changing the dropdown caret to an icon still works the same way in Bootstrap 5. Don’t forget to change the data-toggle to data-bs-toggle: <div class=”dropdown”> <button class=”btn btn-secondary” type=”button” id=”dropdownMenuButton” data-bs-toggle=”dropdown” aria-haspopup=”true” aria-expanded=”false”> Dropdown button <i class=”fa fa-heart”></i> </button> <div class=”dropdown-menu” aria-labelledby=”dropdownMenuButton”> <a class=”dropdown-item” href=”#”>Action</a> <a class=”dropdown-item” href=”#”>Another action</a> <a class=”dropdown-item” … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)