I am working on a layout design and my goal is to have the left sidebar, right sidebar, and header remain fixed in place.
Here is the CSS code I am using :
#container {
padding-left: 200px; /* Left Sidebar fullwidth */
padding-right: 190px; /* Right Sidebar fullwidth + Center Column padding */
}
#container .column {
position: relative;
float: left;
}
#center {
padding: 10px 20px; /* Center Column padding */
width: 100%;
overflow-x:hidden;
}
#left {
width: 180px; /* Left Sidebar width */
padding: 0 10px; /* Left Sidebar padding */
right: 240px; /* Left Sidebar fullwidth + Center Column padding */
margin-left: -100%;
}
#right {
width: 130px; /* Right Sidebar width */
padding: 0 10px; /* Right Sidebar padding */
margin-right: -100%;
}
#footer {
clear: both;
}
You can view the code here
Next, I plan to integrate nanoScrollerJS into the right sidebar section.
I may not be an expert in CSS, but I am constantly learning and improving my skills.