bootstrap-4

BS4 Reduce Padding Between 2-Up Grid Cards on Mobile

我的未来我决定 提交于 2021-01-29 22:07:19
问题 I have a bootstrap-4 page grid cards. On mobile devices (col), I would like them to display 2 up, but I get twice the padding between the cards than I do on the outside. This is the result of the left and right card padding meeting in between the two cards. Because the number of cards can vary from 1 to 99 I am not sure how to reduce the inner padding to even things out. See image: Green is left and right padding. Gray is the card area. 回答1: try this css to your card element that has padding,

Laravel 8 JetStream Bootstrap 4

老子叫甜甜 提交于 2021-01-29 19:57:39
问题 I am using the jetstream UI with Laravel 8 and I have checked an I am aware that the Laravel team has no plans to make a Bootstrap version of the UI but I'm only comfortable with bootstrap and can't use a CDN because I need to make changes to BS4. Is it possible to install BS4 and SASS on a Laravel project without affecting the Laravel JetStream UI. 回答1: By default Laravel Jetstream is powered by TailwindCSS. All defaults pages is made by this CSS framework but you can easily add Bootstrap to

Best way to change bootstrap 4 hamburger icon to three dots menu icon using only css

偶尔善良 提交于 2021-01-29 19:31:59
问题 The standard bootstrap 4 navbar button features a hamburger icon. <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExample03" aria-controls="navbarsExample03" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span> </button> How can this be changed from the original hamburger icon to a css only three dots or kebab dots menu icon? From this.. To this... (I appreciate the colors are different) 回答1: body { background

Styling `Select2` in line with `bootstrap4` and displaying error/success with `jQuery validation` [duplicate]

送分小仙女□ 提交于 2021-01-29 16:06:54
问题 This question already has answers here : Error placement, Select2 (2 answers) How to make select2 work with jquery.validation plugin? (15 answers) select2 and jquery validation not working properly (2 answers) Closed 9 months ago . Not duplicate This question should be reopened as previous questions (on this topic) with answers are 4-5 years old and refer to respective project's old versions. Not to mention that year in computing is like a 'light year' in real life. Please vote to reopen this

HTML and CSS caret dropdown menu

核能气质少年 提交于 2021-01-29 14:25:08
问题 how can one add a dropdown caret to the account link in the html code below . . . <nav> <ul id="menu"> <li class="home"><a href= "home.html" class="menu" ><h3>Home</h3></a></li> <li class="news"><a href= "news.html" class="menu" target="_blank"><h3>News</h3></a></li> <li class="account"><a href= "#" class="menu dropdown-toggle" target="_blank" data-toggle="dropdown"><h3>Account</h3></a></li> </ul> </nav> 回答1: There are many ways to do this. Here is a way using only CSS and the ::after psuedo

Cannot import bootstrap in nuxt vue component [duplicate]

爱⌒轻易说出口 提交于 2021-01-29 13:27:49
问题 This question already has answers here : “Uncaught SyntaxError: Cannot use import statement outside a module” when importing ECMAScript 6 (12 answers) Closed 10 months ago . I can't import bootstrap in any vue component (using latest nuxtjs). I get : My (simple) component is : <template> <h1>Empty index page</h1> </template> <script> import Modal from 'bootstrap/js/src/modal' export default {} </script> <style></style> I am really stuck. Do you have any idea or suggestion ? 回答1: You should

Bootstrap navbar-toggler

淺唱寂寞╮ 提交于 2021-01-29 13:25:39
问题 So, I'm messing with bootstrap for the first time, figuring out how things work. I've made good progress with navbars, but I'm absolutely stumped about the navbar-toggler. <nav class="nav navbar-expand-sm navbar-dark"> <a class="navbar-brand" href="" id="homeOverride"> <span class="overrideFonts"> Home </span> </a> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label=

Bootstrap 4 highlight navbar Active

◇◆丶佛笑我妖孽 提交于 2021-01-29 13:10:46
问题 How to highlight the current page on click ? The nav-bar <div class="collapse navbar-collapse" id="navbarNavAltMarkup"> <ul class="navbar-nav"> <li class="nav-item active"> <a class="nav-link active" href="{% url 'page1' %}"> Football <span class="sr-only">(current)</span></a> </li> <li class="nav-item"> <a class="nav-link" href="{% url 'page2' %}">Overview</a> </li> </ul> </div> The script at the end of the .html <script src="{% static "JS/master.js" %}" type="text/javascript"></script> The

Bootstrap Carousel not working, does it need javascript code?

こ雲淡風輕ζ 提交于 2021-01-29 12:52:21
问题 I did an exact copy of the Carousel at the Bootstrap page example but it does not work at all. The slide does not work, it keeps in the first image always. Should I add some Javascript? I put the jquery cdn on top of the bootstrap cdn as I saw in many posts about a possible solution, but it still no working. Below it is the html code. <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Cotizador de

Simply mail with bootstrap

霸气de小男生 提交于 2021-01-29 12:43:00
问题 I have a simply mail I want to send <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.2/css/bootstrap.min.css"> <div class="card"> <div class="card-header"> <nav class="navbar bg-primary"> <a class=" navbar-brand " href="# "> <img alt=" " class="d-inline-block align-top " src="img/logo.png "> </a> </nav> </div> <div class="card-body "> <h5 class="card-title ">Welcome</h5> <p class="card-text ">To complete the registration you must click on the following link.</p>