Saturday, December 16, 2017

CSS Geometric Shapes

Today, we are going to share some ideas about CSS Geometric Shapes. This CSS Geometric Shapes helps you while doing CSS coding. we have designed some Geometric Shapes using CSS and some of them support CSS3.
With the help of below CSS design you can design some more Geometric Shapes. After this tutorial you may not require any images to design Geometric Shapes.
CSS Geometric Shapes

Lets see the step by step guide to design Geometric Shapes using CSS :

Square :

.square {
   height: 100px;
   width: 100px; 
   background: #07CAF3;
}

Output :
css-geometric-shapes

Rectangle :

.rectangle {
   height: 100px;
   width: 200px; 
   background: #07CAF3;
}

Output:
css-geometric-shapes

Parallelogram :

.parallelogram {
   height: 75px;
   width: 150px; 
   background: #07CAF3;
   -webkit-transform: skew(20deg); 
   -moz-transform: skew(20deg); 
   -o-transform: skew(20deg);
   transform: skew(20deg);
}

Output:
css-geometric-shapes

Trapezoid :

.trapezoid {
 height: 0;
 width: 100px;
 border-bottom: 100px solid #07CAF3;
 border-left: 50px solid transparent;
 border-right: 50px solid transparent;
}

Output:
css-geometric-shapes

Triangle :

.triangle {
 height: 0;
 width: 0;
 border-left: 50px solid transparent;
 border-right: 50px solid transparent;
 border-bottom: 100px solid #07CAF3;
}

Output:
css-geometric-shapes

Triangle Sided :

.triangle-sided {
 height: 0;
 width: 0;
 border-top: 100px solid #07CAF3;
 border-right: 100px solid transparent;
}

Output:
css-geometric-shapes

Circle :

.circle { 
   width: 100px;
   height: 100px;
   background: #07CAF3; 
   -moz-border-radius: 50px; 
   -webkit-border-radius: 50px; 
   border-radius: 50px;
}

Output:
css-geometric-shapes

Oval :

.oval {
 height: 200px;
 width: 100px;
 background: #07CAF3;
 -moz-border-radius: 50%;
 -webkit-border-radius: 50%;
 border-radius: 50%;
}

Output:

css-geometric-shapes

Cone :

.cone {
  height: 0;
  width: 0;
  border-left: 100px solid transparent;
  border-right: 100px solid transparent;
  border-top: 100px solid #07CAF3;
  -moz-border-radius: 50%;
  -webkit-border-radius: 50%;
  border-radius: 50%;
}

Output:
css-geometric-shapes





No comments:

Post a Comment