How to add a gradient border above image (diagonal border) [duplicate]
问题 This question already has answers here : Slanted diagonal line in html or css? (6 answers) Closed 4 years ago . I need to something like this But above an image, here is my first attempt but it doesn't work http://jsfiddle.net/wo8gbhx3/17/ And this is my markup (now) HTML <div class="testing"> <ul> <li class="selected unavailable"> <a href="#"> <img src="http://placehold.it/25x25"/> </a> </li> </ul> </div> CSS .testing ul { list-style: none; } .testing ul li { width: 25px; height: 25px;