TRIANGLES
❊ DELINEATED TUTORIALS : coding on aff!1. width : 0px; height: 0px
With triangles, it's all about the borders. Therefore, the height and width are set to zero. You still need to include this in the code though! Without your height and width set to zero, the div will take the shape of the page and cannot be controlled by you. And with coding, you need to be able to know what everything is doing.
2. border-bottom: 100px solid #a0bbe8
This part is essentially the foundation of the triangle. "100px" gives it its width, solid means you're wanting your triangle to be solid, and "#a0bbe8" is the hex color code of your triangle. To get the hex code of another color, just search 'hex color' in google and it brings up a box that lets you find the hex color code of the color you want.
3.border-right:100p
Comments