How to Make CSS Triangles Using Borders Only

Опубликовано: 22 Март 2026
на канале: Brian Love
226
1

No SVG? No Problem. In this quick CSS tutorial, I’ll show you how to create triangles using nothing but the border-left, border-right, and border-bottom properties—no images, no SVGs, just pure CSS and some empty div blocks.

We’ll walk through how these invisible borders can be combined to create simple triangle shapes by manipulating width, height, and transparent borders.

Link to CodePen
https://codepen.io/BLtheDoc/pen/dPPxqpq

----------------------

Disclosure: There are affiliate links below, and I may receive commissions for purchases made through these links.

Tools/Resources I'm Currently Using :

💻 Apple 2023 MacBook Pro Laptop M3 chip
https://amzn.to/47iLnyh
---------------------------
Vidzflow - Video hosting for Webflow
https://bit.ly/41ReDL3
---------------------------
Screen Studio - Screen Recorder Used To Record Video
https://bit.ly/4cL5xnE
---------------------------
👉 Access the world’s largest library of Figma & Webflow components
https://bit.ly/blrelume
---------------------------
👉Try Webflow
https://bit.ly/401OitS
---------------------------
👉 Use BRIAN99512 at checkout and get 20% OFF at FULLERMOE. Watch a demo here!
https://fullermoe.com/welcome
---------------------------
👉 Tired of wasting thousands of hours starting from scratch on every project and rebuilding the same components? Check out Untitled UI. Save thousands of hours, and level up as a designer.
https://bit.ly/49Q7xds
---------------------------
👉Sonduck Film Motion Graphic Templates
https://www.sonduckfilm.com/?ref=22
---------------------------
👉 Envato Elements
https://1.envato.market/yR6A4b
---------------------------



#css