Grow your YouTube views, likes and subscribers for free
Get Free YouTube Subscribers, Views and Likes

How (and why) to use borders to make a CSS triangle (plus a scss mixin)

Follow
Kevin Powell

It's a little strange that you can make a triangle by using a border with CSS, but once you understand why you can do it, it not only makes sense, but it's also a lot easier to manipulate so you can get them exactly like you might need them to be.

Not only do I look at how to make a css triangle with a border in this video, but also how it works, and I finish it off by looking at how you can use a Sass mixin to be able to create them with only one line of code, once you've set things up.


Come and hangout, ask questions, suggest ideas, and meet some awesome people over in The Community:   / discord  

I have a newsletter! https://www.kevinpowell.co/newsletter

New to Sass, or want to step up your game with it? I've got a course just for you: https://www.kevinpowell.co/learnsass



My Code Editor: VS Code https://code.visualstudio.com/

How my browser refreshes when I save:    • How to automatically refresh your bro...  



Support me on Patreon:   / kevinpowell  

I'm on some other places on the internet too!

If you'd like a behind the scenes and previews of what's coming up on my YouTube channel, make sure to follow me on Instagram and Twitter.

Instagram:   / kevinpowell.co  
Twitter:   / kevinjpowell  
Codepen: https://codepen.io/kevinpowell/
Github: https://github.com/kevinpowell

posted by verovivan5