twitter-bootstrap-4

Justify buttons with Bootstrap v4

▼魔方 西西 提交于 2019-11-28 22:12:55
问题 Bootstrap v4 drops the .btn-group-justified class, see https://github.com/twbs/bootstrap/issues/17631 How to justify the button for: <div class="btn-group btn-group-justified" role="group" aria-label="Justified button group"> <a class="btn btn-primary" href="#" role="button">Left</a> <a class="btn btn-primary" href="#" role="button">Middle</a> <a class="btn btn-primary" href="#" role="button">Right</a> </div> 回答1: For anyone finding this after Bootstrap 4 Beta was released... <div class="btn

Cards crops bootstrap 4

偶尔善良 提交于 2019-11-28 12:34:47
问题 Bootstrap cards inside card-columns block crops, how to disable it? Here is screenshot. http://piccy.info/view3/10286069/ca22a528ba433ab5b05119bb1d4e1fea/ <div class="card-columns"> <div class="card"> <div class="card-header">taras.shpachenko@yandex.ru</div> <div class="card-block"> <p class="card-text">werewrwekek</p> </div> <div class="card-footer"></div> </div> <div class="card"> <div class="card-header">taras.shpachenko@yandex.ru</div> <div class="card-block"> <p class="card-text"

How do I add a data-offset to a Bootstrap 4 fixed-top responsive navbar?

时光怂恿深爱的人放手 提交于 2019-11-28 11:51:48
So, in Bootstrap v3, you would just add a data-offset attribute to the nav tag, with the pixel offset, in this case 54px, <nav data-offset="54"></nav> However, in Bootstrap v4, this data-offset attribute is missing, and doesn't work. I've had a look through the v4 docs, and just can't seem to find anything! I've also tried using data-offset and offset attributes, but these don't work either. Here is the html code of the nav <nav class="navbar navbar-light bg-faded navbar-fixed-top"> <button type="button" data-toggle="collapse" data-target="#nav-collapse" aria-controls="#nav-collapse" aria

Bootstrap 4 hidden-X-(down/up) class not working

拟墨画扇 提交于 2019-11-28 11:40:56
I'm using Bootstrap v4.0 beta and I have checked this migration doc https://v4-alpha.getbootstrap.com/migration/#responsive-utilities but there's no way to make the hidden-X-up or hidden-X-down work. Here is an example of my code: <div class="container"> <div class="row"> <div class="col-md-3 hidden-md-down"> <p class="title">Join us</p> <p class="subtitle">Just click on the button below</p> <p class="link"><a href="#" class="outstanding-link">the button below</a></p> </div> </div> </div> it should be visible with 3 columns in a medium devices (greather than 720px) but hidden in less than a

Bootstrap 4 collapse navbar with Angular 4

柔情痞子 提交于 2019-11-28 10:34:45
I want to make a navbar using Bootstrap 4 and Angular 2 that collapses his content on a button when the width of the browser reaches some value. I achieve this, and when the navbar collapses I can see the button that encloses the elements in the navbar, but this button doesn't work. How can I fix this without using jquery? I was trying to use ng-bootstrap. In the image you can see the button when the navbar collapses. My code so far: <nav class="navbar navbar-expand-md fixed-top navbar-dark custom-nav"> <span class="navbar-brand mb-0 h1">Partes vehículos</span> <button class="navbar-toggler"

bootstrap 4 styled select

*爱你&永不变心* 提交于 2019-11-28 10:21:32
i would like to display a dropdown / select as an input with bootstrap 4. so far the only select thing i found in the documentation ist this . which works, but does not look very bootstrap like and does not support icons, grouping dividers and stuff. is there any way to fit a select with the functionality of a dropdown from bootstrap? something like this, but only as form input of sorts: <div class="btn-group"> <button class="btn btn-secondary btn-lg dropdown-toggle" type="button" data-toggle="dropdown"> Large button </button> <div class="dropdown-menu"> <a class="dropdown-item" href="#"

Bootstrap 4 carousel not responsive images

落爺英雄遲暮 提交于 2019-11-28 08:41:19
Look at this: http://www.consultacultura.it/portale_comunale_della_cultura.asp?IDcomune=1 Carousel images are not responsive like images under of it. They have the same class img-fluid. This is a known issue in Bootstrap 4 Alpha 6... https://github.com/twbs/bootstrap/issues/21611 As a workaround you can use.. .carousel-item.active, .carousel-item-next, .carousel-item-prev { display: block; } http://www.codeply.com/go/0QUU06MiIL ben Thijssen For me that workaround did not work for both, desktops and mobiles. I adjusted the proposed workaround a bit to make it -orientation- sensible. @media

How can I vertically centralize a Bootstrap V4 modal with CSS? [duplicate]

百般思念 提交于 2019-11-28 07:39:53
问题 This question already has an answer here: How to vertically align Bootstrap v4 modal dialogs 8 answers How can I centralize a Bootstrap V4 modal with CSS? 回答1: You can vertical center the modal by overriding the position of the .modal-dialog like this.. .modal.show .modal-dialog { -webkit-transform: translate(0,-50%); -o-transform: translate(0,-50%); transform: translate(0,-50%); top: 50%; margin: 0 auto; } http://www.codeply.com/go/14Ki1kyTgo Update 2018 As of Bootstrap 4 Beta 3, there is a

Bootstrap 4 flex grid system only

北战南征 提交于 2019-11-28 07:25:58
问题 So in bootstrap3 we had the 'Customize and download' option, which we could download only whatever we needed. Now that bootstrap 4 supports flexbox, I only wanna download the flex grid system of bootstrap 4 and I cant see that option anymore. is there any way to do this ? 回答1: UPDATE (JULY 2019) Since v4.0 (v4.1 here), you can simply use either bootstrap-grid.css or bootstrap-grid.min.css , it only includes grid system(v4.0 & v4.1) and flex utilities (v4.0 & v4.1) Old Answer: At this Alpha

Bootstrap 4 Multiple Items Carousel (several carousel items shown at once)

Deadly 提交于 2019-11-28 07:01:04
How do you implement a multiple items carousel in Bootstrap 4? The docs mention about multiple carousels but not a carousel with multiple items. You can display one carousel item at a time, but fill it with multiple elements. Something like: .item .col-xs-4 {content} .col-xs-4 {content} .col-xs-4 {content} But you may then be wishing you could advance them one at a time. That isn't going to happen with bootstrap right out of the box. After implementing many carousels, I'd recommend seeking another carousel library when Bootstrap's doesn't fit the bill. Slick.js is my go-to lib for lots of