Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vuetify.js - How to add a lateral border in a v-card

How to add a colored lateral border on only one side of a v-card component.

Example:

enter image description here

like image 770
Paulo Henrique Rodrigues Grund Avatar asked Nov 04 '25 21:11

Paulo Henrique Rodrigues Grund


1 Answers

You can target the specific Vuetify class. You can use Chrome Dev Tools to find out what class the v-card has and you can modify it using that class.

Example:

.v-content .v-card.v-sheet.theme--light {
    background-color: #ffffff !important;
    border-left: 5px solid red !important
}

Codepen

like image 147
BakaDesu Avatar answered Nov 07 '25 06:11

BakaDesu



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!