bootstrap-4

Re-positioning items on navbar collapse in Bootstrap

社会主义新天地 提交于 2019-12-24 10:34:27
问题 I am working on a navbar for a webpage. I was able to make a navbar with data aligned left and right, and Brand in center. However, when the navbar collapses, the alignment of the items becomes Left (over) Brand (over) Right . I want the Brand to stay up at top and other items to collapse. Here is my code: <html> <head> <script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script> <script src="https:

bootstrap modal not properly popped out

久未见 提交于 2019-12-24 09:19:15
问题 I'm trying to display a modal on ruby on rails. I set a view button so whenever it clicked, the modal will pop out. But it didn't worked properly. As you can see on the image the modal shouldn't be darken. Because of this, I cannot click anything on it. Here's my code: index.html.erb <tbody> <% @quotations.each do |quotation| %> <tr> <td><%= quotation.customer.name %></td> <td><%= quotation.build_quotation_number %></td> <td><%= quotation.reference_no %></td> <td align="center"><%= quotation

How do I install bootstrap 4 template to Ember web project?

北城余情 提交于 2019-12-24 08:59:20
问题 This is a continuation of another post I have posted: click here I have downloaded the INSPINIA admin theme, which is based off twitter bootstrap. It contains pre-created projects for most web-ui frameworks, except Ember. Steps taken so far: Installed ember-boostrap Installed SASS pre-processor Copied the *.scss files into the app\styles folder The app.scss file looks as follows: app\styles\app.scss @import "ember-bootstrap/bootstrap"; @import "style"; The Ember-Cli-Build.js file is as

Bootstrap 4 - Remove active class on nav-link

人盡茶涼 提交于 2019-12-24 07:51:03
问题 I'm creating a Bootstrap 4 navbar with the nav-item that have the active class. My problem is when I use the active class I can't remove it from the nav-item How can I remove the active class on the nav-item ? This my HTML: <nav class="navbar navbar-expand-lg navbar-light"> <div class="container-fluid"> <a class="navbar-brand" href="#"> <small>LOGO BRAND</small> </a> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarCollapse" aria-controls="navbarCollapse

Bootstrap 4 horizontal scroller div

江枫思渺然 提交于 2019-12-24 07:49:25
问题 I got this working for Bootstrap 3 but the same code won't work in Bootstrap 4. Basically, I'm trying to create a horizontal scroll for DIV and here's a working JSFIDDLE for Bootstrap 3 (which I don't want): DEMO The same code for Bootstrap 4 isn't working though! Here's the JSFiddle for Bootstrap 4: https://jsfiddle.net/6kvw2q5h/ HTML <div class="live__scroll"> <div class="row text-center"> <div class="col-8 live__scroll--box">1</div> <div class="col-8 live__scroll--box">1</div> <div class=

Overflow: scroll not working in a specific column grid with Bootstrap 4

随声附和 提交于 2019-12-24 07:47:41
问题 I have 3 columns in my main tag ( <main role="main" class="container"> ). The first column has a table with many rows. I want that column to be vertically scrollable while staying stretched between the header and the footer. I added in my css : #please-scroll{ height: calc(100% - 110px); overflow-y: scroll } But it doesn't work. Here is my code : html { height: 100%; font-family: sans-serif; background: #1F1F1F !important; } body { font-family: sans-serif; background-color: #1F1F1F; height:

Bootstrap dropdown cut off behined scrollable container

本小妞迷上赌 提交于 2019-12-24 07:15:42
问题 I am facing an Issue with Bootstrap Drop Down. My dropdown is inside a scrollable div with fix height. When I click on the dropdown, menu appears behind the scroll content. While normal select works perfectly fine. Here is the Fiddle which demonstrates the issue I am facing. I tried by applying position: fixed to .dropdown-menu class but that is also not working. Is there any work around without using JQuery ? 回答1: As the drop-down has CSS position: absolute and it is under a container which

Bootstrap 4 Flexbox with Fixed and Flexible Width Columns

…衆ロ難τιáo~ 提交于 2019-12-24 07:10:00
问题 Using Bootstrap 4 and Flexbox, how would you accomplish a 2 column layout with a fixed-width left column and a flexible right column? I don't see anything in the docs about how to achieve this... I could do it easily enough using vanilla CSS, but I feel like I should use Bootstrap since I'm already pulling it in. 回答1: Is this what you are looking for: HTML CODE---->> <div class="main-container"> <div class="left"> Lorem Ipsum is simply dummy text of the printing and typesetting industry.

Cannot get centered logo to reposition to the right on collapse

浪子不回头ぞ 提交于 2019-12-24 07:07:08
问题 I am having trouble getting the logo to stay in the top right side of the navbar on collapse. See images for issue. Collapsed content Navbar before collapse Code for review: <nav class="navbar navbar-expand-md fixed-top navbar-light blue-grey lighten-5 mx-auto"> <div class="container"> <!-- Collapse Button --> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#mobileNav" aria-controls="mobileNav" aria-expanded="false" aria-label="Toggle navigation"> <span class=

Bootstrap 4 navbar is not working with angular 5

ε祈祈猫儿з 提交于 2019-12-24 06:23:08
问题 Hi, I am trying to add bootstrap with angular project and the styling is not reflecting in the browser. The details are as below. Versions: Angular CLI: 1.7.3 Node: 9.7.1 OS: win32 x64 Angular: 5.2.8 installed bootstrap and jquery using angular cli "bootstrap": "^4.0.0" "jquery": "^3.3.1" in .angular-cli.json added as below "styles": [ "styles.css", "../node_modules/bootstrap/dist/css/bootstrap.min.css" ], "scripts": [ "../node_modules/jquery/dist/jquery.min.js", "../node_modules/bootstrap