twitter-bootstrap-4

How to make Bootstrap 4 carousel images responsive? [duplicate]

妖精的绣舞 提交于 2019-12-09 10:38:53
问题 This question already has answers here : Bootstrap 4 carousel not responsive images (2 answers) Bootstrap carousel multiple frames at once (15 answers) Closed 2 years ago . Hopfully the title and the demo say it all. The new carousel of Bootstrap 4 isn't responsive. The images are out of their aspect ratio. Does somebody know how to solve this without doing major adjustments in the css and html? .wrapper { max-width:200px; width:100%; } <script src="https://code.jquery.com/jquery-3.1.1.slim

Bootstrap 4 IE 11 does not work

自闭症网瘾萝莉.ら 提交于 2019-12-09 02:30:09
问题 so I have the problem, that my whole website does not work in IE 11. I don't get why because officially IE 11 should be supported by bootstrap 4... Website: www.ergotherapie-klinkicht.de I'm a bit helpless right now, because I don't know where to start. Did I miss something for IE 11 to inlcude in my code? In Firefox, , Edge, Chrome and Safari it works just fine... Because right now, I have the feeling that bootstrap 4 is not compatible for IE 11 at all... Thanks for any reply! this is my

How to install Bootstrap v4 alpha using bower? [duplicate]

主宰稳场 提交于 2019-12-08 19:23:25
问题 This question already has answers here : Installing Bootstrap 4 with bower (4 answers) Closed 3 years ago . The v4-alpha documentation states Bootstrap v4.0.0-alpha is available for download in several ways, including some of your favorite package managers. however, the mentioned bower install bootstrap installs the latest stable release 3.3.5 instead. How to install v4 alpha using bower? 回答1: To install a specific version, append the GitHub tag using #: bower install bootstrap#4.0.0-alpha

table caption goes bottom using bootstrap

感情迁移 提交于 2019-12-08 15:01:14
问题 Table caption is at the top of the table but when I use a bootstrap class it goes to bottom of the table. <table class="table table-bordered"> <caption>why?</caption> <tr> <th>1</th> <th>2</th> <th>3</th> </tr> <tr> <th>4</th> <td>5</td> <td>6</td> </tr> </table> How do I align it to the top of table? 回答1: 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. 来源: https:/

Why is javascript code not loaded when injectet into Bootstrap 4 Modal?

冷暖自知 提交于 2019-12-08 13:27:28
I have a javascript function which opens a Bootstrap Modal Dialog: function showModal(message, headerMessage, sticky, noFooter){ var modal = $('<div />',{ class: 'modal fade hide', role: "dialog", 'aria-labelledby': "modalTitle", 'aria-hidden': "true", tabindex: -1 }); var modalDialog = $('<div />',{ class: 'modal-dialog', role: "document" }); modal.append(modalDialog); var modalContent = $('<div />',{ class: 'modal-content' }); modalDialog.append(modalContent); var header = $('<div />',{ class: 'modal-header' }); if(headerMessage == undefined) headerMessage = " "; header.html("<h3 id=

How to vertically align center a Font-Awesome icon with a line of text in Bootstrap 4?

筅森魡賤 提交于 2019-12-08 05:30:23
问题 I am trying to align a Font Awesome icon vertically center to a small block or line of text. Here's a picture of what I'm trying to achieve: This is the look I'd like to achieve The part of my webpage I am working on is seen here:This is the look my code currently produces. Note the unaligned FA icon , specifically, the code below is for the right side (column 2): <div class="col-12 col-md-6 col-lg-5"> <h4 class="text-center ">Honors and Awards</h4> <i class="fa fa-trophy fa-lg" aria-hidden=

Why is javascript code not loaded when injectet into Bootstrap 4 Modal?

心不动则不痛 提交于 2019-12-08 04:09:00
问题 I have a javascript function which opens a Bootstrap Modal Dialog: function showModal(message, headerMessage, sticky, noFooter){ var modal = $('<div />',{ class: 'modal fade hide', role: "dialog", 'aria-labelledby': "modalTitle", 'aria-hidden': "true", tabindex: -1 }); var modalDialog = $('<div />',{ class: 'modal-dialog', role: "document" }); modal.append(modalDialog); var modalContent = $('<div />',{ class: 'modal-content' }); modalDialog.append(modalContent); var header = $('<div />',{

How to vertically align center a Font-Awesome icon with a line of text in Bootstrap 4?

梦想的初衷 提交于 2019-12-07 09:13:27
I am trying to align a Font Awesome icon vertically center to a small block or line of text. Here's a picture of what I'm trying to achieve: This is the look I'd like to achieve The part of my webpage I am working on is seen here: This is the look my code currently produces. Note the unaligned FA icon , specifically, the code below is for the right side (column 2): <div class="col-12 col-md-6 col-lg-5"> <h4 class="text-center ">Honors and Awards</h4> <i class="fa fa-trophy fa-lg" aria-hidden="true"></i> <h5 class="text-center"> Boy Scouts of America Eagle Scout Rank</h5> <h6 class="text-center

How can I change link color and hover color in Bootstrap version 4?

雨燕双飞 提交于 2019-12-07 07:30:36
问题 In my design, I want to change my link and hover color in a specific part. I try my best but I can't do that. I am new in bootstrap. How can I change it for Bootstrap 4 ? A simple code is here- <div class="card" style="max-width: 320px;"> <div class="card-header text-center"><h3>Navigation</h3></div> <div class="card-block"> <ul class="nav navbar-nav" style="font-size: 1.50em;"> <li><a href="#" class="nav-link">Home</a></li> <li><a href="#" class="nav-link">Documents</a></li> <li><a href="#"

Divide a row in 5 columns in Bootstrap 4? [duplicate]

与世无争的帅哥 提交于 2019-12-06 17:07:48
问题 This question already has answers here : Five equal columns in twitter bootstrap (39 answers) Closed last year . How do you equally divide a row in 5 columns in Bootstrap 4 where it has 12 columns total? Anyone knows? 回答1: Bootstrap 4 doesn't use floats like version 3 did so it can automatically space out your columns using just the col class. So for 5 equally spaced columns, just do this: .col1 { background-color: red; } .col2 { background-color: green; } .col3 { background-color: blue; }