Bootstrap Tutorial

Bootstrap Fixed Navbar | Sticky Top | Sticky Header Bootstrap CDN 5.3, 5.2, 4.6, 4.3, 3.4, 3.3 (New Links) | Bootstrap CDN 5, 4, 3 File Download Bootstrap 5 Modal Disable Outside Click Bootstrap Horizontal and Vertical Divider Bootstrap Modal Pass data Dynamically Bootstrap Confirm Delete Modal | Popup Bootstrap Add Space Between Rows | Margin Bootstrap Remove Modal Background Bootstrap Make Table Row Clickable Bootstrap Change modal background color Bootstrap Center Align Form Bootstrap Show Image in Modal | Popup Bootstrap Button Icon with Text Bootstrap Scrollable Modal Bootstrap Image Center Align Bootstrap Dropdown with Icon Bootstrap Get Checkbox checked value Bootstrap Uncheck radio Button Bootstrap Set Radio button default checked or selected Bootstrap Radio Button Validation Bootstrap Enable Disable Radio Button Bootstrap Radio Button Checked Event Bootstrap get radio button checked or selected value Bootstrap Disable Enable Button on Click Bootstrap Tooltip on Input Field Elements Bootstrap Fixed Footer Bootstrap Image Upload | file Upload Bootstrap Modal on page load Bootstrap Login Form Template Bootstrap Add Search icon with Search bar Bootstrap button tooltip on hover Bootstrap Icons CDN Latest Version (1.11.3) Bootstrap Tabs Panel Pass dynamic content Bootstrap Change Dropdown Menu Background Color Bootstrap Avoid Dropdown Menu to close menu items on clicking inside Bootstrap Table Remove Border Bootstrap Modal Example Bootstrap Center Align Input Field Bootstrap Change Icon Color Bootstrap Text Align Center | Middle Bootstrap Remove all Rounded Corners Bootstrap Alerts Example Bootstrap Alert with Icons Bootstrap Scroll to Top Button Bootstrap Button Loading Spinner Bootstrap Check if Modal is Shown or Hidden Bootstrap Dropdown Button Change Text on Selection Bootstrap Remove offcanvas Backdrop Bootstrap Textarea Height Auto Resize Bootstrap selectpicker Get Selected Value Glyph Trash Icon

Bootstrap Horizontal and Vertical Divider

Bootstrap Horizontal and Vertical Divider:Bootstrap provides horizontal and vertical dividers as CSS classes to help create visually appealing and structured layouts. The horizontal divider class, "divider-horizontal," adds a horizontal line to separate content sections. It is typically used within a container element.

The vertical divider class, "divider-vertical," creates a vertical line to divide content in a column-like structure. It is commonly used within grid layouts or flex containers. Both dividers offer a straightforward way to enhance the visual hierarchy and organization of web page elements, allowing developers to create cleaner and more professional-looking designs using Bootstrap's built-in utility classes.

Profile Photo

Abhishek Yadav (SD) SDE of FAI

Feedback

written
Profile Photo

Anil Kumar (Expert) Coding Expert of FAI

Feeback

reviewed
Profile Photo
May 18, 2023 01:05 AM Last Updated
updated

How can I create a Bootstrap Horizontal divider?

The provided code snippet demonstrates the implementation of a Bootstrap horizontal divider. The CSS class ".h-divider" sets the styling for the divider, including a gray 1px solid line.

This divider is placed between two paragraphs of lorem ipsum text within a Bootstrap column. The "row" and "col" classes ensure proper alignment and responsiveness. The divider creates a visual separation between the paragraphs, enhancing the visual structure of the content.

 

Bootstrap Horizontal Divider Example

Copied to Clipboard
Run

Output of Bootstrap Horizontal Divider

How to Implement Bootstrap vertical divider?

The given code snippet demonstrates how to create a Bootstrap vertical divider. The CSS class "vertical-divider" defines the styling for the divider, including a solid border on the right side, height and padding settings.

Inside a row, two columns are used to separate content on the left and right sides, with the vertical divider placed in between. The "col-auto" class ensures the divider occupies the necessary space without pushing the columns wider.

Bootstrap Vertical Divider Example

Copied to Clipboard
Run

Output of Bootstrap Vertical Divider | line

Ad