I would like to add a border that has white color in the upper left corner, top right blue, dark bottom left dark gray and lower right, light gray / blue with a gradient?
Is this possible with css or using a background image?
You can use the pseudo-element :before, and linear-gradientto create a border effect.
:before
linear-gradient
.element { background: white; position: relative; width: 200px; height: 150px; margin: 50px; } .element:before { content: ''; position: absolute; left: -5px; top: -5px; width: calc(100% + 10px); height: calc(100% + 10px); background: linear-gradient(45deg, rgba(220, 218, 219, 1) 0%, rgba(255, 255, 255, 1) 42%, rgba(255, 255, 255, 1) 59%, rgba(125, 188, 220, 1) 100%); z-index: -1; }
<div class="element"></div>
Source: https://habr.com/ru/post/1652830/More articles:Why is there only 1 type parameter specified in the scala list flatmap parameter - scalaDatabase cache configuration codeigniter - databaseMysql query issue with connection and filter - databaseКак компании мобильной связи обнаруживают, что вы используете интернет-соединение 3G/4G? - mobileОператор '==' не может применяться к группе методов операндов 'или' string ' - c#How to implement a Facebook AccountKit login system with django user model - djangoSlim 3 - Slash as part of a route parameter - phpMysql output in csv without using outfile in query - mysqliOS: Push Notification Not Showing Dictionary Information in iOS 10 - iosJAXB marshalling, ignore nillable - javaAll Articles