102,798 questions
0
votes
0
answers
43
views
Bootstrap 3 navbar dropdown element not triggering modal form
Java 1.8, JSP, Bootstrap 3.4.1
this snippet of index.jsp works fine - tabs appear, tabs3 is displayed as default, and clicking on different tabs display the correct stuff for the selected tab
<nav&...
0
votes
0
answers
38
views
ASP.NET QuickGrid: Style clash between QuickGrid default theme and bootstrap table
Repro:
Create the default Visual Studio Blazor Server Template with sample pages.
Add a nuget reference to Microsoft.AspNetCore.Components.QuickGrid (10.0.0)
Replace the weather page with a similar ...
0
votes
1
answer
55
views
ASP.NET Controls Don't Span Bootstrap Columns
I am using Bootstrap 3.5 with ASP.NET controls (Visual Studio 2022). I have an ASP.NET:TextBox in a Bootstrap column. While an HTML input tag spreads across the entire Bootstrap column, left to right, ...
0
votes
1
answer
68
views
applying horizontal scrolling to navbar without vertical scrolling
i want to apply only horizontal scrolling to the nav but not vertical so i use bootstrap class overflow-x-scroll, however it still applies vertical scrolling when i open the language dropdown :
...
1
vote
1
answer
191
views
How to open and close the Bootstrap 5.3 navbar burger menu on mouseover via CSS?
For days, I've been trying to configure the opening and closing of my navbar created with Bootstrap 5.3, when it is reduced to a burger menu, via hover rather than click.
I've managed to do this in ...
0
votes
1
answer
40
views
transition on bootstrap column width is sluggish
i want to apply transition on bootstrap columns width when open state changes, the transition works but it's sluggish, it's not smooth at all
layout.js
"use client";
import { useState } from ...
2
votes
1
answer
50
views
Is there a way to reproduce the behavior of align-items: baseline in Firefox as in Chrome?
There is a flex container (display: flex) with align-items: baseline. Inside, there is a text element (label) and input, which renders .invalid-feedback during validation.
Before the error (.invalid-...
0
votes
1
answer
52
views
give space between columns
i dont know how to give spaces between columns, i tried to use gx-* but it doesnt work and it causes horizontal scroll which make it even worse, gap-* works but it misses with the layout and causes ...
-1
votes
1
answer
113
views
How to apply border-radius with border-image (gradient border) on a button placed over a gradient/video background [duplicate]
.cta-btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0 32px;
height: 54px;
font: normal normal 600 16px/21px "Inter", sans-serif;
letter-spacing: 0;
...
2
votes
2
answers
207
views
How to position a div on the bottom of the img
I am trying to position a title bar which is in <div> on top of the <img>.
I've been able to position it using position: relative and position: absolute plus margins but I struggle if the ...
1
vote
1
answer
172
views
Bootstrap components stop working in Rails app when any links clicked
In my rails 8 app I followed the Bootstrap Getting Started instructions to pull in bootstrap version 5.3.7 via the link tag:
I put the following in the head tag of application.html.erb:
<link href=...
0
votes
3
answers
106
views
Table cell child item (div) not able to have the same height as the table cell
I have a table with Bootstrap 5 if that matters. The th element has a height of 195 px; this height is because some other cell in the same row has some text, if that matters. The screenshot below has ...
0
votes
1
answer
109
views
Bootstrap carousel with vertical thumbnails on the left
How can the div, containing the thumbnails be moved to the left of the carousel like it this picture?
I tried already wrapping it into a <div class="d-flex">but that messes up the ...
0
votes
0
answers
97
views
Why doesn't my modal dialogue cover the page in my Angular component?
I have an Angular web application that has a page that needs to be interrupted by a modal dialogue in some situations. However, when I press the button that does that, the modal appears at the bottom ...
0
votes
0
answers
99
views
Why do I get an undefined variable error when overriding a Bootstrap 5 variable in Sass?
We are starting a new project using Next.js and Bootstrap 5, with Sass. We are trying to create a new theme, so we created a theme.scss file:
@import '~bootstrap/scss/functions';
$primary: #005EA2;
$...
0
votes
1
answer
175
views
Sometimes the navbar works but sometimes it doesn't
I am building a website using Bootstrap 5, and I made a separate page for the top navbar which I place in the content pages using jQuery.
<!-- Nav bar -->
<div id="navbar"></...
0
votes
2
answers
91
views
How to make a div width responsive?
I have the following style:
.center-box {
align-items: center;
display: flex;
flex-direction: column;
justify-content: center;
align-content: center;
}
And the following HTML:
<...
0
votes
1
answer
108
views
Disabling Bootstrap event delegation for specific DOM elements
Environment
Bootstrap version: 5.3.3
Browser: Chrome (latest)
Framework: Vue.js 3 with Phaser 3.87.0
Problem Description
I'm developing a game using Phaser 3 within a Vue.js application that uses ...
0
votes
2
answers
100
views
Bootstrap: Help creating image grid with 15px gaps
I'm trying to get build an image layout in HTML / CSS / Bootstrap that resembles the below diagram.
The pink lines represent what should be a 15px gap between the elements.
I am halfway there with the ...
3
votes
1
answer
96
views
In Bootstrap 5.3, is it possible to change the background color to white for the last two rows of a striped table?
I'm using Bootstrap to display a striped table with the table-striped class. However, I want the last two rows to have a white background despite the row number being odd or even.
I tried these ...
1
vote
1
answer
48
views
Is bootstrap21.org related to the official Bootstrap framework?
I came across a website called https://bootstrap21.org, which appears to offer Bootstrap files and documentation similar to the official Bootstrap site (https://getbootstrap.com).
However, I couldn't ...
0
votes
0
answers
113
views
Bootstrap 5 vertical alignment of table cells does not work
I'm using Bootstrap 5 to create a responsive table. I want the content of the table cells to be vertically centered, so I applied the align-middle class to the element. However, the content still ...
1
vote
2
answers
46
views
HTML Form Won't Display in Bootstrap Popover
I'm trying to use a Bootstrap (v5.3.3) popover to display a basic search form.
Here's the HTML:
<li class="nav-item"><a id="searchLink" class="nav-link" data-bs-...
1
vote
1
answer
175
views
How can I initially hide the active dropdown-menu when a vertical Bootstrap 5 menu is collapsed?
I have converted a horizontal Bootstrap 5 navbar into a vertical sidebar.
The sidebar, when collapsed, is less then 100px wide and shows only icons.
.page {
min-height: 100vh;
}
.site-header {
...
1
vote
1
answer
55
views
Breaking points in a flex-row
If a surrounding div is a flex-row in Bootstrap 4+, and it has several child divs:
<div class="d-flex flex-row">
<div class="some-class">Item 1</div>
<div ...
1
vote
0
answers
100
views
How can I use Bootstrap to create a fixed vertical navbar with vh-100 and margins (m-3) that fits within the viewport without causing overflow?
I’m working on a fixed vertical navbar using Bootstrap and running into an issue with layout overflow. The navbar uses `vh-100` to take up the full height of the viewport and `m-3` for margins. ...
0
votes
1
answer
98
views
Vue 3: Customize Bootstrap 5 via SCSS?
I am writing a Vue 3 application, and would like to use Bootstrap 5 as the CSS framework. I'd like to be able to override some of the variables for customization. I've followed a couple tutorials I ...
0
votes
0
answers
36
views
modify existing css code to place one bootstrap icon to the left and one bootstrap icon to the right side of text 'EastPDF™ Password Manager' in html
I am looking to modify my css (code provided below) to change the placement of two bootstrap icons provided in the html code below whereby one icon is placed to the left-side of the text 'EasyPDF™ ...
1
vote
0
answers
87
views
How to style bootstrap buttons with sass variables / mixins
I want to style some bootstrap buttons.
Button styling can overwritten by basic css but I hate doing it like that with those annoying importants. I want it do it the right way with the theming ...
2
votes
0
answers
62
views
React + jQuery + Bootstrap code injection on Squarespace
I inherited a React 16 app, built with create-create-app, built and deployed to GitHub Pages with a workflow that watches the main branch. My mission is to move it from Netlify to its new homepage on ...
0
votes
0
answers
66
views
Texts have extra white margin - How to accommodate when translating PSD into HTML?
In html, there is white space above and below texts, and it is apparent when the text is big.
Can this top and bottom white space around texts be removed with CSS\html? If not, how to calculate the ...
0
votes
1
answer
99
views
Bootstrap in ASP.NET Core MVC
I am creating an ASP.NET Core MVC app. It has on default bootstrap files in the wwwroot folder. My _Layout file looks like this:
<!DOCTYPE html>
<html lang="en">
<head>
...
3
votes
2
answers
246
views
WordPress editor custom styles
Using the following code I'm trying to add some CSS to the default Gutenberg editor in Wordpress:
function editor_style() {
add_theme_support( 'editor-styles' );
add_editor_style( 'editor-...
1
vote
1
answer
75
views
Add horizontal scroll and align columns in Bootstrap table
I am trying to add a horizontal scroll bar to a Bootstrap based table. The table looks like this:
If there is large data in Remaining candidates (Ex: Wolfeschlegelsteinhausenbergerdorfflastname, ...
0
votes
0
answers
59
views
Detecting Scroll in Blazor and Reacting to Scroll Position
I am using Blazor and need to detect when the user scrolls the page... (if possiable i rather do this without JS but I dont see anyway)
for refecence I am trying to create similar menu effect: https://...
1
vote
1
answer
54
views
Toggle collapsible element visibility with select
Is there a way to toggle the visibility of elements with a select's options?
I've tried to put the data-bs-toggle/data-bs-target attributes :
directly on the option,
on an inner a,
on an inner button....
1
vote
1
answer
52
views
Ensure not all collapsible elements with same parent are hidden
I have a set of collapsible elements whose visibility is controlled via data-bs-toggle="collapse"/data-bs-target, and only one should be visible at a given time.
This behavior is achieved ...
0
votes
1
answer
53
views
css - overflow the table until reach the footer
I have this example: https://jsfiddle.net/xcugq7d1/
<div class="container-fluid pt-1 pb-1 mb-3 header-section"> Header Section </div>
<div class="container-fluid ...
0
votes
1
answer
39
views
How can I add more sizes to the $display-font-sizes list? (Bootstrap)
I want to use the bootstrap display font, but in a smaller size. I'm looking for a way to expand on the predefined sizes (1 through 6 | 5 through 2.5rem).
I tried adding to the set of values that the ...
0
votes
2
answers
203
views
How to update page content using Bootstrap
I need to update the page content when item in a Bootstrap sidebar is clicked. All examples I find are just showing how to create a responsive sidebar but ends there. E.g. following this tutorial only ...
1
vote
0
answers
58
views
Dropdown Menu of Button inside a Card cannot be clicked/hovered in Safari, but works in Firefox
Using a Bootstrap dropdown button inside of a card renders properly with Firefox. But when using Safari (on Desktop), the part of the menu that is outside of the card cannot be hovered or clicked.
The ...
0
votes
2
answers
80
views
How to stop a cycling Bootstrap 5 Carousel when Previous or Next button are clicked
I have a Bootstrap 5 Carousel, which is set to automatically cycle. While it is cycling, I want a click on the Previous or Next buttons to pause the cycling. So far, my code is not working.
The ...
0
votes
1
answer
78
views
Bootstrap 5 content function only gets called once
I have the following code that creates and initializes a number of Bootstrap popovers.
I need the text to be updated each time it is shown, so I thought being able to set content to a function would ...
2
votes
3
answers
295
views
Nextjs: Getting React type is Invalid [duplicate]
I've restarted using React 18 and react-bootstrap with Next.js, but I'm not understanding the error it is giving out to me. The error is:
React.jsx: type is invalid -- expected a string (for built-in ...
1
vote
1
answer
102
views
Passing entity model data into Bootstrap Modal
I'm trying to pass data to a modal. After searching around the internet and following bootstrap I found a couple of ways. 1) is by passing the model through data-bs-whatever="@Model", ...
0
votes
0
answers
58
views
Back-button navigation with nested tabs (using altered jquery-stickytabs)
This may be answering my own question, but I'm not sure. I'm using Bootstrap navs to have tabs on a page, with two primary tabs and several more tabs nested within one of those tabs. I want them to be ...
0
votes
2
answers
364
views
Bootstrap 5.3.x: Why does "w-100 d-block d-md-none" not work when I try to break a column to a new line?
I am trying to create a list of images and each occupies 4 columns in medium and larger screens and occupies 12 columns on smaller screens.
However, when I try to resize the screen to smaller size (...
0
votes
1
answer
46
views
How can I keep the original size of a button when an input is hidden and they are in the same block element
<div class="input-group">
<input
th:unless="${value== 3}"
class="form-control&...
2
votes
1
answer
79
views
I am trying to use the Bootstrap inverse menu used the same code but not working
I am trying to create menu with inverse i.e. with black background and white font style. I used the sample code same but its not shows the proper menu.
What I am missing here?
<!doctype html>
&...
0
votes
0
answers
31
views
Update Bootstrap 3 to Bootstrap 5 [duplicate]
We have an application that has been running well using java spring mvc. This application uses a Bootstrap template from Metronic - Responsive Admin Dashboard Template build with Twitter Bootstrap 3.3....