Answers for "how to make a square div in css"

CSS
0

how to make a square div in css

.square {
    background-color: #000;
    width: 50vw;
    height: 50vw;
}
.square h1 {
    color: #fff;
}
/* It works */
Posted by: Guest on May-26-2021

Code answers related to "how to make a square div in css"

Browse Popular Code Answers by Language