Answers for "css color square"

CSS
1

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
0

square with 2 colors css

div {
  display: inline-block;
  border-top: 120px solid #F08080;
  border-right: 120px solid #FFDD40;
}
Posted by: Guest on May-11-2021

Browse Popular Code Answers by Language