Learn Intermediate CSS by Building a Picasso Painting - Step 42

Hi, I already figured this step out, I just wanted to ask a question about how this specific code works :slight_smile:

How does changing the border-___-color make it angled (and result in sort of a triangular shape) I don’t know how better else to explain my question, so here’s my code:

border-top-color: transparent;
border-right-color: transparent;
border-bottom-color: transparent;
border-left-color: rgb(45, 31, 19);

Does it have to do with anything involving the border-width? Just wanted to know how this code works. Thanks!

Well, yes but in combination with the height/width of the element being set to 0

Makes sense! Thank you so much for the reply and also the resources!!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.