The CSS Shapes
In this tutorial, we are going to create CSS shapes like squares, triangles, circles, rectangles.
let's see the below example first we create square shapes.
1. Square
HTML
<div class="square"></div>
CSS
.square {
width: 200px;
height: 200px;
background: blueviolet;
margin: auto;
margin-top: 150px;
}
Live Example
2. Circle
let's see the below example of a circle shape.
HTML
<div class="circle"></div>
CSS
.circle {
width: 200px;
height: 200px;
background: rebeccapurple;
margin: auto;
border-radius: 50%;
margin-top: 150px;
}
Live Example
0 Comments
If you have any question please ask?