102,726 questions
1
vote
1
answer
104
views
bootstrap 5 Equal Height Columns
I want to set two columns to be equal. This means the menu column should be the same height as the main column, which changes depending on the browser window size. Below the image is a typed.js script ...
1
vote
0
answers
32
views
boostrap 5.3 overriding color schemes in dark mode
I am trying to override my color theme in dark mode I have an app.scss with
$enable-css-variables: true; // enable variable mode
$theme-colors: ( "primary" : #1037C4 , "secondary&...
0
votes
1
answer
169
views
bootstrap 5 img fluid not resize image [closed]
I have a problem with image, when I add class img-fluid to img, image not resize when I change browser size. I have checked bootstrap 3 with img-responsive and this is the same. I have checked styles (...
1
vote
3
answers
80
views
Hover Dropdown Menu stuck inside Navigation Bar
I am relearning HTML and want to create a navigation bar with a dropdown menu which appears when the cursor hovers over the "Works" button. With my current code, only the top of the dropdown ...
-1
votes
1
answer
82
views
Focus on cancel button
I've upgraded from Bootstrap 4 to 5 and now when Sweetalert2 confirmation is opened at a modal, focus remains on modal at its "close" button.
But when I open Sweetalert2 directly from the ...
1
vote
0
answers
57
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
73
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
70
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, ...
-1
votes
1
answer
80
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
281
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 ...
-1
votes
1
answer
45
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
60
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-...
-1
votes
1
answer
60
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
125
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
209
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
198
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
118
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
164
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
114
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
124
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
180
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
124
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
118
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
105
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
111
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
53
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
122
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
64
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
187
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
60
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
156
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
143
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
1
answer
55
views
Update the CSS to place one Bootstrap icon on each side of the text “EastPDF™ Password Manager.”
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
112
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
73
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
74
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
117
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
353
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
79
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, ...
1
vote
1
answer
59
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
55
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
55
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
53
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
225
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
60
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
100
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
88
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
326
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
129
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
2
answers
463
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 (...