CSS border-image gradient on one side? -


the following css produces gradient border on left & right side of 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 can apply gradient left side?

you can define no border width on other sides easily. issue stems fact default border-width (mdn) value medium, not 0.

div {      width: 100px;      height: 100px;      border-width: 0;      border-left: 10px solid;      border-image: linear-gradient(#00f, #000) 0 100%;  }
<div></div>


Comments

Popular posts from this blog

javascript - How to process users in one specific order using map o each function? -

javascript - Linking from page A to a specific iframe on page B -

java - Two interface have same method name with different return type -