In CSS, there are many rules for its border property. For some things, such as triangles or other images, we still use images instead. But we don't need it now, we can use CSS to form some basic graphics, and I share some tips on this.
1, Positive triangle:
. triangle_up{ height:0px; width:0px; border-bottom:50px solid #006633; border-left:50px solid transparent; border-right:50px solid Transparent;}
2, Inverted triangle:
. triangle_down{ height:0px; width:0px; border-top:50px solid #006633; border-left:50px solid transparent; border-right:50px solid Transparent;}
3. Left Triangle
. triangle_left{ height:0px; width:0px; border-left:50px solid #006633; border-top:50px solid transparent; border-bottom:50px solid transparent; Float:left;}
4. Right triangle
. triangle_right{ height:0px; width:0px; float:left; border-right:50px solid #006633; border-top:50px solid transparent; border-bottom:50px solid Transparent;}
5. Cross Street Effect
. crosssquare{ height:0px; width:0px; border-right:50px solid blue; border-top:50px solid gray; border-bottom:50px solid red; border-left:50px solid Yellow;}
CSS3: The Incredible border attribute