The following CSS creates a gradient border on the left and right sides of the element:
div { width: 100px; height: 100px; border-left: 10px solid; border-image: linear-gradient(#00f,#000) 0 100%; }
<div></div>
http://jsfiddle.net/5p8cv5t9/
How to apply a gradient only to the left side?
You can easily determine the border width on all other sides. The problem is that the value of border-width (MDN) is the default medium, not 0.
medium
0
div { width: 100px; height: 100px; border-width: 0; border-left: 10px solid; border-image: linear-gradient(#00f, #000) 0 100%; }
you can define the right border to 0px. Hope this helps.
div { width: 100px; height: 100px; border-left: 10px solid; border-right: 0px; border-image: linear-gradient(#00f,#000) 0 100%; }
Source: https://habr.com/ru/post/1599137/More articles:Создание пользовательского элемента пользовательского интерфейса в WPF - c#How to display previous and next images using Bootstrap carousel - htmlGrep: Рекурсивная опция создает неожиданное поведение при подаче входного канала - unixLoading carousel showing next and previous image - jqueryUnusual numeric errors - c #https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1599138/bash-how-do-i-pipe-stdout-and-stderr-of-one-process-to-two-different-processes&usg=ALkJrhi-l1PyFHIHbGpW6iGid3FoIEWikwSequencing both Scalaz WriterT and output - scalaSetting up the composition of Future, Either, and Writer in Scalaz - scalaНе удалось найти свойство "VERSION_CODE" - androidMutual update between two classes of the same superclass - c ++All Articles