twitter-bootstrap-4

Align the form to the center in Bootstrap 4

纵饮孤独 提交于 2019-11-27 12:42:07
I am trying to align the form to the center and keep it responsive. I have tried several ways but no success. I am trying to center all the text and the form. I am using Bootstrap v4. I am not sure if that helps. HTML: <section id="cover"> <div id="cover-caption"> <div id="container"> <div class="col-sm-10 col-sm offset-1"> <h1 class="display-3">Welcome to Bootstrap 4</h1> <div class="info-form"> <form action="" class="form-inline"> <div class="form-group"> <label class="sr-only">Name</label> <input type="text" class="form-control" placeholder="Jane Doe"> </div> <div class="form-group"> <label

What is class=“mb-0” in Bootstrap 4?

て烟熏妆下的殇ゞ 提交于 2019-11-27 10:27:02
The latest documention has: <p class="mb-0">Lorem ipsum</p> Q: What is mb-0? Akash Preet Bootstrap has a wide range of responsive margin and padding utility classes. They work for all breakpoints: xs (<=576px), sm (>=576px), md (>=768px), lg (>=992px) or xl (>=1200px)) The classes are used in the format: {property}{sides}-{size} for xs & {property}{sides}-{breakpoint}-{size} for sm, md, lg, and xl. m - sets margin p - sets padding t - sets margin-top or padding-top b - sets margin-bottom or padding-bottom l - sets margin-left or padding-left r - sets margin-right or padding-right x - sets both

Center Navbar links without brand pushing it to the right in Bootstrap 4?

拜拜、爱过 提交于 2019-11-27 09:43:46
I am trying to center my navbar links but when i do my brand logo pushes it to the right so it is not centered. Heres my html ... <nav class="navbar navbar-toggleable-md navbar-light main-nav"> <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="index.html">Brand Name</a> <div class="collapse navbar-collapse" id="navbarSupportedContent"> <ul class=

Bootstrap 4 - I don't want columns to have the same height

百般思念 提交于 2019-11-27 09:32:34
In this bootstrap 4 example the 2 columns have the same height. I do not want this. Is there a quick fix for this ? <div class="col-lg-3 card bg-faded"> <h1><small>Some favorites</small></h1> <ul> <li>Celery root</li> <li>Spaghetti Squash</li> <li>Killer Mushrooms</li> </ul> </div> <div class="col-lg-9"> <h1>Wild & Wicky Vegetables</h1> <p>Kale c.....t.</p> </div> </div><!--row--> Yes, you can use d-block on the row, and float-left on the columns to make it work the Bootstrap 3.x way with floated columns instead of flexbox.. <div class="row d-block"> <div class="col-lg-3 float-left"> .. </div>

Bootstrap 4 - Responsive cards in card-columns

╄→гoц情女王★ 提交于 2019-11-27 06:57:39
I'm playing with Bootstrap 4 and I can't find a solution to add responsiveness to cards while in a div with class="card-columns" (this class applies a Masonry-like effect to the cards inside the div having this class). In Bootstrap 3 it was easy to style and make "cards" responsive since it was possible to apply something like class="col-md-3 col-sm-6 col-xs-12" to a div containing thumbnail , caption , etc. How to have the same effect while using cards in Bootstrap 4? Here is the HTML: <body> <div class="container-fluid"> <div class="row"> <div class="col-md-4 hidden-sm-down" id="map

bootstrap 4 responsive utilities visible / hidden xs sm lg not working

做~自己de王妃 提交于 2019-11-27 06:02:09
Having an issue with the new responsive utilities hidden / visible classes , when migrating to Bootstrap 4 . I am aware that .hidden- classes have been removed from v3 and replaced with .hidden-*-up .hidden-*-down . Using the new .hidden-*-up.hidden-*-down classes but the elements aren't changing to visible/hidden. Can't figure out why. <div class="col hidden-xs-down"> <span class="vcard"> … </span> </div> <div class="col hidden-lg-down"> <div class="hidden-sm-down"> … </div> <div class="hidden-xs-down"> … </div> </div> * nothing is hidden in this example, regardless of screen size (Safari,

Bootstrap 4 order Masonry-like column cards horizontal instead of vertical

故事扮演 提交于 2019-11-27 05:15:48
Is it possible to order Bootstrap 4 Cards from left to right when wrapped in .card-columns ? Top to bottom (default): 1 3 5 2 4 6 Left to right: 1 2 3 4 5 6 Because of the varying height it is necessary for me to use an Masonry-like grid. The order of the CSS columns is top to bottom, then left to right so the order of the rendered columns will be.. 1 3 5 2 4 6 There is no way to change the order of CSS columns. It's suggested you use another solution like Masonry. https://github.com/twbs/bootstrap/issues/17882 Also, enabling flexbox won't help because Bootstrap card-deck uses CSS columns (not

How to left column fixed and right scrollable in Bootstrap 4, responsive?

独自空忆成欢 提交于 2019-11-27 04:55:45
I'm using Angular 4, Bootstrap 4 and trying to implement a fixed scrollable right div and a fixed left div. It should very similar to what Trulia has. Bootstrap dropped the Affix jQuery plugin in version 4 so this method is not valid anymore, they recommend to use position: sticky, but I cant get it to work. Please help! index.html <div class="container-fluid"> <div class="row h-100"> <div class="col-md-6"> <div id="left-container"> <div class="search-property"> <input type="text"> </div> </div> </div> <div class="col-md-6"> <div id="right-container"> <app-home-right></app-home-right> </div> <

Bootstrap 4 responsive navbar vertical

我的梦境 提交于 2019-11-27 04:07:13
问题 I am using Bootstrap 4 and have navigation with horizontal items on my page. On small devices this menu collapses and menu items are still in horizontal line. What should I do to change it to vertical so items are one per each line? 回答1: For Bootstrap 4, the breakpoints have changed. You should override the navbar CSS like this if you want it to be vertical on small screens: @media(max-width: 544px) { .navbar .navbar-nav>.nav-item { float: none; margin-left: .1rem; } .navbar .navbar-nav {

Bootstrap 4 carousel not responsive images

旧时模样 提交于 2019-11-27 02:22:25
问题 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. 回答1: 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 回答2: For me that workaround did not work for both, desktops