.container{ max-width: 1440px; /* height: 100%; */ margin:0 auto; position: relative } .sidebar-border{ position: absolute; left:0px; top:0px; display: block; width:250px; /* height:100%; */ background-color: transparent; padding-top:50px; overflow-x:hidden; /* border:1px solid white; */ padding-bottom: 10px; padding-left: 10px } .sidebar{ position: relative; display: block; width:100%; /* min-height:100%; */ background-color:rgba(255,255,255,.5); border-radius: 15px; padding:15px } .sidebar div:first-child{ font-size: 20px; font-weight: bold } @media screen and (max-width:700px){ .sidebar-border{ position: relative; width:100%; height:auto; padding:0px } }