Skip to content

Home

Triangle

Creates a triangular shape with pure CSS.

<div class="triangle"></div>
.triangle {
  width: 0;
  height: 0;
  border-top: 20px solid #9C27B0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
}

More like this

Start typing a keyphrase to see matching snippets.