twitter-bootstrap-4

Animate/Shrink NavBar on scroll using Bootstrap 4

为君一笑 提交于 2019-11-26 12:28:10
I've searched a whole heap for this but cant seem to find a working solution. Basically I've got my NavBar perfectly how I want it. I now want to shrink the NavBar when my page scrolls down to make it more slim using a nice smooth transition (animation). This is my HTML markup for my current NavBar: <header> <nav class="navbar fixed-top navbar-toggleable-md navbar-inverse bg-inverse"> <button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle

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

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-26 11:35:00
问题 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=\

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

佐手、 提交于 2019-11-26 11:15:20
问题 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\

Bootstrap 4 - Responsive cards in card-columns

∥☆過路亽.° 提交于 2019-11-26 10:30:47
问题 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

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

﹥>﹥吖頭↗ 提交于 2019-11-26 10:09:19
问题 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

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

大兔子大兔子 提交于 2019-11-26 10:09:03
问题 The latest documention has: <p class=\"mb-0\">Lorem ipsum</p> Q: What is mb-0? 回答1: 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

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

回眸只為那壹抹淺笑 提交于 2019-11-26 08:14:14
问题 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

Wrapping bootstrap columns in extra div

北城余情 提交于 2019-11-26 07:50:04
问题 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> 回答1: It's happening because col-* must be placed

`col-xs-*` not working in Bootstrap 4

前提是你 提交于 2019-11-26 04:07:58
I have not encountered this before, and I am having a very hard time trying to find the solution. When having a column equal to medium in bootstrap like so: <h1 class="text-center">Hello, world!</h1> <div class="container"> <div class="row"> <div class="col-md-12 text-center"> <h1>vicki williams</h1> </div> </div> </div> The text-align works fine: But when making the column equal to extra small like so: <div class="container"> <div class="row"> <div class="col-xs-12 text-center"> <h1>vicki williams</h1> </div> </div> </div> Then the text-align no longer works: Is there some bootstrap concept

Animate/Shrink NavBar on scroll using Bootstrap 4

送分小仙女□ 提交于 2019-11-26 03:59:03
问题 I\'ve searched a whole heap for this but cant seem to find a working solution. Basically I\'ve got my NavBar perfectly how I want it. I now want to shrink the NavBar when my page scrolls down to make it more slim using a nice smooth transition (animation). This is my HTML markup for my current NavBar: <header> <nav class=\"navbar fixed-top navbar-toggleable-md navbar-inverse bg-inverse\"> <button class=\"navbar-toggler navbar-toggler-right\" type=\"button\" data-toggle=\"collapse\" data