Answers for "how to create square box in 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
8

how do i make a boxin html

<div style="width:500px;height:100px;border:1px solid #000;">This is a rectangle!</div>
Posted by: Guest on March-07-2020
5

how to create a shape in css

div {
	clip-path: polygon(100% 100%, 100% 100%, 100% 100%)
}
Posted by: Guest on June-27-2020

Browse Popular Code Answers by Language