Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Linear gradient on Safari is wrapping all around

Tags:

css

I have a wordpress theme css override. I wanted to have linear gradients under the widget titles.

I used the following code:

.widget-title {
    border-bottom: 3px solid;
    border-image: linear-gradient(to right, green 10%, orange 25%, yellow 50%,purple 50%, indigo 75%, indigo 75%) 5;
    padding-left: 0px;
    padding-right: 0px;

On chrome and firefox it underlines the title just like I want.

On Safari it creates a border all the way around the title.

Safari

Chrome

like image 796
Alberto Martinez Avatar asked Nov 17 '25 04:11

Alberto Martinez


1 Answers

Try using below:

border-width: 0 3px 3px 3px;
border-top: none;
like image 152
Saravana Avatar answered Nov 18 '25 20:11

Saravana



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!