Skip to content

Truly independent web browser

578 B
Raw Blame
<!DOCTYPE html>
<style>
    * {
        scrollbar-width: none;
    }
    html,
    body {
        margin: 0;
    }
    .sticky {
        position: relative;
        top: 0;
        left: 0;
        right: 0;
        background-color: cyan;
        border-top: 20px solid magenta;
        padding: 0.5em;
    }
    #scrollable {
        width: 300px;
        height: 200px;
        overflow: auto;
        position: relative;
        border: 1px solid black;
    }
</style>
<div id="scrollable">
    <div style="height: 10000px"><div class="sticky">I'm sticky</div></div>
</div>