Bootstrap Mastery

Dominate your frontend interviews with 200+ curated questions covering the world's most popular CSS framework.

0 / 200 Completed
Grid Experts
Theme Customization

Found 200 Questions

Click "Explore Answer" to see code and details
1
What is Bootstrap?
Beginner

Bootstrap is a free, open-source front-end framework for faster and easier web development. It includes HTML and CSS-based design templates ...

In-Depth Explanation

Bootstrap is a free, open-source front-end framework for faster and easier web development. It includes HTML and CSS-based design templates for typography, forms, buttons, tables, navigation, modals, image carousels, and optional JavaScript plugins.

Category: grid
2
What are the key components of Bootstrap?
Beginner

Key components include the Grid System, Typography, Buttons, Forms, Navigation bars, Modals, Card components, and various utility classes fo...

In-Depth Explanation

Key components include the Grid System, Typography, Buttons, Forms, Navigation bars, Modals, Card components, and various utility classes for spacing and colors.

Category: grid
3
Explain the Bootstrap Grid System.
Beginner

Bootstrap's grid system uses a series of containers, rows, and columns to layout and align content. It’s built with flexbox and is fully res...

In-Depth Explanation

Bootstrap's grid system uses a series of containers, rows, and columns to layout and align content. It’s built with flexbox and is fully responsive. It is based on a 12-column layout.

Category: grid
4
What is a Container in Bootstrap?
Beginner

Containers are the most basic layout element in Bootstrap and are required when using the default grid system. They are used to contain, pad...

In-Depth Explanation

Containers are the most basic layout element in Bootstrap and are required when using the default grid system. They are used to contain, pad, and (sometimes) center the content within them.

Category: grid
5
Difference between .container and .container-fluid?
Beginner

.container provides a responsive fixed-width container, meaning its max-width changes at each breakpoint. .container-fluid provides a full-w...

In-Depth Explanation

.container provides a responsive fixed-width container, meaning its max-width changes at each breakpoint. .container-fluid provides a full-width container, spanning the entire width of the viewport.

Category: grid
6
What are the default Bootstrap breakpoints?
Beginner

In Bootstrap 5, the breakpoints are: Extra small (<576px), Small (≥576px), Medium (≥768px), Large (≥992px), Extra large (≥1200px), and Extra...

In-Depth Explanation

In Bootstrap 5, the breakpoints are: Extra small (<576px), Small (≥576px), Medium (≥768px), Large (≥992px), Extra large (≥1200px), and Extra extra large (≥1400px).

Category: grid
7
How do you create a row in Bootstrap?
Beginner

You use the .row class. Rows are wrappers for columns. Each column has horizontal padding (called a gutter) for controlling the space betwee...

In-Depth Explanation

You use the .row class. Rows are wrappers for columns. Each column has horizontal padding (called a gutter) for controlling the space between them.

Category: grid
8
How many columns are in the Bootstrap grid?
Beginner

The Bootstrap grid system allows up to 12 columns across the page. You can group these columns together to create wider columns.

In-Depth Explanation

The Bootstrap grid system allows up to 12 columns across the page. You can group these columns together to create wider columns.

Category: grid
9
What is a gutter in Bootstrap?
Beginner

Gutters are the gaps between column content, created by horizontal padding. We set padding-right and padding-left on each column, and use ne...

In-Depth Explanation

Gutters are the gaps between column content, created by horizontal padding. We set padding-right and padding-left on each column, and use negative margin on the .row to align content.

Category: grid
10
How to remove gutters in a row?
Beginner

Use the .g-0 class on the .row to remove the gutters from a row and its columns.

In-Depth Explanation

Use the .g-0 class on the .row to remove the gutters from a row and its columns.

Category: grid
11
What is an Offset column?
Beginner

Offsets are used to move columns to the right. Classes like .offset-md-4 move a .col-md-4 over by four columns.

In-Depth Explanation

Offsets are used to move columns to the right. Classes like .offset-md-4 move a .col-md-4 over by four columns.

Category: grid
12
What is Column Ordering?
Experience

You can change the visual order of columns using .order classes. For example, .order-last will move an element to the end, regardless of its...

In-Depth Explanation

You can change the visual order of columns using .order classes. For example, .order-last will move an element to the end, regardless of its position in the HTML.

Category: grid
13
How to center a column in Bootstrap?
Beginner

You can use flexbox utilities on the row (.justify-content-center) or use auto margins on the column if it's smaller than the container widt...

In-Depth Explanation

You can use flexbox utilities on the row (.justify-content-center) or use auto margins on the column if it's smaller than the container width.

Category: grid
14
What are nesting columns?
Beginner

To nest your content with the default grid, add a new .row and set of .col-sm-* columns within an existing .col-sm-* column.

In-Depth Explanation

To nest your content with the default grid, add a new .row and set of .col-sm-* columns within an existing .col-sm-* column.

Category: grid
15
What is Flexbox in Bootstrap?
Experience

Starting from version 4, Bootstrap moved to a Flexbox-based grid system. This allows for easier alignment, distribution of space, and flexib...

In-Depth Explanation

Starting from version 4, Bootstrap moved to a Flexbox-based grid system. This allows for easier alignment, distribution of space, and flexible column heights.

Category: grid
16
How to make a column take the remaining width?
Beginner

Use the .col class without a specific number. It will automatically grow to fill the available space in a row.

In-Depth Explanation

Use the .col class without a specific number. It will automatically grow to fill the available space in a row.

Category: grid
17
What is the purpose of .col-auto?
Beginner

.col-auto makes the column take only as much width as its content requires.

In-Depth Explanation

.col-auto makes the column take only as much width as its content requires.

Category: grid
18
How to align columns vertically?
Experience

Use vertical alignment utilities on the row: .align-items-start, .align-items-center, or .align-items-end.

In-Depth Explanation

Use vertical alignment utilities on the row: .align-items-start, .align-items-center, or .align-items-end.

Category: grid
19
How to align a single column vertically?
Experience

Use self-alignment utilities on the column: .align-self-start, .align-self-center, or .align-self-end.

In-Depth Explanation

Use self-alignment utilities on the column: .align-self-start, .align-self-center, or .align-self-end.

Category: grid
20
What is the Z-index in Bootstrap layout?
Advanced

Bootstrap uses a limited z-index scale to manage layers of content like navigation, tooltips, popovers, modals, etc. These are defined in th...

In-Depth Explanation

Bootstrap uses a limited z-index scale to manage layers of content like navigation, tooltips, popovers, modals, etc. These are defined in the SCSS variables.

Category: grid
21
Explain the box-sizing in Bootstrap.
Experience

Bootstrap sets the global box-sizing to border-box. This ensures that the padding and border are included in the element's total width and h...

In-Depth Explanation

Bootstrap sets the global box-sizing to border-box. This ensures that the padding and border are included in the element's total width and height.

Category: grid
22
What is Reboot in Bootstrap?
Experience

Reboot is a collection of element-specific CSS changes in a single file, based on Normalize.js, to provide a consistent cross-browser baseli...

In-Depth Explanation

Reboot is a collection of element-specific CSS changes in a single file, based on Normalize.js, to provide a consistent cross-browser baseline.

Category: grid
23
How to create a multi-row layout without multiple .row divs?
Advanced

Because columns are based on percentage widths, they will wrap to a new line once the sum of column widths exceeds 12 within a single .row.

In-Depth Explanation

Because columns are based on percentage widths, they will wrap to a new line once the sum of column widths exceeds 12 within a single .row.

Category: grid
24
What are Display utilities?
Beginner

Classes like .d-none, .d-inline, .d-block, .d-flex are used to quickly toggle the display property of elements across different breakpoints.

In-Depth Explanation

Classes like .d-none, .d-inline, .d-block, .d-flex are used to quickly toggle the display property of elements across different breakpoints.

Category: grid
25
How to hide an element on mobile only?
Beginner

Use .d-none .d-md-block. This hides it by default (mobile) and shows it starting from the medium breakpoint.

In-Depth Explanation

Use .d-none .d-md-block. This hides it by default (mobile) and shows it starting from the medium breakpoint.

Category: grid
26
What are Spacing utilities?
Beginner

Bootstrap provides margin (.m-) and padding (.p-) utilities with levels from 0 to 5. Examples: .mt-3 (margin-top), .px-5 (horizontal padding...

In-Depth Explanation

Bootstrap provides margin (.m-) and padding (.p-) utilities with levels from 0 to 5. Examples: .mt-3 (margin-top), .px-5 (horizontal padding).

Category: grid
27
What does .mx-auto do?
Beginner

It sets margin-left: auto and margin-right: auto, which is commonly used to center fixed-width block-level content.

In-Depth Explanation

It sets margin-left: auto and margin-right: auto, which is commonly used to center fixed-width block-level content.

Category: grid
28
How to create a sticky top element?
Experience

Use the .sticky-top utility class. It ensures the element stays at the top of the viewport after scrolling past it.

In-Depth Explanation

Use the .sticky-top utility class. It ensures the element stays at the top of the viewport after scrolling past it.

Category: grid
29
Difference between .fixed-top and .sticky-top?
Experience

.fixed-top removes the element from the normal document flow and fixes it to the top. .sticky-top keeps it in the flow until its position re...

In-Depth Explanation

.fixed-top removes the element from the normal document flow and fixes it to the top. .sticky-top keeps it in the flow until its position reaches the top.

Category: grid
30
What is Aspect Ratio utility in Bootstrap 5?
Beginner

Bootstrap 5 introduced ratios (like .ratio-16x9) to manage the aspect ratio of external content like iframes or videos.

In-Depth Explanation

Bootstrap 5 introduced ratios (like .ratio-16x9) to manage the aspect ratio of external content like iframes or videos.

Category: grid
31
How to create a responsive embed?
Beginner

In BS5, use the .ratio class along with a specific ratio modifier like .ratio-16x9 on a wrapper around your <iframe> or <video>.

In-Depth Explanation

In BS5, use the .ratio class along with a specific ratio modifier like .ratio-16x9 on a wrapper around your <iframe> or <video>.

Category: grid
32
What are Float utilities?
Beginner

Classes like .float-start and .float-end (renamed from left/right in BS5) are used to float elements.

In-Depth Explanation

Classes like .float-start and .float-end (renamed from left/right in BS5) are used to float elements.

Category: grid
33
What is Clearfix?
Experience

The .clearfix utility is used to clear floated content within a container to prevent layout collapse.

In-Depth Explanation

The .clearfix utility is used to clear floated content within a container to prevent layout collapse.

Category: grid
34
How to use Horizontal Centering for images?
Beginner

Use the utility classes .d-block .mx-auto on an <img> tag.

In-Depth Explanation

Use the utility classes .d-block .mx-auto on an <img> tag.

Category: grid
35
Explain Z-index utilities in BS5.
Advanced

Bootstrap 5 provides low-level z-index utilities (.z-0 to .z-3) and named ones like .z-n1 (minus one).

In-Depth Explanation

Bootstrap 5 provides low-level z-index utilities (.z-0 to .z-3) and named ones like .z-n1 (minus one).

Category: grid
36
What is Overflow utility?
Beginner

Utilities like .overflow-auto, .overflow-hidden, .overflow-visible, and .overflow-scroll allow you to control text wrapping and scrolling.

In-Depth Explanation

Utilities like .overflow-auto, .overflow-hidden, .overflow-visible, and .overflow-scroll allow you to control text wrapping and scrolling.

Category: grid
37
How to change text alignment responsively?
Beginner

Use classes like .text-start, .text-center, .text-end, or responsive versions like .text-md-center.

In-Depth Explanation

Use classes like .text-start, .text-center, .text-end, or responsive versions like .text-md-center.

Category: grid
38
What are Visually Hidden utilities?
Experience

The .visually-hidden class hides an element from the visual display but keeps it accessible to screen readers (important for A11y).

In-Depth Explanation

The .visually-hidden class hides an element from the visual display but keeps it accessible to screen readers (important for A11y).

Category: grid
39
Explain the .stretched-link utility.
Experience

Adding .stretched-link to a link inside a component (like a card) makes the entire parent component clickable.

In-Depth Explanation

Adding .stretched-link to a link inside a component (like a card) makes the entire parent component clickable.

Category: grid
40
How to use Text Truncation?
Beginner

Use the .text-truncate class to truncate long text with an ellipsis. It requires the element to be display: block or inline-block.

In-Depth Explanation

Use the .text-truncate class to truncate long text with an ellipsis. It requires the element to be display: block or inline-block.

Category: grid
41
What does .col-12 .col-md-8 do?
Beginner

On small screens (mobile), it takes the full width (12/12). Starting from medium devices, it takes 8 columns (8/12).

In-Depth Explanation

On small screens (mobile), it takes the full width (12/12). Starting from medium devices, it takes 8 columns (8/12).

Category: grid
42
How to push a column to the end of a row?
Experience

Use .ms-auto (margin-start: auto) on the column you want to push.

In-Depth Explanation

Use .ms-auto (margin-start: auto) on the column you want to push.

Category: grid
43
What is .vh-100?
Beginner

It is a utility that sets the element height to 100% of the viewport height (100vh).

In-Depth Explanation

It is a utility that sets the element height to 100% of the viewport height (100vh).

Category: grid
44
What is .vw-100?
Beginner

It is a utility that sets the element width to 100% of the viewport width (100vw).

In-Depth Explanation

It is a utility that sets the element width to 100% of the viewport width (100vw).

Category: grid
45
How to create a vertical divider?
Experience

Use the .vr utility class in Bootstrap 5 to create a vertical rule.

In-Depth Explanation

Use the .vr utility class in Bootstrap 5 to create a vertical rule.

Category: grid
46
What are Opacity utilities?
Beginner

Bootstrap 5 includes classes like .opacity-25, .opacity-50, .opacity-75, and .opacity-100 to control an element's transparency.

In-Depth Explanation

Bootstrap 5 includes classes like .opacity-25, .opacity-50, .opacity-75, and .opacity-100 to control an element's transparency.

Category: grid
47
How to change the background-opacity?
Experience

Use the .bg-opacity-* utilities alongside a .bg-* color class. Example: .bg-success .bg-opacity-50.

In-Depth Explanation

Use the .bg-opacity-* utilities alongside a .bg-* color class. Example: .bg-success .bg-opacity-50.

Category: grid
48
What is Object Fit utility?
Experience

Bootstrap 5.3+ added object-fit utilities like .object-fit-contain and .object-fit-cover for responsive images and videos.

In-Depth Explanation

Bootstrap 5.3+ added object-fit utilities like .object-fit-contain and .object-fit-cover for responsive images and videos.

Category: grid
49
Explain .gap utility in BS5.
Beginner

When using display: grid or flex, you can use .gap-0 through .gap-5 to control the distance between items.

In-Depth Explanation

When using display: grid or flex, you can use .gap-0 through .gap-5 to control the distance between items.

Category: grid
50
How to handle RTL (Right-to-Left) in Bootstrap 5?
Advanced

Bootstrap 5 has built-in RTL support. You need to set dir='rtl' on the <html> tag and use the RTL version of the CSS file.

In-Depth Explanation

Bootstrap 5 has built-in RTL support. You need to set dir='rtl' on the <html> tag and use the RTL version of the CSS file.

Category: grid
51
What is a Card in Bootstrap?
Beginner

A card is a flexible and extensible content container. It includes options for headers and footers, a wide variety of content, contextual ba...

In-Depth Explanation

A card is a flexible and extensible content container. It includes options for headers and footers, a wide variety of content, contextual background colors, and powerful display options.

Category: components
52
How to create a Modal in Bootstrap?
Beginner

A modal is a dialog box/popup window. You need a trigger (button with data-bs-toggle='modal') and the modal structure (.modal, .modal-dialog...

In-Depth Explanation

A modal is a dialog box/popup window. You need a trigger (button with data-bs-toggle='modal') and the modal structure (.modal, .modal-dialog, .modal-content).

Category: components
53
What is the purpose of data-bs-toggle and data-bs-target?
Beginner

These data attributes are used to trigger Bootstrap JavaScript plugins without writing custom JS. toggle defines the behavior (modal, dropdo...

In-Depth Explanation

These data attributes are used to trigger Bootstrap JavaScript plugins without writing custom JS. toggle defines the behavior (modal, dropdown, etc.), and target specifies the element ID to control.

Category: components
54
How to make a Navbar responsive?
Beginner

Use the .navbar-expand-* class on the navbar. Use a toggle button (.navbar-toggler) and a collapsible wrapper (.collapse.navbar-collapse) fo...

In-Depth Explanation

Use the .navbar-expand-* class on the navbar. Use a toggle button (.navbar-toggler) and a collapsible wrapper (.collapse.navbar-collapse) for the links.

Category: components
55
What is a Carousel in Bootstrap?
Beginner

A slideshow component for cycling through elements—images or slides of text—like a carousel.

In-Depth Explanation

A slideshow component for cycling through elements—images or slides of text—like a carousel.

Category: components
56
How to add indicators to a Carousel?
Beginner

Use the .carousel-indicators wrapper with <button> elements targeting the carousel index using data-bs-slide-to.

In-Depth Explanation

Use the .carousel-indicators wrapper with <button> elements targeting the carousel index using data-bs-slide-to.

Category: components
57
What is a Breadcrumb?
Beginner

A breadcrumb indicates the current page's location within a navigational hierarchy that automatically adds separators via CSS.

In-Depth Explanation

A breadcrumb indicates the current page's location within a navigational hierarchy that automatically adds separators via CSS.

Category: components
58
How to create a Button Group?
Beginner

Wrap a series of buttons with .btn in a container with the .btn-group class.

In-Depth Explanation

Wrap a series of buttons with .btn in a container with the .btn-group class.

Category: components
59
What is a Dropdown in Bootstrap?
Beginner

Dropdowns are toggleable, contextual overlays for displaying lists of links and more. They’re made interactive with the included Bootstrap d...

In-Depth Explanation

Dropdowns are toggleable, contextual overlays for displaying lists of links and more. They’re made interactive with the included Bootstrap dropdown JavaScript plugin.

Category: components
60
How to position a Dropdown?
Experience

Use classes like .dropup, .dropend, or .dropstart on the parent element to change the menu's appearance direction.

In-Depth Explanation

Use classes like .dropup, .dropend, or .dropstart on the parent element to change the menu's appearance direction.

Category: components
61
What is an Accordion?
Beginner

Build vertically collapsing accordions in combination with our Collapse JavaScript plugin. Use .accordion and .accordion-item.

In-Depth Explanation

Build vertically collapsing accordions in combination with our Collapse JavaScript plugin. Use .accordion and .accordion-item.

Category: components
62
Difference between .btn-primary and .btn-outline-primary?
Beginner

.btn-primary provides a solid color button. .btn-outline-primary provides a button with a border and no background, filling in on hover.

In-Depth Explanation

.btn-primary provides a solid color button. .btn-outline-primary provides a button with a border and no background, filling in on hover.

Category: components
63
How to change the size of a button?
Beginner

Use .btn-lg for large buttons and .btn-sm for small buttons.

In-Depth Explanation

Use .btn-lg for large buttons and .btn-sm for small buttons.

Category: components
64
What is a Badge in Bootstrap?
Beginner

Badges are small count and labeling components used to indicate a status or count. Example: Notifications <span class='badge bg-secondary'>4...

In-Depth Explanation

Badges are small count and labeling components used to indicate a status or count. Example: Notifications <span class='badge bg-secondary'>4</span>.

Category: components
65
How to create a Pill Badge?
Beginner

Use the .rounded-pill utility class on your badge element.

In-Depth Explanation

Use the .rounded-pill utility class on your badge element.

Category: components
66
What is an Alert?
Beginner

Alerts provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages. Use .alert a...

In-Depth Explanation

Alerts provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages. Use .alert and .alert-success, etc.

Category: components
67
How to make an Alert dismissible?
Experience

Add the .alert-dismissible class and a close button with data-bs-dismiss='alert'.

In-Depth Explanation

Add the .alert-dismissible class and a close button with data-bs-dismiss='alert'.

Category: components
68
What are Progress bars?
Beginner

Components to show the progress of a task. Use .progress as a wrapper and .progress-bar inside to show percentage via style width.

In-Depth Explanation

Components to show the progress of a task. Use .progress as a wrapper and .progress-bar inside to show percentage via style width.

Category: components
69
How to make a Progress bar striped or animated?
Experience

Use .progress-bar-striped for stripes and .progress-bar-animated to animate those stripes.

In-Depth Explanation

Use .progress-bar-striped for stripes and .progress-bar-animated to animate those stripes.

Category: components
70
What is a List Group?
Beginner

List groups are a flexible and powerful component for displaying a series of content. Modify and extend them to support just about any conte...

In-Depth Explanation

List groups are a flexible and powerful component for displaying a series of content. Modify and extend them to support just about any content within.

Category: components
71
What is a Modal backdrop?
Experience

The darkened background that appears when a modal is opened. It can be disabled with data-bs-backdrop='false'.

In-Depth Explanation

The darkened background that appears when a modal is opened. It can be disabled with data-bs-backdrop='false'.

Category: components
72
How to vertically center a Modal?
Experience

Add the .modal-dialog-centered class to the .modal-dialog element.

In-Depth Explanation

Add the .modal-dialog-centered class to the .modal-dialog element.

Category: components
73
What is Scrollspy?
Advanced

Scrollspy is a mechanism to automatically update navigation targets based on scroll position to indicate which link is currently active in t...

In-Depth Explanation

Scrollspy is a mechanism to automatically update navigation targets based on scroll position to indicate which link is currently active in the viewport.

Category: components
74
How to implement Tooltips?
Experience

Tooltips must be initialized via JavaScript because they are performance-intensive. Use the Tooltip constructor: new bootstrap.Tooltip(el).

In-Depth Explanation

Tooltips must be initialized via JavaScript because they are performance-intensive. Use the Tooltip constructor: new bootstrap.Tooltip(el).

Category: components
75
Difference between Tooltip and Popover?
Experience

Tooltips are smaller and used for simple labels on hover. Popovers are larger, can contain more content (like titles), and are often trigger...

In-Depth Explanation

Tooltips are smaller and used for simple labels on hover. Popovers are larger, can contain more content (like titles), and are often triggered by click.

Category: components
76
What is Offcanvas in Bootstrap 5?
Beginner

Offcanvas is a sidebar component that can be toggled to appear from any edge of the viewport. Often used for mobile navigation or shopping c...

In-Depth Explanation

Offcanvas is a sidebar component that can be toggled to appear from any edge of the viewport. Often used for mobile navigation or shopping carts.

Category: components
77
How to create a Toast?
Experience

Toasts are lightweight notifications. Use the .toast container and initialize it with JS: new bootstrap.Toast(el).show().

In-Depth Explanation

Toasts are lightweight notifications. Use the .toast container and initialize it with JS: new bootstrap.Toast(el).show().

Category: components
78
What is the Placeholder component?
Experience

Introduced in BS5, placeholders are used to create 'loading' states (skeleton screens) for your components while content is being fetched.

In-Depth Explanation

Introduced in BS5, placeholders are used to create 'loading' states (skeleton screens) for your components while content is being fetched.

Category: components
79
How to create a Tabbed interface?
Experience

Use the Navs and Tab JavaScript plugin. Use .nav-tabs and data-bs-toggle='tab' on individual nav links.

In-Depth Explanation

Use the Navs and Tab JavaScript plugin. Use .nav-tabs and data-bs-toggle='tab' on individual nav links.

Category: components
80
What is a Pagination component?
Beginner

Standard pagination for lists or search results. Use .pagination, .page-item, and .page-link.

In-Depth Explanation

Standard pagination for lists or search results. Use .pagination, .page-item, and .page-link.

Category: components
81
How to change the size of Pagination?
Beginner

Use .pagination-lg or .pagination-sm on the <ul> element.

In-Depth Explanation

Use .pagination-lg or .pagination-sm on the <ul> element.

Category: components
82
What is the Collapse plugin?
Beginner

Used to toggle the visibility of content. It can be used for accordions or just a button that hides/shows a div.

In-Depth Explanation

Used to toggle the visibility of content. It can be used for accordions or just a button that hides/shows a div.

Category: components
83
How to trigger collapse with multiple buttons?
Advanced

Both buttons just need to have data-bs-target='[selector]' pointing to the same ID or class.

In-Depth Explanation

Both buttons just need to have data-bs-target='[selector]' pointing to the same ID or class.

Category: components
84
What is the purpose of .active class in navs?
Beginner

It indicates the current selection or the active link in components like navbars, pagination, or list groups.

In-Depth Explanation

It indicates the current selection or the active link in components like navbars, pagination, or list groups.

Category: components
85
What is the .disabled class behavior?
Experience

On buttons, it physically disables the element. On links, it uses pointer-events: none to prevent clicking, but remains focusable unless ari...

In-Depth Explanation

On buttons, it physically disables the element. On links, it uses pointer-events: none to prevent clicking, but remains focusable unless aria-disabled is used.

Category: components
86
How to create a Spinner (Loading icon)?
Beginner

Use .spinner-border (outline) or .spinner-grow (pulsing) classes. Use text color utilities for coloring.

In-Depth Explanation

Use .spinner-border (outline) or .spinner-grow (pulsing) classes. Use text color utilities for coloring.

Category: components
87
Horizontal Collapse in BS5?
Advanced

Bootstrap 5 added support for horizontal collapsing by adding the .collapse-horizontal class.

In-Depth Explanation

Bootstrap 5 added support for horizontal collapsing by adding the .collapse-horizontal class.

Category: components
88
How to create a floating label in Forms?
Beginner

Wrap an <input> and <label> in .form-floating. The input must have a placeholder and come before the label.

In-Depth Explanation

Wrap an <input> and <label> in .form-floating. The input must have a placeholder and come before the label.

Category: components
89
What is .input-group?
Beginner

Extend form controls by adding text, buttons, or button groups on either side of textual inputs.

In-Depth Explanation

Extend form controls by adding text, buttons, or button groups on either side of textual inputs.

Category: components
90
How to validate forms in Bootstrap?
Experience

Use .needs-validation on the form and .is-invalid/is-valid on inputs. You need a small snippet of JS to handle the submit event.

In-Depth Explanation

Use .needs-validation on the form and .is-invalid/is-valid on inputs. You need a small snippet of JS to handle the submit event.

Category: components
91
What are Checkboxes and Radios styling?
Beginner

In BS5, use .form-check for the wrapper, .form-check-input for the control, and .form-check-label for the label.

In-Depth Explanation

In BS5, use .form-check for the wrapper, .form-check-input for the control, and .form-check-label for the label.

Category: components
92
How to create a Switch (Toggle)?
Beginner

Add the .form-switch class to the .form-check wrapper of a checkbox.

In-Depth Explanation

Add the .form-switch class to the .form-check wrapper of a checkbox.

Category: components
93
What is the Range input?
Beginner

Standardize the appearance across browsers using the .form-range class on a range input.

In-Depth Explanation

Standardize the appearance across browsers using the .form-range class on a range input.

Category: components
94
How to use custom Select menu?
Beginner

Use the .form-select class on the <select> element for a custom appearance mirroring other form controls.

In-Depth Explanation

Use the .form-select class on the <select> element for a custom appearance mirroring other form controls.

Category: components
95
What is a Figure component?
Beginner

Use .figure for the wrapper, .figure-img for the image, and .figure-caption for the caption.

In-Depth Explanation

Use .figure for the wrapper, .figure-img for the image, and .figure-caption for the caption.

Category: components
96
How to create responsive Tables?
Beginner

Wrap any <table> with .table-responsive to make it scroll horizontally on small devices.

In-Depth Explanation

Wrap any <table> with .table-responsive to make it scroll horizontally on small devices.

Category: components
97
Contextual classes for Tables?
Beginner

Use .table-primary, .table-success, etc., on <tr> or <td> elements to color them.

In-Depth Explanation

Use .table-primary, .table-success, etc., on <tr> or <td> elements to color them.

Category: components
98
Striped and Hoverable Tables?
Beginner

Use .table-striped for alternating row colors and .table-hover to highlight the row on hover.

In-Depth Explanation

Use .table-striped for alternating row colors and .table-hover to highlight the row on hover.

Category: components
99
What is Close Button component?
Beginner

A generic close button (.btn-close) for dismissing content like modals and alerts. It uses background-image icons.

In-Depth Explanation

A generic close button (.btn-close) for dismissing content like modals and alerts. It uses background-image icons.

Category: components
100
What is the 'Stack' utility in BS5.1+?
Experience

Stacks provide a shortcut for common flexbox layouts. Use .vstack for vertical and .hstack for horizontal layouts.

In-Depth Explanation

Stacks provide a shortcut for common flexbox layouts. Use .vstack for vertical and .hstack for horizontal layouts.

Category: components
101
What are Utility Classes?
Beginner

Utility classes are single-purpose classes (e.g., .text-center, .mt-5, .bg-primary) that allow you to style elements directly in HTML ohne w...

In-Depth Explanation

Utility classes are single-purpose classes (e.g., .text-center, .mt-5, .bg-primary) that allow you to style elements directly in HTML ohne writing custom CSS.

Category: utilities
102
How to change text color?
Beginner

Use .text-{color} classes like .text-primary, .text-danger, .text-muted, .text-white, etc.

In-Depth Explanation

Use .text-{color} classes like .text-primary, .text-danger, .text-muted, .text-white, etc.

Category: utilities
103
How to change background color?
Beginner

Use .bg-{color} classes like .bg-dark, .bg-light, .bg-warning, etc.

In-Depth Explanation

Use .bg-{color} classes like .bg-dark, .bg-light, .bg-warning, etc.

Category: utilities
104
What is the utility for Font Weight?
Beginner

Use .fw-bold, .fw-bolder, .fw-normal, .fw-light, or .fw-italic for font style.

In-Depth Explanation

Use .fw-bold, .fw-bolder, .fw-normal, .fw-light, or .fw-italic for font style.

Category: utilities
105
How to change Font Size?
Beginner

Use .fs-1 to .fs-6 (mapping to H1-H6 sizes) to quickly change font size.

In-Depth Explanation

Use .fs-1 to .fs-6 (mapping to H1-H6 sizes) to quickly change font size.

Category: utilities
106
Explain Spacing levels (0-5).
Experience

Levels map to multiples of the $spacer variable (default 1rem). 1 is 0.25rem, 3 is 1rem, 5 is 3rem.

In-Depth Explanation

Levels map to multiples of the $spacer variable (default 1rem). 1 is 0.25rem, 3 is 1rem, 5 is 3rem.

Category: utilities
107
How to add a border?
Beginner

Use the .border class. You can specify sides (.border-top, .border-start) and colors (.border-primary).

In-Depth Explanation

Use the .border class. You can specify sides (.border-top, .border-start) and colors (.border-primary).

Category: utilities
108
How to change border thickness?
Beginner

Use .border-1 to .border-5 classes in Bootstrap 5.

In-Depth Explanation

Use .border-1 to .border-5 classes in Bootstrap 5.

Category: utilities
109
What are Rounded Corners utilities?
Beginner

Use .rounded, .rounded-top, .rounded-circle, .rounded-pill, or .rounded-0 to remove rounding.

In-Depth Explanation

Use .rounded, .rounded-top, .rounded-circle, .rounded-pill, or .rounded-0 to remove rounding.

Category: utilities
110
How to add Shadowns?
Beginner

Use .shadow-sm, .shadow, or .shadow-lg. Use .shadow-none to remove.

In-Depth Explanation

Use .shadow-sm, .shadow, or .shadow-lg. Use .shadow-none to remove.

Category: utilities
111
Explain Flex Direction utilities.
Experience

Use .flex-row, .flex-row-reverse, .flex-column, and .flex-column-reverse.

In-Depth Explanation

Use .flex-row, .flex-row-reverse, .flex-column, and .flex-column-reverse.

Category: utilities
112
How to use Flex Wrap?
Experience

Use .flex-wrap, .flex-nowrap, or .flex-wrap-reverse.

In-Depth Explanation

Use .flex-wrap, .flex-nowrap, or .flex-wrap-reverse.

Category: utilities
113
Justify Content utilities?
Experience

.justify-content-start, .justify-content-end, .justify-content-center, .justify-content-between, .justify-content-around, .justify-content-e...

In-Depth Explanation

.justify-content-start, .justify-content-end, .justify-content-center, .justify-content-between, .justify-content-around, .justify-content-evenly.

Category: utilities
114
Align Items utilities?
Experience

.align-items-start, .align-items-end, .align-items-center, .align-items-baseline, .align-items-stretch.

In-Depth Explanation

.align-items-start, .align-items-end, .align-items-center, .align-items-baseline, .align-items-stretch.

Category: utilities
115
What is the purpose of .flex-grow-1?
Experience

It makes a flex item grow to occupy all available space in its container.

In-Depth Explanation

It makes a flex item grow to occupy all available space in its container.

Category: utilities
116
How to center text in a div?
Beginner

Use the .text-center utility class.

In-Depth Explanation

Use the .text-center utility class.

Category: utilities
117
How to make an image responsive?
Beginner

Use the .img-fluid class. It adds max-width: 100% and height: auto.

In-Depth Explanation

Use the .img-fluid class. It adds max-width: 100% and height: auto.

Category: utilities
118
What are thumbnails in Bootstrap?
Beginner

Applying the .img-thumbnail class gives the image a rounded 1px border appearance.

In-Depth Explanation

Applying the .img-thumbnail class gives the image a rounded 1px border appearance.

Category: utilities
119
Explain .overflow-hidden.
Beginner

It hides content that exceeds the element's boundaries (overflow: hidden).

In-Depth Explanation

It hides content that exceeds the element's boundaries (overflow: hidden).

Category: utilities
120
What is the utility for User Selection?
Experience

Use .user-select-all (selects all on click), .user-select-auto, or .user-select-none.

In-Depth Explanation

Use .user-select-all (selects all on click), .user-select-auto, or .user-select-none.

Category: utilities
121
How to control Pointer Events?
Experience

Use .pe-none (prevents clicks) or .pe-auto.

In-Depth Explanation

Use .pe-none (prevents clicks) or .pe-auto.

Category: utilities
122
What are Text Decoration utilities?
Beginner

.text-decoration-none, .text-decoration-underline, .text-decoration-line-through.

In-Depth Explanation

.text-decoration-none, .text-decoration-underline, .text-decoration-line-through.

Category: utilities
123
How to transform text case?
Beginner

.text-lowercase, .text-uppercase, .text-capitalize.

In-Depth Explanation

.text-lowercase, .text-uppercase, .text-capitalize.

Category: utilities
124
What is Line Height utility?
Experience

.lh-1, .lh-sm, .lh-base, .lh-lg for different line heights.

In-Depth Explanation

.lh-1, .lh-sm, .lh-base, .lh-lg for different line heights.

Category: utilities
125
Explain .w-100 and .h-100.
Beginner

They set width and height to 100% respectively. Available in steps: 25, 50, 75, 100, and auto.

In-Depth Explanation

They set width and height to 100% respectively. Available in steps: 25, 50, 75, 100, and auto.

Category: utilities
126
How to use Gradients as background?
Experience

Add the .bg-gradient class to any .bg-* element to apply a subtle linear gradient.

In-Depth Explanation

Add the .bg-gradient class to any .bg-* element to apply a subtle linear gradient.

Category: utilities
127
What is the utility for Border Opacity?
Experience

Use .border-opacity-10 to .border-opacity-75 along with a .border color class.

In-Depth Explanation

Use .border-opacity-10 to .border-opacity-75 along with a .border color class.

Category: utilities
128
Explain Vertical Alignment (Inline elements).
Experience

.align-baseline, .align-top, .align-middle, .align-bottom, .align-text-top, .align-text-bottom.

In-Depth Explanation

.align-baseline, .align-top, .align-middle, .align-bottom, .align-text-top, .align-text-bottom.

Category: utilities
129
How to add a Focus Ring?
Advanced

Bootstrap 5.3+ added .focus-ring utility to apply a custom focus style to elements.

In-Depth Explanation

Bootstrap 5.3+ added .focus-ring utility to apply a custom focus style to elements.

Category: utilities
130
What are Link utilities?
Experience

.link-primary, .link-secondary, etc. These change the color and hover color of <a> tags.

In-Depth Explanation

.link-primary, .link-secondary, etc. These change the color and hover color of <a> tags.

Category: utilities
131
How to change link opacity?
Advanced

.link-opacity-10 to .link-opacity-100. Also .link-opacity-*-hover.

In-Depth Explanation

.link-opacity-10 to .link-opacity-100. Also .link-opacity-*-hover.

Category: utilities
132
How to change the underline color of a link?
Advanced

.link-underline, .link-underline-primary, etc.

In-Depth Explanation

.link-underline, .link-underline-primary, etc.

Category: utilities
133
What is .invisible class?
Beginner

It sets visibility: hidden. Unlike .d-none, the element still occupies space in the layout but is hidden from the user.

In-Depth Explanation

It sets visibility: hidden. Unlike .d-none, the element still occupies space in the layout but is hidden from the user.

Category: utilities
134
Explain .fixed-bottom.
Beginner

Fixes an element to the bottom of the viewport.

In-Depth Explanation

Fixes an element to the bottom of the viewport.

Category: utilities
135
How to create a full-screen background image?
Experience

Use a div with .vh-100 and CSS background-size: cover, or use object-fit: cover on an <img> with .w-100 .h-100.

In-Depth Explanation

Use a div with .vh-100 and CSS background-size: cover, or use object-fit: cover on an <img> with .w-100 .h-100.

Category: utilities
136
What is the utility for Word Wrap?
Experience

.text-break ensures long words don't break the layout by applying overflow-wrap: break-word.

In-Depth Explanation

.text-break ensures long words don't break the layout by applying overflow-wrap: break-word.

Category: utilities
137
Explain .stretched-link on a card.
Experience

Makes the whole card clickable. The card must have position: relative.

In-Depth Explanation

Makes the whole card clickable. The card must have position: relative.

Category: utilities
138
What are Ratio utilities?
Beginner

.ratio-1x1, .ratio-4x3, .ratio-16x9, .ratio-21x9. Used for responsive media.

In-Depth Explanation

.ratio-1x1, .ratio-4x3, .ratio-16x9, .ratio-21x9. Used for responsive media.

Category: utilities
139
How to align text based on viewport?
Beginner

.text-sm-start, .text-md-center, .text-lg-end, etc.

In-Depth Explanation

.text-sm-start, .text-md-center, .text-lg-end, etc.

Category: utilities
140
What does .clearfix do?
Experience

Clears floated children within a parent element.

In-Depth Explanation

Clears floated children within a parent element.

Category: utilities
141
How to disable text selection?
Beginner

Use the .user-select-none class.

In-Depth Explanation

Use the .user-select-none class.

Category: utilities
142
What is .top-0, .start-0?
Experience

Positioning utilities that set top/left/right/bottom to 0. Used with .position-absolute.

In-Depth Explanation

Positioning utilities that set top/left/right/bottom to 0. Used with .position-absolute.

Category: utilities
143
How to center an absolute element?
Advanced

Use .top-50 .start-50 .translate-middle.

In-Depth Explanation

Use .top-50 .start-50 .translate-middle.

Category: utilities
144
What is .translate-middle-x / -y?
Advanced

Used to center an element only horizontally or vertically using transforms.

In-Depth Explanation

Used to center an element only horizontally or vertically using transforms.

Category: utilities
145
What are Interaction utilities?
Experience

.interact-none (pe-none) and .interact-auto.

In-Depth Explanation

.interact-none (pe-none) and .interact-auto.

Category: utilities
146
How to change the focus color?
Advanced

This usually requires custom SCSS, but provided classes like .form-control:focus set a default ring.

In-Depth Explanation

This usually requires custom SCSS, but provided classes like .form-control:focus set a default ring.

Category: utilities
147
What is the default spacer value?
Advanced

Variables define it as 1rem.

In-Depth Explanation

Variables define it as 1rem.

Category: utilities
148
How to remove a border on one side?
Beginner

Use .border-0 and then .border-top, or use .border and then .border-top-0.

In-Depth Explanation

Use .border-0 and then .border-top, or use .border and then .border-top-0.

Category: utilities
149
What is the utility for vertical centering text in a flex container?
Experience

.align-items-center on the flex container.

In-Depth Explanation

.align-items-center on the flex container.

Category: utilities
150
How to make text semi-bold?
Beginner

Use the .fw-semibold class in newer versions of Bootstrap.

In-Depth Explanation

Use the .fw-semibold class in newer versions of Bootstrap.

Category: utilities
151
How do you customize Bootstrap using Sass?
Advanced

Create a custom SCSS file, import Bootstrap's functions and variables, override variables (like $primary), and finally import the rest of Bo...

In-Depth Explanation

Create a custom SCSS file, import Bootstrap's functions and variables, override variables (like $primary), and finally import the rest of Bootstrap.

Category: advanced
152
What is the purpose of _variables.scss?
Advanced

It contains all the default values for colors, spacing, fonts, breakpoints, and component settings. Overriding these is the core of customiz...

In-Depth Explanation

It contains all the default values for colors, spacing, fonts, breakpoints, and component settings. Overriding these is the core of customization.

Category: advanced
153
Explain the !default flag in Bootstrap Sass.
Advanced

Sass uses the !default flag to assign a value only if the variable hasn't been defined yet. This allows developers to define their own varia...

In-Depth Explanation

Sass uses the !default flag to assign a value only if the variable hasn't been defined yet. This allows developers to define their own variables before importing Bootstrap's defaults.

Category: advanced
154
How to add new colors to the theme?
Advanced

Add your color to the $theme-colors map using map-merge before importing Bootstrap's CSS.

In-Depth Explanation

Add your color to the $theme-colors map using map-merge before importing Bootstrap's CSS.

Category: advanced
155
What is the Utility API in Bootstrap 5?
Advanced

The Utility API is a Sass-based tool to generate Bootstrap's utility classes. You can add, remove, or modify utilities by editing the $utili...

In-Depth Explanation

The Utility API is a Sass-based tool to generate Bootstrap's utility classes. You can add, remove, or modify utilities by editing the $utilities map.

Category: advanced
156
How to remove a default utility using the API?
Advanced

By setting the specific utility key to 'null' in your Scss before processing the map.

In-Depth Explanation

By setting the specific utility key to 'null' in your Scss before processing the map.

Category: advanced
157
What is PurgeCSS and why use it with Bootstrap?
Advanced

PurgeCSS parses your HTML and removes unused CSS rules from your final bundle. Since Bootstrap is large, this can significantly reduce file ...

In-Depth Explanation

PurgeCSS parses your HTML and removes unused CSS rules from your final bundle. Since Bootstrap is large, this can significantly reduce file size.

Category: advanced
158
Explain Color Contrast utilities.
Advanced

Bootstrap uses functions to automatically calculate whether light or dark text should be used on a background to ensure WCAG accessibility.

In-Depth Explanation

Bootstrap uses functions to automatically calculate whether light or dark text should be used on a background to ensure WCAG accessibility.

Category: advanced
159
What is the purpose of .no-gutters in BS4 vs .g-0 in BS5?
Experience

They serve the same purpose: removing the padding between columns. BS5 changed the naming to follow the new 'gutter' utility pattern.

In-Depth Explanation

They serve the same purpose: removing the padding between columns. BS5 changed the naming to follow the new 'gutter' utility pattern.

Category: advanced
160
How to use Bootstrap with React?
Experience

You can use the CSS only, or use libraries like 'react-bootstrap' or 'reactstrap' which provide pre-built React components mapping to Bootst...

In-Depth Explanation

You can use the CSS only, or use libraries like 'react-bootstrap' or 'reactstrap' which provide pre-built React components mapping to Bootstrap's UI.

Category: advanced
161
How to use Bootstrap with Angular?
Experience

You can install 'ng-bootstrap' or 'ngx-bootstrap'. These provide Angular widgets for things like modals and carousels without needing jQuery...

In-Depth Explanation

You can install 'ng-bootstrap' or 'ngx-bootstrap'. These provide Angular widgets for things like modals and carousels without needing jQuery.

Category: advanced
162
Explain the 'Popper.js' dependency.
Advanced

Popper.js is a library used by Bootstrap for positioning tooltips, popovers, and dropdown menus relative to their trigger elements.

In-Depth Explanation

Popper.js is a library used by Bootstrap for positioning tooltips, popovers, and dropdown menus relative to their trigger elements.

Category: advanced
163
Why did Bootstrap 5 remove jQuery?
Advanced

To reduce bundle size, improve performance, and move towards modern vanilla JavaScript. Most browser vendors now support the features Bootst...

In-Depth Explanation

To reduce bundle size, improve performance, and move towards modern vanilla JavaScript. Most browser vendors now support the features Bootstrap formerly relied on jQuery for.

Category: advanced
164
How to migrate from BS4 to BS5?
Advanced

Check the migration guide: Rename data-toggle to data-bs-toggle, update form classes (.form-control instead of .form-group), and handle the ...

In-Depth Explanation

Check the migration guide: Rename data-toggle to data-bs-toggle, update form classes (.form-control instead of .form-group), and handle the removal of jQuery.

Category: advanced
165
What is Dark Mode support in BS5.3?
Experience

BS 5.3 introduced a first-class color modes feature, allowing you to toggle 'dark' or 'light' themes via data-bs-theme attributes.

In-Depth Explanation

BS 5.3 introduced a first-class color modes feature, allowing you to toggle 'dark' or 'light' themes via data-bs-theme attributes.

Category: advanced
166
How to implement a theme switcher?
Advanced

Use JS to toggle the data-bs-theme='dark/light' attribute on the <html> or <body> element.

In-Depth Explanation

Use JS to toggle the data-bs-theme='dark/light' attribute on the <html> or <body> element.

Category: advanced
167
Explain 'CSS Variables' in Bootstrap 5.
Advanced

BS5 uses root-level CSS variables (--bs-primary, --bs-font-sans-serif) for runtime customization without needing to recompile Sass.

In-Depth Explanation

BS5 uses root-level CSS variables (--bs-primary, --bs-font-sans-serif) for runtime customization without needing to recompile Sass.

Category: advanced
168
How to use 'Theme Colors' in custom CSS?
Experience

You can reference Bootstrap's CSS variables like background-color: var(--bs-primary);.

In-Depth Explanation

You can reference Bootstrap's CSS variables like background-color: var(--bs-primary);.

Category: advanced
169
What is 'Autoprefixer'?
Advanced

A tool used during the Build process that adds vendor prefixes (-webkit-, -moz-) to CSS rules based on values from Can I Use.

In-Depth Explanation

A tool used during the Build process that adds vendor prefixes (-webkit-, -moz-) to CSS rules based on values from Can I Use.

Category: advanced
170
How to handle 'Accessibility' (A11y) in Bootstrap?
Experience

Use semantic HTML, appropriate ARIA attributes (aria-label, aria-expanded), and ensure high color contrast.

In-Depth Explanation

Use semantic HTML, appropriate ARIA attributes (aria-label, aria-expanded), and ensure high color contrast.

Category: advanced
171
Explain 'Static' vs 'Dynamic' Modals.
Experience

Static modals are defined in the HTML. Dynamic modals are created/content is inserted via JS before showing.

In-Depth Explanation

Static modals are defined in the HTML. Dynamic modals are created/content is inserted via JS before showing.

Category: advanced
172
How to lazy load a Carousel image?
Experience

Use the loading='lazy' attribute on <img> tags within the carousel items.

In-Depth Explanation

Use the loading='lazy' attribute on <img> tags within the carousel items.

Category: advanced
173
What is the purpose of _utilities.scss?
Advanced

It defines the huge $utilities map that the API uses to generate all the single-purpose classes like .display, .spacer, etc.

In-Depth Explanation

It defines the huge $utilities map that the API uses to generate all the single-purpose classes like .display, .spacer, etc.

Category: advanced
174
How to create a custom breakpoint?
Advanced

Modify the $grid-breakpoints map in your Sass variables file before importing Bootstrap.

In-Depth Explanation

Modify the $grid-breakpoints map in your Sass variables file before importing Bootstrap.

Category: advanced
175
Explain the 'Mixins' provided by Bootstrap.
Advanced

Mixins like make-container(), make-row(), and media-breakpoint-up() allow you to apply Bootstrap's logic to your own custom class names.

In-Depth Explanation

Mixins like make-container(), make-row(), and media-breakpoint-up() allow you to apply Bootstrap's logic to your own custom class names.

Category: advanced
176
How to use 'media-breakpoint-up' in Sass?
Advanced

@include media-breakpoint-up(md) { ... } allows you to write CSS that only applies from the medium viewport up.

In-Depth Explanation

@include media-breakpoint-up(md) { ... } allows you to write CSS that only applies from the medium viewport up.

Category: advanced
177
What is the 'Container-Max-Widths' map?
Advanced

A Sass map that defines the maximum width of a .container for each breakpoint.

In-Depth Explanation

A Sass map that defines the maximum width of a .container for each breakpoint.

Category: advanced
178
Difference between .nav and .navbar?
Experience

.nav is for generic navigation (tabs, pills). .navbar is specifically for site headers with support for branding, toggling, and specialized ...

In-Depth Explanation

.nav is for generic navigation (tabs, pills). .navbar is specifically for site headers with support for branding, toggling, and specialized layouts.

Category: advanced
179
How to create a Mega Menu?
Advanced

Set .dropdown-static on the parent and use the grid system (.row and .col) inside the .dropdown-menu.

In-Depth Explanation

Set .dropdown-static on the parent and use the grid system (.row and .col) inside the .dropdown-menu.

Category: advanced
180
What is the 'Shadow' variable customization?
Advanced

You can change $box-shadow and $box-shadow-sm in Sass to change the look of all shadow utilities at once.

In-Depth Explanation

You can change $box-shadow and $box-shadow-sm in Sass to change the look of all shadow utilities at once.

Category: advanced
181
How to use Bootstrap with a CDN?
Beginner

Include the link and script tags in your HTML <head> and before </body> from providers like jsDelivr or cdnjs.

In-Depth Explanation

Include the link and script tags in your HTML <head> and before </body> from providers like jsDelivr or cdnjs.

Category: advanced
182
What is 'Bower'? (Is it still used?)
Advanced

Bower was a package manager formerly used for Bootstrap. It is now deprecated in favor of NPM/Yarn.

In-Depth Explanation

Bower was a package manager formerly used for Bootstrap. It is now deprecated in favor of NPM/Yarn.

Category: advanced
183
Explain the 'Tooltip' life cycle events.
Advanced

Events include show.bs.tooltip, shown.bs.tooltip, hide.bs.tooltip, and hidden.bs.tooltip.

In-Depth Explanation

Events include show.bs.tooltip, shown.bs.tooltip, hide.bs.tooltip, and hidden.bs.tooltip.

Category: advanced
184
What is 'Vite' and how to use it with Bootstrap?
Experience

Vite is a modern build tool. You install bootstrap via npm, and import the Scss file into your main entry point.

In-Depth Explanation

Vite is a modern build tool. You install bootstrap via npm, and import the Scss file into your main entry point.

Category: advanced
185
How to change the default font globally?
Advanced

Override the $font-family-base variable in your Scss.

In-Depth Explanation

Override the $font-family-base variable in your Scss.

Category: advanced
186
Explain the 'Close' button implementation.
Advanced

It uses an SVG background-image encoded in the CSS. This avoids needing an external icon font for just a close button.

In-Depth Explanation

It uses an SVG background-image encoded in the CSS. This avoids needing an external icon font for just a close button.

Category: advanced
187
What is 'Normalize.css'?
Advanced

A small CSS file that provides better cross-browser consistency in the default styling of HTML elements. Bootstrap's Reboot is based on it.

In-Depth Explanation

A small CSS file that provides better cross-browser consistency in the default styling of HTML elements. Bootstrap's Reboot is based on it.

Category: advanced
188
How to create a custom Scrollbar using Bootstrap?
Advanced

Bootstrap doesn't provide scrollbar utilities; you have to write custom CSS using ::-webkit-scrollbar pseudo-elements.

In-Depth Explanation

Bootstrap doesn't provide scrollbar utilities; you have to write custom CSS using ::-webkit-scrollbar pseudo-elements.

Category: advanced
189
What is the 'Active' state management in Modals?
Experience

Bootstrap adds .modal-open to the body to prevent scrolling and manages focus trapping automatically for accessibility.

In-Depth Explanation

Bootstrap adds .modal-open to the body to prevent scrolling and manages focus trapping automatically for accessibility.

Category: advanced
190
How to stop a Carousel from auto-cycling?
Experience

Use the data-bs-interval='false' attribute on the .carousel element.

In-Depth Explanation

Use the data-bs-interval='false' attribute on the .carousel element.

Category: advanced
191
Explain 'Validation Tooltips'.
Experience

By adding .invalid-tooltip instead of .invalid-feedback, you can show the error message in a styled bubble.

In-Depth Explanation

By adding .invalid-tooltip instead of .invalid-feedback, you can show the error message in a styled bubble.

Category: advanced
192
How to use 'Icons' with Bootstrap?
Beginner

Bootstrap doesn't include icons by default. You can use Bootstrap Icons, Font Awesome, or Google Material Icons.

In-Depth Explanation

Bootstrap doesn't include icons by default. You can use Bootstrap Icons, Font Awesome, or Google Material Icons.

Category: advanced
193
What is the 'Dropdown' positioning engine?
Advanced

It uses Popper.js to calculate the best place to show the menu, avoiding it getting cut off by the viewport edges.

In-Depth Explanation

It uses Popper.js to calculate the best place to show the menu, avoiding it getting cut off by the viewport edges.

Category: advanced
194
How to create a custom 'Grid'?
Advanced

Change $grid-columns (e.g., to 16 or 24) in Sass and recompile.

In-Depth Explanation

Change $grid-columns (e.g., to 16 or 24) in Sass and recompile.

Category: advanced
195
Explain 'Container-sm' vs 'Container-md' etc.
Experience

These are containers that are 100% wide until the specified breakpoint, after which they behave like fixed-width containers.

In-Depth Explanation

These are containers that are 100% wide until the specified breakpoint, after which they behave like fixed-width containers.

Category: advanced
196
How to customize the 'Gutter' size globally?
Advanced

Override the $grid-gutter-width variable in Sass.

In-Depth Explanation

Override the $grid-gutter-width variable in Sass.

Category: advanced
197
What is the 'Emphasis' utility?
Experience

Bootstrap 5.3 added utilities for text emphasis and subtle background colors (e.g., .text-primary-emphasis).

In-Depth Explanation

Bootstrap 5.3 added utilities for text emphasis and subtle background colors (e.g., .text-primary-emphasis).

Category: advanced
198
How to use 'Link-underline-offset'?
Advanced

Use .link-underline-offset-1 to .link-underline-offset-3 to control the distance of the underline from the text.

In-Depth Explanation

Use .link-underline-offset-1 to .link-underline-offset-3 to control the distance of the underline from the text.

Category: advanced
199
What is the 'Focus-ring-primary' utility?
Advanced

Applied to elements with .focus-ring to change the glow color.

In-Depth Explanation

Applied to elements with .focus-ring to change the glow color.

Category: advanced
200
How to perform 'Progressive Enhancement' in BS?
Advanced

Start with simple semantic HTML and basic Bootstrap utilities, then add complex animations or JS features for browsers that support them.

In-Depth Explanation

Start with simple semantic HTML and basic Bootstrap utilities, then add complex animations or JS features for browsers that support them.

Category: advanced