| Start |
|---|
| Triangles To create a CSS triangle define an element with a width and height of 0 pixels. The triangle shape will be formed using border properties. For an element with 0 height and width the 4 borders (top, right, bottom, left) each form a triangle. Here's an element with 0 height/width and 4 different colored borders. By setting some borders to transparent, and others to a color we can create various triangles. For example, in the Up triangle, we set the bottom border to the desired color, then set the left and right borders to transparent. Here's an image with the left and right borders shaded slightly to show how the triangle is being formed. The dimensions of the triangle can be altered by changing the different border widths - taller, shorter, lopsided, etc. The examples below all show a 50x50 pixel triangle. Triangle - Pointing Up Triangle - Pointing Down Triangle - Pointing Right Triangle - Pointing Left Triangle - Pointing Up/Right Triangle - Pointing Up/Left Triangle - Pointing Down/Right Triangle - Pointing Down/Left |
| Trapezoid A trapezoid can be made by a block element with zero height (height of HTML: CSS: With changing the border sides, the orientation of the trapezoid can be adjusted. |
Circles and Ellipses CircleTo create a circle, define an element with an equal HTML CSS EllipseAn ellipse is similar to a circle, but with different values for HTML CSS |
| Bursts A burst is similar to a star but with the points extending less distance from the body. Think of a burst shape as a square with additional, slightly rotated, squares layered on top. The additional squares are created using the 8 Point Burst An 8 point burst are 2 layered squares. The bottom square is the element itself, the additional square is created using the 12 Point Burst An 12 point burst are 3 layered squares. The bottom square is the element itself, the additional squares are created using the |
| Square To create a square, define an element with both a width and height. In the example below, we have an element with a |
| Cube This example shows how to create a cube using 2D transformation methods HTML: CSS: |
| Pyramid This example shows how to create a pyramid using borders and 2D transformation methods HTML: CSS: |
Read Article
https://develop.horje.com/learn/1434/reference