.container{ display: block; padding: 2000px; } .streams { overflow-x: auto; overflow-y: hidden; position: relative; width: 500px; height: 500px; display: inline-block; } .stream { white-space: nowrap; position: relative; display: inline-block; width: 500px; height: 500px; position: relative; } .svg-container { position: absolute; top: 0; left: 0; display: inline-block; } .author { position: absolute; left: 50%; bottom: 50px; font-size: 1rem; background-color: white; } .branches { overflow-x: auto; overflow-y: hidden; } .branch { white-space: nowrap; } .branch svg { border-top: 1px solid currentColor; }