css make square based on width code example
Example: how to make a square div in css
.square {
background-color: #000;
width: 50vw;
height: 50vw;
}
.square h1 {
color: #fff;
}
/* It works */
.square {
background-color: #000;
width: 50vw;
height: 50vw;
}
.square h1 {
color: #fff;
}
/* It works */