bootstrap-4

How can i adjust the img height in one column to the height of the height in another column [duplicate]

我与影子孤独终老i 提交于 2020-06-09 05:29:46
问题 This question already has answers here : One flex item sets the height limit for siblings (4 answers) How can you set the height of an outer div to always be equal to a particular inner div? (2 answers) Closed 12 days ago . In a 2 flex bootstrap columns, I would like to adjust the height of the image on the right column to the height of the text in the left columns. How could I achieve this ? img { max-width: 100%; width: 100%; } <link href="https://cdnjs.cloudflare.com/ajax/libs/twitter

Bootstrap custom checkbox without attribute for

戏子无情 提交于 2020-06-01 07:58:48
问题 Is there a way to still have the Bootstrap 4 custom checkbox styling without using the id on the input and the attribute for on the label? The styling for checked is not there when you remove it. Example: <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> <div class="custom-control custom-checkbox mb-3"> <input type="checkbox" class=

How to pass the value through button to bootstrap modal and update values in mysql database using only php

萝らか妹 提交于 2020-06-01 07:15:28
问题 user table values showing in webpage with edit button for each row...i need when i click the edit button it display the modal (must pass the all values of that row) with that row values in input form... <table class="table table-hover"> <thead> <tr> <th>Name</th> <th>gender</th> <th>age</th> <th>Action</th> </tr> </thead> <tbody> <?php require_once('dbconfig/config.php'); $result = mysqli_query($con,"SELECT * FROM users"); while($row = mysqli_fetch_array($result)) { ?> <tr> <td><?php echo

Using bootstrap-notify with Angular 7

六眼飞鱼酱① 提交于 2020-05-30 17:46:51
问题 I would like to use bootstrap-notify in my Angular 7 application. To do this, I have installed the bootstrap-notify package (and also @types/bootstrap-notify ). In my component from where I want to use the notifications I imported the jQuery service like this: import * as $ from 'jquery'; And now called notify as described here in the documentation: $.notify({ // options message: 'Hello World' },{ // settings type: 'danger' }); The problem is that I get this error: ERROR in src/app/home/home

Using bootstrap-notify with Angular 7

帅比萌擦擦* 提交于 2020-05-30 17:46:12
问题 I would like to use bootstrap-notify in my Angular 7 application. To do this, I have installed the bootstrap-notify package (and also @types/bootstrap-notify ). In my component from where I want to use the notifications I imported the jQuery service like this: import * as $ from 'jquery'; And now called notify as described here in the documentation: $.notify({ // options message: 'Hello World' },{ // settings type: 'danger' }); The problem is that I get this error: ERROR in src/app/home/home

Bootstrap negative margin on rows

你。 提交于 2020-05-28 14:55:36
问题 Bootstrap rows has a margin (left and right) of -15px . As far as I know this is mainly by two reasons: The .container has a padding (left and right) of 15px The col-* have a gutter of 15px . So in order to avoid the blank space created by the gutter on the first column (on its left side) and the space created by the gutter on the last column (on its right side) the row has a margin (left and right) of -15px . I'm just wondering, why not to remove the padding of the container and just set the

Jinja2 & Flask: Bootstrap Tabs display the content for the first tab only and not the rest

荒凉一梦 提交于 2020-05-27 13:13:59
问题 I'm using Jinja2 and Python to generate html and I'm also using bootstrap for the css and js. I'm trying to create Bootstrap pill tabs by using Jinja2 for loops and some other logic. Here is what my code looks like: I pass this dictionary into the render_template function of flask along with the name of the html file I want to generate: my_dict = {"First tab": "tab1", "Second tab": "tab2", "Third tab": "tab3"} The keys of the dictionary represent the text that is displayed as the name of the

Can't make 100% div height between header and footer with Bootstrap 4

佐手、 提交于 2020-05-27 08:43:12
问题 This post could sound like a duplicate but it isn't, please read first. I want the main container ( <main role="main" class="container"> ) to be full-height between header and footer using Bootstrap 4. Here is my html code : // Initialize tooltip component $(function () { $('[data-toggle="tooltip"]').tooltip() }) // Initialize popover component $(function () { $('[data-toggle="popover"]').popover() }) .container{ width: 100%; min-height: 100% !important; min-height:calc(100% - 110px);

Can't make 100% div height between header and footer with Bootstrap 4

自古美人都是妖i 提交于 2020-05-27 08:42:50
问题 This post could sound like a duplicate but it isn't, please read first. I want the main container ( <main role="main" class="container"> ) to be full-height between header and footer using Bootstrap 4. Here is my html code : // Initialize tooltip component $(function () { $('[data-toggle="tooltip"]').tooltip() }) // Initialize popover component $(function () { $('[data-toggle="popover"]').popover() }) .container{ width: 100%; min-height: 100% !important; min-height:calc(100% - 110px);

Setting nav-item to active after carousel-caption button clicked with jQuery

爱⌒轻易说出口 提交于 2020-05-17 08:49:25
问题 I'm running into an issue when trying to go to the href of a carousel-caption button. This button links you to the reptile on the reptiles.html page. When the carousel-caption button is clicked, it doesn't highlight/set the reptiles.html nav-item to active, but rather (I think) the dropdown item. Here is my code for the navbar, carousel, and jQuery which handles setting the nav-items to active when clicked: $(function() { $('a').each(function() { if ($(this).prop('href') === window.location