twitter-bootstrap-4

v4 bootstrap full height sidebar

风格不统一 提交于 2019-12-01 16:14:16
问题 I using the latest version of bootstrap and my siderbar is too short and not full height. You can view it from here: http://srv.sniperjum.com/sh1omi/bootstrap-dev/ CSS: http://srv.sniperjum.com/sh1omi/bootstrap-dev/css/style.css This problem is from my CSS or is it a problem from the bootstrap? and how can I fix it? CSS li.active{ background-color: #428bca; } li { padding-bottom: 5px; padding-top: 5px; } .sidebar{ background-color: #f5f5f5; padding-right: 20px; padding-top: 20px; } /* Sidebar

How to position navbar contents in Bootstrap 4

匆匆过客 提交于 2019-12-01 10:36:19
问题 I am learning bootstrap 4 navbar but i was not able to understand clearly how to position objects in navbar i want a search box to be placed at the center of navbar and a button on right but i was only able to do it navbar is not getting aligned at center. <div class="collapse navbar-collapse text-xs-center" id="mynavbar"> <div class="col-lg-4 form-inline navbar-form"> <div class="input-group"> <form class="form-inline my-lg-0"> <input class="form-control " type="text" placeholder="Search">

What's the meaning of ml in bootstrap 4?

好久不见. 提交于 2019-12-01 07:38:58
Hi I'm using bootstrap4 beta. I noticed that it uses the classes; ml-auto or mr-auto, instead of pull-right and pull-left. I can guess l is left and r is right. What's the meaning of m beside l and r? Is it margin? It's short for: margin-left So ml-auto means margin-left: auto which aligns an element to the right. 来源: https://stackoverflow.com/questions/46160931/whats-the-meaning-of-ml-in-bootstrap-4

Bootstrap 4 center navbar brand with collapse

纵饮孤独 提交于 2019-12-01 06:20:45
Bootstrap 4 Alpha 6 I cant seem to figure out how to get both the right links and left link to both collapse. Right now only the right hand side link collapses. <nav id="topNav" class="navbar fixed-top navbar-toggleable-sm navbar-inverse bg-inverse"> <button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target=".navbar-collapse"> Menu </button> <div class="navbar-collapse collapse"> <ul class="nav navbar-nav"> <li class="nav-item"> <a class="nav-link" href="#">Link</a> </li> <li class="nav-item"> <a class="nav-link" href="#">Link</a> </li> <li class="nav

Angular UI modal with Bootstrap 4

霸气de小男生 提交于 2019-12-01 03:21:45
Bootstrap 3 modal works fine: https://jsfiddle.net/qLy7gk3f/4/ But Bootstrap 4 modal doesn't: https://jsfiddle.net/qLy7gk3f/3/ The code is identical: $scope.click = function() { $uibModal.open({ templateUrl: "modal.html", controller: "modal", scope: $scope }); } How can I get AngularUI modals to work with Bootstrap 4? I think it's just a case of adding the .in classes, specifically: .fade.in { opacity: 1; } .modal.in .modal-dialog { -webkit-transform: translate(0, 0); -o-transform: translate(0, 0); transform: translate(0, 0); } .modal-backdrop.in { filter: alpha(opacity=50); opacity: .5; }

How to vertically center a text in a column (bootstrap 4)?

一笑奈何 提交于 2019-11-30 22:22:30
问题 How to vertically center a text in a column (bootstrap 4)? The structure is basic, see: <div class="row"> <div class="col-md-6"> <span>Text to center</span> </div </div> Ty guys! 回答1: You can add the my-auto class to the parent <div class="col-md-6"> to achieve this. This class sets automatic margins on the y-axis, see the link above for more details. It would look like this: <link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" rel="stylesheet"/> <div

Equal height of columns in Bootstrap 4

让人想犯罪 __ 提交于 2019-11-30 19:55:14
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 Graph</p> </div> </div> <div class="col-sm-4 col-4"> <div class="red"> <p>numbers</p> </div> <div class=

Cards with different sizes in Bootstrap 4 card-group

≡放荡痞女 提交于 2019-11-30 18:11:27
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</h4> <p class="card-text">Text 2</p> <p class="card-text">More text 2</p> <p class="card-text">More

Bootstrap 4 multiple fixed Navbars with animated shrink

怎甘沉沦 提交于 2019-11-30 17:53:15
问题 I have two Navbars with fixed-top classes displayed one below the other - second one having top: *height of first navbar* css added to it. Whenever user scrolls down, the height of the first navbar shrinks by removing extra pt pb bootstrap padding classes using modified code from this question's answer. Since both Navbars are fixed, when the shrinkage of the first one occurs, there is a gap produced between the two navbars. My solution to this was very drastic - I used javascript-detect

How to remove the arrow in dropdown in Bootstrap 4?

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-30 11:10:56
问题 I am using Bootstrap 4. I tried to remove the arrow in dropdown. The answers I found for Bootstrap 3 do not work any more. The jsfiddle is here. <div class="dropdown open"> <button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> Dropdown </button> <div class="dropdown-menu" aria-labelledby="dropdownMenu1"> <a class="dropdown-item" href="#">Action</a> <a class="dropdown-item" href="#">Another action<