bootstrap-4

Bootstrap order changes depending if displayed as 1 or 2 column

不打扰是莪最后的温柔 提交于 2019-12-24 19:16:55
问题 I have a webpage which displays two columns of cards, unless screen width gets smaller then md size. My problem is that I want the most important items to appear higher up the page, so I put important items first in the two columns (e.g I want ordered alphabetically A - D) <row> <div class="col-md"> <item A> <item C> </div> <div class="col-md"> <item B> <item D> </div> </row> so on two column screen can be seen in order A, B, C, D But when single column it displays first column and then

In Html how do I display a Bootstrap Badge onto an image itself

折月煮酒 提交于 2019-12-24 19:13:37
问题 I have a grid of images, and for each image I have two figcaption elements rendered as badges beneth each image (plus a 3rd that renders correctly as a hyperlink), what I really want to do is have the badges at the bottom of the image itself, but have no idea how to do this. <div style="display:grid;grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));grid-gap: 5px;"> <div> <figure class="figure"> <a href="FixSongsReport00277_changes00041.html"> <img src="../images/Antonin Dvorak;

Make Modal capture figcaption

穿精又带淫゛_ 提交于 2019-12-24 19:09:10
问题 so I have this code for a fig caption and a modal to show up on mobile and tablets, but I would like to make the modal open my caption instead of writing the caption again inside the modal. I have many images with captions, so this with be optimal How is this possible? Thanks <div class="col-5 col-sm-2 ml-auto aboutMid aboutMid1"> <figure class="cap-left"> <img src="http://www.classichits.ie/wp-content/uploads/2016/12/house.png" class="img-fluid"> <a href="#myModal" role="button" data-toggle=

Move bootstrap dropdown menu to another side

心已入冬 提交于 2019-12-24 19:08:10
问题 Dropdown menu made via Bootstrap. I need to move it to the left side like at the screenshot below. Don't pay attention to color in snippet and screenshots. <head> <!-- Bootstrap CSS --> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css" integrity="sha384-9gVQ4dYFwwWSjIDZnLEWnxCjeSWFphJiwGPXr1jddIhOegiu1FwO5qRGvFXOdJZ4" crossorigin="anonymous"> </head> <body> <ul class="nav nav-pills"> <li class="nav-item"> <a class="nav-link active uppercase

Angular: How to detect toggle status in ng-bootstrap dropdown

你离开我真会死。 提交于 2019-12-24 19:07:39
问题 I am working with this dropdowns. How can I detect in the template or ts file the status of the dropdown modal? 回答1: You need to call the built-in function isOpen() to get a boolean value of whether a particular dropdown is opened or closed the detail is given in the API, methods section relevant TS : import {Component, ViewChild} from '@angular/core'; @Component({ selector: 'ngbd-dropdown-basic', templateUrl: './dropdown-basic.html' }) export class NgbdDropdownBasic { @ViewChild(NgbDropdown)

How to change property of ul tag css in HTML

只谈情不闲聊 提交于 2019-12-24 19:07:08
问题 I'm using Slide of bootstrap jquery and css, It runs normal and no problem happens. this is my source: <div id="photos" class="tabcontent"> <div id="ninja-slider"> <div> <div class="slider-inner"> <ul> <li><a class="ns-img" href="<%=request.getContextPath()%>/resources/images/car1.jpg"></a></li> <li><a class="ns-img" href="<%=request.getContextPath()%>/resources/images/ban-xe-honda-civic.jpg"></a></li> <li><a class="ns-img" href="<c:out value="${product.thumbnail3}"/>"></a></li> <li><a class=

Use multiple dropdown menus in table as select list

断了今生、忘了曾经 提交于 2019-12-24 18:35:35
问题 so i have a users table, and i wanna add a column to the table where i can get to change the status of the user to active/inactive using bootstrap dropdown menu. here is the code for the tables: <table class="table"> <thead> <tr> <th>#</th> <th>First Name</th> <th>Last Name</th> <th>Status</th> </tr> </thead> <tbody> <tr> <th scope="row">1</th> <td>Mark</td> <td>Otto</td> <td> <div class="dropdown"> <button class="btn btn-outline-secondary dropdown-toggle" type="button" data-toggle="dropdown"

add active to collapsible nav-link

大城市里の小女人 提交于 2019-12-24 18:28:20
问题 The code was initially designed with data-toggle="tab" but I replaced it to collapse. It worked as I wanted. I need to to include active to nav-link class for css redesign purposes. I tried couple of jQuery but none seem to work. $('.nav .nav-item .nav-link').click(function(){ $('.nav .nav-item .nav-link').removeClass('active'); $(this).addClass('active'); }) <div id="accordion"> <ul class="nav nav-pills nav-justified" style="width: 100%;margin: auto;padding: 0px;" role="tablist"> <li class=

How to customize Bootstrap 4 using SASS for different grid columns and breakpoints?

限于喜欢 提交于 2019-12-24 17:27:59
问题 fellow devs, I'm trying to get 12 columns and 24 gutter size on large size, while 6 columns and 18 gutters when it's medium and lower on one container view, while another container view it would be 15 columns and 12 gutters on the large size while resizing accordingly on lower views?? This is what I can achieve on the former (12 col 24 gutters, 6 columns 18 gutters): background-grid { @include make-row(); @include make-col-ready; @each $breakpoint in map-keys($grid-breakpoints) { @include

How to remove/hide bootstrap tooltip when element is removed from the DOM

拈花ヽ惹草 提交于 2019-12-24 17:22:16
问题 I'm currently working on a project in ReactJS. Some of my components are not rendered all the time but change dynamically based on certain conditions. When these components have a tool tip attached to them, I'm noticing that if the tooltip was active when the element was hidden, the tooltip does not go away. I'm looking for a way to remove or at least hide this tooltip when the element is not being rendered. This is how I'm activating the tooltips using jQuery: $(document).ready(function() {