Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

make triangle using div

// css clip
<div id="triangle"></div>

#triangle {
	background-color: #003BDE;
	clip-path: polygon(50% 0, 100% 100%, 0 100%);
	width: 100px;
	height: 100px;
}
Source by usefulangle.com #
 
PREVIOUS NEXT
Tagged: #triangle #div
ADD COMMENT
Topic
Name
8+2 =