Home > Software engineering >  How do i change individual border colors in bootstrap 5?
How do i change individual border colors in bootstrap 5?

Time:10-12

<div >
  Border with different colors?
</div>

Is there a way to accomplish this maybe using sass?

CodePudding user response:

Yes in SCSS you should use BOM approch so you can write like this:

<div >

Border with different colors?

Now scss:

.border { &-bottom { border-bottom-color: red } &-top { border-top-color: green } }

  • Related