How to disable click outside modal to close modal in bootstrap ?
Bootstrap is a very powerful, extensible, and feature-packed fronted toolkit which is used to build fast and responsive websites....
read more
How to prevent inline-block divs from wrapping ?
The display: inline-block; is a layout property in CSS that does not add a line break after the element. As a result, the elements can sit next to each other. The major difference between display: inline; and display: inline-block; is that, display: inline-block; also allows us to set the width and height of the element....
read more
How to use Bootstrap modal for YouTube videos and play automatically ?
The task is to use modal for YouTube videos in Bootstrap. Here we will discuss two topics, embedding YouTube video in Bootstrap modal and make YouTube video auto-play in the Bootstrap modal. Embedding YouTube videos in the Bootstrap modal is very easy and simple to implement using the below approach. But there is a small problem when you close the modal the video will continue playing in the background.Approach:...
read more
How to make whole row in a table clickable as link in Bootstrap ?
Tables in Bootstrap can be formed either using traditional <table> tags or using the in-built ‘grid’ system. Earlier, <table> tags were often employed to designing grids for the sites, but nowadays with flexbox and table display properties in CSS, it is easier to just use divs. In the following examples, we’ll see how to make a complete row clickable as a link for both cases....
read more
Bootstrap Text Font Size
Bootstrap Text Font Size refers to predefined classes provided by the Bootstrap framework to adjust the size of text elements. These classes, such as `fs-1` to `fs-6`, allow easy control over text size, enhancing readability and visual hierarchy within web pages....
read more
React-Bootstrap Form Component
React-Bootstrap is a front-end framework that was designed keeping react in mind. Form Component provides a way to make a form and take user input and then forward it to the server for further data processing. We can use the following approach in ReactJS to use the react-bootstrap Form Component....
read more
How to Align navbar logo to the left screen using Bootstrap ?
It is very easy in Bootstrap to align items left and right by using the bootstrap classes. By default, it sets to left. If you want to align items center or right then it will be done by yourself. To align the navbar logo to the left of the screen with the Bootstrap method is a quick trick that can save you from writing extra CSS. In this, we simply add another div tag above the div tag having class navbar navbar-expand-lg navbar-light bg-light fixed-top py-lg-0....
read more
How to add background color to a div in Bootstrap ?
Bootstrap provides many classes to set the background color of an element. We can easily set the background of an element to any contextual class. Anchor components will darken on hover, just like the text classes. Some classes of background colors are listed below example....
read more
How to change the position of modal close button in bootstrap?
The Modal component is a dialog box or a popup window that displays on top of the page. Modals can be used as alert windows as well as for accepting some input values....
read more
Flexbox utilities in bootstrap with examples
The Flexible Box Layout Module in bootstrap is used for designing the flexible and responsive layout structure. It is used in Bootstrap 4....
read more
How to automatically close all collapsible elements inside of the accordion when closing the accordion?
The Collapse plugin provides a quick way of revealing and hiding content. It flip the perceivability of content over program with a couple of classes and Bootstrap 4 JavaScript plugins....
read more
How to convert the hamburger icon of navigation menu to X on click ?
The navigation menu is the most important section of a website. It helps in navigating through the website. Having a proper animation not only makes the website look good but also provides a user-friendly interface to the customer. Hence, this animation will make it possible to convert the three lines or the hamburger icon as it is frequently called, into an X upon click and vice versa. The code will contain 3 different structures which will make it possible to apply this animation. The HTML body, CSS body, and JavaScript body.Creating the structure: In this section, we will create a basic structure with the help of HTML. We will also add the font-awesome link to generate the lines to create the hamburger icon....
read more