I have used bootstrap for a layout in my application. The whole page is divided in 2X2 div,
I want to freeze the top row and 1st column. How can i do so?
Below is the diagram to depict my requirement.
I have used bootstrap for a layout in my application. The whole page is divided in 2X2 div,
I want to freeze the top row and 1st column. How can i do so?
Below is the diagram to depict my requirement.
Mitali, Try this,
Use position:fixed
for the top row
This is for Left side box
.leftside {
display: inline-block;
float: left;
position: relative;
width: 250px (your value);
margin-top: 58px (your value);
background-color: #ccc;
height: 100%;
}
Right side box
.rightside {
margin-left: 250px;
min-height: 1000px (your value);
margin-top: 0px;
padding: 0px;
background-color: #eee;
overflow: auto;
position: relative;
}
try this with bootstrap-
#sidebar.affix-top{
position: static;
margin-top:30px;
width:228px;
}
#sidebar.affix{
position: fixed;
top:70px;
width:228px;
}
There are several examples out there already.
https://codepen.io/aifarfa/pen/jbMqba
https://jsfiddle.net/RMarsh/bzuasLcz/3/
https://www.jqueryscript.net/demo/jQuery-Plugin-To-Freeze-Table-Columns-Rows-On-Scroll/
Looks like I have to enter in code to show these links, this is for angular and jquery using html tables.