.example {
    width: 500px;
    margin: 0 auto;

    p {
        background: aqua;
        border: 3px solid blue;
        padding: 10px;
        margin: 10px;
    }

    span {
        background: red;
        border: 1px solid black;
    }

    .positioned {
        position: static;
        background: yellow;
    }

}

#ex1 {
    .positioned {
        position: static;
        background: yellow;
    }
}

#ex2 {
    .positioned {
        position: relative;
        background: yellow;
        top: 30px;
        left: 30px;
    }
}

#ex3 {
    .positioned {
        position: absolute;
        background: yellow;
        top: 30px;
        left: 30px;
    }
}

#ex4 {
    position: relative;

    .positioned {
        position: absolute;
        background: yellow;
        top: 30px;
        left: 30px;
    }
}

#ex5 {
    position: relative;

    .positioned {
        position: absolute;
        background: yellow;
        top: 30px;
        left: 30px;
    }

    p:nth-of-type(1) {
        position: absolute;
        background: lime;
        top: 10px;
        right: 30px;
        z-index: 1;
    }
}

#ex6 {
    width: 500px;
    height: 1400px;
    margin: 0 auto;

    h1 {
        position: fixed;
        top: 0;
        width: 500px;
        margin-top: 0;
        background: white;
        padding: 10px;
    }

    p:nth-of-type(1) {
        margin-top: 60px;
    }


}

#ex7 {
    overflow: scroll;
    height: 200px;
    dt {
        background-color: black;
        color: white;
        padding: 10px;
        position: sticky;
        top: 0;
        left: 0;
        margin: 1em 0;
    }

}