body, html{ height: 100%; } body{ font-size: 14px; color: #222; } .sidebar{ background: #4f81bd; height: 100%; position: absolute; width: 300px; } .sidebar ul{ margin: 0; padding: 0; } .sidebar ul li{ border-bottom: 1px solid #3b69a1; display: block; } .sidebar ul li a{ display: block; color: #fff; padding: 10px; } .sidebar ul li.active a, .sidebar ul li a:hover{ background: #3b69a1; text-decoration: none; } .content{ height: 100%; overflow-y: auto; margin-left: 300px; width: 100%; } .panel-heading{ background: #4f81bd; padding: 9px 15px; color: #fff; font-size: 20px; margin-bottom: 15px; } .sub-panel-heading{ background: #dbe5f1; padding: 10px 15px; color: #000; font-size: 16px; } ul.roman li{ list-style: lower-roman; } ul.bullet li{ list-style: disc; } @media only screen and (min-width: 320px) and (max-width: 767px){ body{ padding-bottom: 38px; } .showmenu{ position:fixed; bottom: 0; background: #4f81bd; z-index: 2; left: 0; right: 0; color: #fff; } .content{ margin:0; } .sidebar{ left:-100%; transition: 0.3s ease-in; position: absolute; z-index: 1; height: calc(100% - 38px); overflow-y: auto; width: 100%; } .sidebar.show{ left: 0; transition: 0.3s ease-in; } }