twitter-bootstrap-4

Bootstrap 4, how to make a col have a height of 100%?

£可爱£侵袭症+ 提交于 2019-11-30 11:01:51
问题 how can I make a column take up 100% height of the browser w bootstrap 4? See the following: https://codepen.io/johnpickly/pen/dRqxjV Note the yellow div, I need this div/column to take up a height of 100%... Is there way to make this happen without having to make all parent div's have a height of 100%? Thank you html: <div class="container-fluid"> <div class="row justify-content-center"> <div class="col-4 hidden-md-down" id="yellow"> XXXX </div> <div class="col-10 col-sm-10 col-md-10 col-lg

How to center navbar in Bootstrap 4 using Flexbox

梦想的初衷 提交于 2019-11-30 10:19:17
Well, I want to achieve this thing: https://i.imgur.com/BDM7JvD.jpg using the Bootstrap 4 Navbar. How can I centralize the nav-links/items in the middle of the viewport using the flexbox or mr-auto etc utilities. I am trying to avoid a CSS based positioning approach because it may look off on different devices. But sure if a CSS approach promises to be at the same centralized position then why not! NOTE: some ppl might say to use the justify utilities, the prom is you cant use them as the navbar-brand and the navbar-nav cant be wrapped inside a div. If I do so, the layout messes up. nav class=

Bootstrap 4 align elements right inside a col div

牧云@^-^@ 提交于 2019-11-30 08:27:40
问题 My question is pretty simple but I don't find a proper way (I mean not use absolute positionning of sub elements inside a relative position container) to achieve this in Bootstrap 4. I have a row with a col-8 and a col-4. My content in col-4 must be right aligned so its content is at the right border. <h1 class="col-md-8">Applications portfolio</h1> <div class="btn-group col-md-4" role="group"> <p class="float-right"> <a class="btn btn-secondary btn-md" href="#"> <i class="fa fa-plus" aria

Bootstrap 4 Holy Grail Layout

前提是你 提交于 2019-11-30 07:35:27
I must be missing something obvious. Am trying to implement a derivative of the Holy Grail layout in Bootstrap 4. Instead of Header-->Left Column, Fluid Center, Right Column--> Footer, I wish to have my header and footer inside the Fluid Center Column. Obviously, with the header at the top, the footer at the bottom and fluid content in the center. And all columns the same height. ----------------------------------------------------- | | Header | | | |---------------------------| | | LEFT | | RIGHT | | PANEL | MAIN CONTENT | PANEL | | | | | | | | | | |---------------------------| | | | Footer |

Re-color Tooltip in Bootstrap 4

微笑、不失礼 提交于 2019-11-30 06:48:31
I'm trying to re-skin/re-format a tooltip in Bootstrap 4, and the original way of doing it doesn't seem to work anymore. Currently I am doing this: .tooltip-inner { background: #7abcff; background: -webkit-linear-gradient(top, #7abcff 0%,#60abf8 44%,#4096ee 100%); background: -moz-linear-gradient(top, #7abcff 0%,#60abf8 44%,#4096ee 100%); background: linear-gradient(to bottom, #7abcff 0%,#60abf8 44%,#4096ee 100%); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#7abcff', endColorstr='#4096ee',GradientType=0 ); color: #fff; font-family: 'Roboto', Arial, sans-serif; } .tooltip

Horizontally scrollable list of cards in Bootstrap

被刻印的时光 ゝ 提交于 2019-11-30 03:44:59
I am trying to create a horizontal list of cards where 3 cards are shown at a time and the other ones are horizontally scrollable, like this: This can be done with CSS pretty easily, but I want to do this using Bootstrap. Bootstrap 4 ships with cards as popularized by material design and they are as easy to use as anything else in Bootstrap. For this example instead of cards it could also be regular div s. The thing I am struggling with is creating a scrollable container of X cards (or divs) where 3 of them are shown at a time and the others overflow to the right and are scrollable. I am not

Equal height of columns in Bootstrap 4

偶尔善良 提交于 2019-11-30 03:29:32
问题 I have a little non-conventional DIV in this design as shown below. I could use a height and do it but I want it to change dynamically: For instance, if the DIV has more content and the height changes in one of the block on the right, the left DIV auto adjust it's height as well. I wonder if flex could help. Here's how it should change to: I have this HTML so far: <div class="container"> <div class="row row-eq-height"> <div class="col-sm-8 col-8"> <div class="black"> <p>Bar Graph or Line

Cards with different sizes in Bootstrap 4 card-group

爱⌒轻易说出口 提交于 2019-11-30 03:01:24
问题 Is it possible to mix card of different sizes within a card-group in Bootstrap 4. I want to have a large card (double width) on the left size, and two smaller cards on the right, with the same height of all three. <div class="container"> <div class="row"> <div class="card-group"> <div class="card col-md-6"> <div class="card-block"> <h4 class="card-title">Card 1</h4> <p class="card-text">Text 1</p> </div> </div> <div class="card col-md-3"> <div class="card-block"> <h4 class="card-title">Card 2

Justify buttons with Bootstrap v4

和自甴很熟 提交于 2019-11-30 01:26:37
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> For anyone finding this after Bootstrap 4 Beta was released... <div class="btn-group d-flex" role="group"> <a href="" class="btn btn-secondary w-100">Previous</a> <a href="" class="btn

Why is there no vertical space between Bootstrap 4 rows

邮差的信 提交于 2019-11-30 00:36:50
问题 I am trying to migrate from Bootstrap 3 to Bootstrap 4. Bootstrap 3 had vertical space between rows by default, but this is not the case in Bootstrap 4. Can someone please explain why? Or am I missing something in my HTML? <div class="container-fluid"> <div class="row"> <div class="col-9"> <div class="row"> <div class="col"> <div class="card"> <div class="card-header"> Card01 </div> <div class="card-body"> Card01 </div> </div> </div> </div> <div class="row"> <div class="col"> <div class="card