bootstrap-4

Fixed and scrollable column in Bootstrap 4 flexbox

醉酒当歌 提交于 2019-12-18 09:33:47
问题 Have spent quite a few hours trying to figure this one out, and it seems like it should be so simple. The webpage is a bit more complex, but the issue boils down to this. I am trying to create a flex box to the left that should contain the menu, then a "content" one to the right, I want the left one to stay still, and right one to scroll up and down. However, currently I can just get it to scroll vertically. So took the following steps Created the "view" box <div class="container-fluid"> <div

bootstrap 4 row height set by specific col - not highest one

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-18 09:27:47
问题 I have a row with two cols. The first col contains some stuff that has to be visible: it shall not overflow the row nor scroll. The second row contains a long list that I want to scroll through, so it doesn't overflow the row : The responsive design with the overflow problem: <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet" type="text/css" /> <script src="https://stackpath.bootstrapcdn.com/bttostrap/4.1.3/js/bootstrap.min.js" type="text/js

Bootstrap 4 - Stack 2 columns with 1 large column on the right

僤鯓⒐⒋嵵緔 提交于 2019-12-18 09:13:20
问题 I'm trying to use bootstrap 4 and perhaps flexbox to achieve the following: Small screen: | | | | 1 | 2 | | | | |______________________________| | | | | | 3 | | | Large screen: | | | | 1 | | | | | |_________________| 2 | | | | | | | | 3 | | | | | What I have so far: https://jsfiddle.net/aq9Laaew/180926/ I've tried to play around with order-* and align-self-stretch but they don't give the desired result. (I'm looking for something like rowspan) Extra details that might be important: The height

Bootstrap 4 right Column on top on mobile view

混江龙づ霸主 提交于 2019-12-18 08:26:39
问题 I have a Bootstrap 4 Page like this: <div class="row"> <div class="col-md-8"> A </div> <div class="col-md-4"> B </div> </div> Looks like: ----- |A|B| ----- So if I look at it on a mobile Device, the Column A is on top, but I want the B on top. Is this possible? I tried it with push an pull, but it didn't work Because I'm using Bootstrap 4. 回答1: With Bootstrap 4 you can use the following classes. order-first, order-last and order-0 - order-12 on your element. Have a look here: Column ordering

bootstrap 4 navbar to navigate tabs

血红的双手。 提交于 2019-12-18 07:03:21
问题 In bootstrap 4 I am attempting to use a fixed bottom navbar that when the links are clicked the content that's used is from 4 tabs. Back in the early days of bootstrap what I had worked but trying to get it to work with 4 is not working for me. Can someone point me in the right direction on what I am missing here please? <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="description"

Bootstrap grid breaks in smallest size

时光怂恿深爱的人放手 提交于 2019-12-18 06:53:36
问题 Using this code: <link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet"/> <div class="container"> <div class="row"> <label class="col-2 col-form-label">Email</label> <div class="col-8"> <input type="text" class="form-control"> </div> <div class="col-2"> text </div> </div> </div> If you resize the window to the smallest size, the grid breaks. Here is the Bootply link. Just open the preview and resize your window to the smallest size, and the grid

Bootstrap grid breaks in smallest size

丶灬走出姿态 提交于 2019-12-18 06:53:30
问题 Using this code: <link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet"/> <div class="container"> <div class="row"> <label class="col-2 col-form-label">Email</label> <div class="col-8"> <input type="text" class="form-control"> </div> <div class="col-2"> text </div> </div> </div> If you resize the window to the smallest size, the grid breaks. Here is the Bootply link. Just open the preview and resize your window to the smallest size, and the grid

Angular: Bootstrap 4 dark & light mode switch

半世苍凉 提交于 2019-12-18 06:44:52
问题 What is the best way to implement a dark mode and light mode throughout my bootstrap 4 (scss) angular application? Angular cli compiles the scss files, so the old way of including a separate css file for each theme does not appeal to me. How?? Set a body class and use .dark / .light throughout my scss files? Use mixins? Use bootstrap color themes? Any ideas are welcome! 回答1: Don't know if this was the best way, but this is what i did. I used [ngClass]="setPrimary() on the top most component

Angular: Bootstrap 4 dark & light mode switch

本小妞迷上赌 提交于 2019-12-18 06:44:29
问题 What is the best way to implement a dark mode and light mode throughout my bootstrap 4 (scss) angular application? Angular cli compiles the scss files, so the old way of including a separate css file for each theme does not appeal to me. How?? Set a body class and use .dark / .light throughout my scss files? Use mixins? Use bootstrap color themes? Any ideas are welcome! 回答1: Don't know if this was the best way, but this is what i did. I used [ngClass]="setPrimary() on the top most component

Bootstrap dropdown with Angular 6

杀马特。学长 韩版系。学妹 提交于 2019-12-18 05:14:09
问题 I'm trying to create a dropdown item in a Bootstrap navbar using Angular 6. My code is working when I test it online : <nav class="navbar bg-light navbar-light navbar-expand"> <ul class="navbar-nav"> <li class="nav-item dropdown" > <a class="nav-link dropdown-toggle" data-toggle="dropdown">Page1</a> <div class="dropdown-menu"> <a class="dropdown-item" href="#">Page1.1</a> </div> </li> <li><a class="nav-link" href="#">Page2</a></li> </ul> </nav> But the dropdown does not work with Angular 6. I