.indexlink { position: fixed; top:0%; right:10%; background-color: white; z-index: 10; } h1 { position: fixed; right:0%; top:3%; text-align: right; background-color: grey; padding: 3px 30px 3px 10px; z-index: 10; color: black; font-size: 28px; } .collapsible{ padding-left: 70px; font-family: monospace; line-height: 1px; } .active, .collapsible:hover { color: red; cursor: pointer; } .active, .collapsible:after { padding-top: 20px; color: #054646; padding-left: 100px; } .content { max-height: 0; overflow: hidden; transition: max-height 0.2s ease-out; padding-left: 100px; background-color: #5E7575; font-family: monospace; position: relative; width: 800px; margin-left: 100px; line-height: 30px; }