0
Please can someone explain how creating triangles in CSS works??...it's really confusing
CSS Traingles
1 Odpowiedź
+ 1
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
.triangle-up {
width: 0;
height: 0;
border-left: 25px solid transparent;
border-right: 25px solid transparent;
border-bottom: 50px solid #555;
}
</style>
</head>
<body>
<div class="triangle-up"></div>
</body>
</html>