CSS - Responsive design

Page 23

#box {
    display: flex;
}

.box_element {
    width: 150px;
    height: 80px;
    background-color: black;
    margin: 25px;
}


@media (max-width: 1024px) {
    #box {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .box_element {
        background-color: purple;
    }
}
        

Fin

du

cours :)