0

How to create CSS triangles?

<div class="triangle"></div>
.triangle {
    border-color: yellow blue red green;
    border-style: solid;
    border-width: 200px 200px 200px 200px;
    height: 0px;
    width: 0px;
}
RUN
add comment
Suggest a different solution or add another example