File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 https://www.w3schools.com/howto/howto_css_fixed_sidebar.asp
88*/
99
10- /* Style main page content */
10+ /* Main page content */
1111.content {
12- margin-left : 15 % ; /* Same as the width... */
13- padding-left : 1 % ; /* ... plus left padding of the sidebar */
12+ margin-left : 160 px ; /* Same as the sidenav width... */
13+ padding-left : 10 px ; /* ... plus its left padding */
1414}
1515
16- /* The sidebar menu */
16+ /* The sidenav menu */
1717.sidenav {
1818 height : 100% ; /* Full-height: remove this if you want "auto" height */
19- width : 15% ; /* Set the width of the sidebar */
19+ width : 160px ; /* Set the width of the sidebar */
20+ padding-left : 10px ;
2021 position : fixed; /* Fixed Sidebar (stay in place on scroll) */
2122 z-index : 1 ; /* Stay on top */
2223 top : 0 ; /* Stay at the top */
2324 left : 0 ;
2425 background-color : white;
2526 overflow-x : hidden; /* Disable horizontal scroll */
26- padding-top : 0px ;
27- padding-left : 1% ;
2827}
2928
30- /* The navigation menu links & heading */
29+ /* The sidenav links & heading */
3130.sidenav a , h2 {
32- padding : 6px 8px 6px 16px ;
31+ padding : 6px 8px 6px 16px ; /* top-right-bottom-left */
3332 text-decoration : none;
3433 display : block;
3534}
You can’t perform that action at this time.
0 commit comments