* {box-sizing: border-box} /* Style the tab */ .tab { float: left; border: 1px solid #ccc; background-color: grey; width: 30%; height: 300px; margin-bottom:50px; } .tab h4 { font-family:Bookman; font-weight:bold; font-size:17px; } /* Style the buttons that are used to open the tab content */ .tab button { display: block; background-color: inherit; color: black; padding: 22px 16px; width: 100%; border: none; outline: none; text-align: left; cursor: pointer; transition: 0.3s; font-family:Bookman; font-size:25px; } /* Change background color of buttons on hover */ .tab button:hover { background-color: #ddf; } /* Create an active/current "tab button" class */ .tab button.active { background-color: #eed; } .slidebarcontent { float: right; padding: 0px 12px; border: 1px solid #ccc; width: 70%; border-left: none; height: 300px; background-color:lightgrey; }