Bootstrap provides several built-in features to the users. This makes development faster and smoother. However, in some cases, external CSS and jQuery has to be implemented to the web page’s coding in order to give it a personalized touch. Usually, the Bootstrap grid is used to divide the web-page into 12 equal columns. These columns can be grouped together to create wider columns. The columns are responsive in nature. This means that the columns will cover the whole screen on big screens, but will stack on top of each other on small screen devices.
When the webpage is divided into two equal columns, and the content inside the columns starts to overflow, the columns become scrollable. However, by doing some small modifications, the columns can be fixed. This article will demonstrate how to keep one column fixed, and the other column scrollable.
- To fixed the column make not scrollable.
<div class="col-sm-6 col-2 fixed-top one">
- To make the column scrollable.
<div class="col-sm-6 offset-sm-6 two">
Below example illustrates the above approach:
Example: You can run the code by hitting the run button so you can see the right column is scrollable but left is not.
- Split a text column into two columns in Pandas DataFrame
- Join two text columns into a single column in Pandas
- How to change column to row on small display in Bootstrap 4 ?
- How to split a column of list in different rows using bootstrap?
- How to make horizontal scrollable in a bootstrap row?
- How to create five equal columns in Bootstrap ?
- How to use Bootstrap to align labels with content into 4 columns ?
- CSS | column-gap Property
- CSS | grid-column Property
- CSS | column-count Property
- CSS | column-fill Property
- CSS | column-rule Property
- CSS | grid-column-end Property
- CSS | grid-column-gap Property
- CSS | column-span Property
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.