I
I
Igor Kaspersky2015-10-01 11:03:10
css
Igor Kaspersky, 2015-10-01 11:03:10

How to make a rounded border with a gradient?

Hello everyone, I don’t know how to round the corners of the border

border: 5px solid;
  border-image: -moz-linear-gradient(to top, #000 10%, blue 50%)1% 1;
  border-image: -webkit-linear-gradient(to top, #000 10%, blue 50%)1% 1;
  border-image: linear-gradient(to top, #000 10%, blue 50%)1% 1;

With such a construction of the gradient, it is impossible to round, what should be done?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
3
3luyka, 2015-10-01
@HHabar

Unfortunately, it's not possible to round the border-image.
Alternatively, you can wrap the block with border-image in a div, and set the div to the desired rounding and overflow: hidden;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question