I am trying to add right border color to a mat-stroked button, but i am unable to achieve the results.
<button class="example" mat-stroked-button>New <br /> Comment</button>
CSS-
.example{
color: red;
border-radius: 3px;
border-right: black;
}
But that doesnt work, replacing border-right with border gives the border throughout which i dont want, i want border color only at the right border.
Can anyone help me achieve this?
Thanks in Advance
Demo in this stackblitz link
You need border-right-color: black;
...
Your css class .example
is as below..
.example {
color: red;
border-left: none;
border-top: none;
border-bottom: none;
border-radius: 3px;
border-right-color: black;
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.