twitter-bootstrap-4

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

一笑奈何 提交于 2019-11-27 01:09:48
问题 How do you implement a multiple items carousel in Bootstrap 4? The docs mention about multiple carousels but not a carousel with multiple items. 回答1: 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

Bootstrap 4 card-deck with number of columns based on viewport

落花浮王杯 提交于 2019-11-27 00:58:59
I'm trying to implement the card-deck feature in bootstrap 4 to make all of my cards the same height. The examples that bootstrap provides show 4 nice cards, but it's 4 cards on the row, no matter the viewport. See the codeply here . This doesn't make sense to me since, I would assume, that you'd want a minimum size for your card to shrink to in order for your content to still look good. I then tried adding in some viewport classes to break on screen sizes, but as soon as that div gets added, the card-deck doesn't apply anymore, thus not making the cards equal height. How can I get this

How to hide collapsible Bootstrap 4 navbar on click

不羁岁月 提交于 2019-11-27 00:33:42
I've created this collapsable navbar using Bootstrap 4 that works nicely, but I would like it to close when the user clicks on a link. Any way to do this? Thanks html navbar: <nav class="navbar navbar-toggleable-md fixed-top"> <button id="nav-btn"class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarDiv" aria-expanded="false" aria-label="Toggle navigation"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <div class="container"> <a class="navbar-brand" href="#"><img src="Images/logo.png" width=

What is the '.well' equivalent class in Bootstrap 4

为君一笑 提交于 2019-11-27 00:19:00
问题 In bootstrap-3 there is .well class which adds a rounded border around an element with a gray background color and some padding. <div class="well">Basic Well</div> But, I didn't find any .well class in bootstrap-4. Is there any tag equivalent to .well in bootstrap-4? 回答1: Update 2018... card has replaced the well . Bootstrap 4 <div class="card card-body bg-light"> Well </div> or , as two DIVs... <div class="card bg-light"> <div class="card-body"> ... </div> </div> (Note: in Bootstrap 4 Alpha,

Wrapping bootstrap columns in extra div

浪子不回头ぞ 提交于 2019-11-26 21:07:15
I'm using bootstrap v4 and when I wrap columns in extra div the layout becomes broken. Why is that? Link to codepen http://codepen.io/mariuszdaniel/pen/aJJjzJ Works <div class="container"> <div class="row"> <div class="col-4"></div> <div class="col-8"></div> </div> </div> Not working <div class="container"> <div class="row"> <div class="myclass"> <div class="col-4"></div> <div class="col-8"></div> </div> </div> </div> It's happening because col-* must be placed directly inside row . Read the Bootstrap docs .. "Content should be placed within columns, and only columns may be immediate children

Centering the navbar content in Bootstrap 4 (alpha 5)

蹲街弑〆低调 提交于 2019-11-26 17:25:38
问题 I am trying to center the navbar content in Bootstrap 4, alpha 5. I have been googling a bit, and I guess there might be some trick involving d-block and mx-auto . However I cannot find out how to center the navigation links so that they are total in center, not just adding a container around them. Sample navbar code I am playing with:. <nav class="navbar navbar-light bg-faded"> <ul class="nav navbar-nav"> <li class="nav-item active"> <a class="nav-link" href="#">Home <span class="sr-only">

Bootstrap 4 navbar color

99封情书 提交于 2019-11-26 16:18:38
In Bootstrap 4, how do I go about changing the background color of a navbar? The code from twbscolor doesn't work. I want to make the background color a different color and the font color white. <nav class="navbar navbar-toggleable-md navbar-light bg-danger"> <button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span> </button> <a class="navbar-brand" href="#">Jordan Baron</a> <div class=

Bootstrap 4 Multiple fixed-top navbars

佐手、 提交于 2019-11-26 16:16:16
问题 Is it possible to have multiple fixed-top navbars in Bootstrap 4 showing under each other? The 1 currently overlays the other which is not what I want. 回答1: Yes, it's possible but you have to position the 2nd one accordingly. The height of the Navbar is ~56px. .fixed-top-2 { margin-top: 56px; } body { padding-top: 105px; } <nav class="navbar navbar-toggleable-sm bg-faded navbar-light fixed-top fixed-top-2"> <button class="navbar-toggler navbar-toggler-right" type="button" data-toggle=

Disable responsive navbar in bootstrap 4

 ̄綄美尐妖づ 提交于 2019-11-26 15:28:45
is there a way to disable the responsive navBar in bootstrap 4? I don't want the dropdown as in the mobile version it's still possible to see the 2 links next to the brand. As a plus, I'd like to know if it's possible to put the links to the right in the bar. Pull-xs-right doesn't seem to work correctly. My current code looks like this: <nav class="navbar navbar-fixed-top navbar-toggleable-sm navbar-light bg-faded"> <a href="/" class="navbar-brand">PIM</a> <ul class="nav navbar-nav pull-xs-right"> <li class="nav-item"><Link class="nav-link" to="/login">Login</Link></li> <li class="nav-item">

Why are some of my CSS rules not working?

烈酒焚心 提交于 2019-11-26 12:33:54
问题 I have a nested flexbox layout (using bootstrap v4) which changes orientation according to landscape / portrait mode. A first level div (which is placed by flexbox using the order property), #no , holds 5 icons which serve as buttons. The order property doesn\'t work as I expect on these icons. If I don\'t use an order property, the icons are laid out in the natural order; however, if I try to use the order property to lay them out, it doesn\'t work. In the code, the info-div ( order:3 )