Border-image

Developer
Size
1,624 Kb
Views
6,072

How do I make an border-image?

What is a border-image? How do you make a border-image? This script and codes were developed by Dean Leigh on 25 January 2023, Wednesday.

Border-image Previews

Border-image - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>border-image</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="thing"></div>
<div class="thing2"></div>
</body>
</html>

Border-image - Script Codes CSS Codes

.thing { width: 20rem; height: 20rem; margin: auto; background-image: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/126464/image_01_m.jpg"); border: 1rem solid transparent; border-radius: 50%; // as you can see it doesnt clip -moz-border-image: -moz-linear-gradient(top left, red 50%, blue 50%); -webkit-border-image: -webkit-linear-gradient(top left, red 50%, blue 50%); border-image: linear-gradient(to bottom right, red 50%, blue 50%); border-image-slice: 1;
}
.thing2 { width: 20rem; height: 20rem; margin: 1rem auto; background: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/126464/image_01_m.jpg"); border-radius: 50%; border-top: 1rem solid red; border-right: 1rem solid blue; border-bottom: 1rem solid blue; border-left: 1rem solid red;
}
Border-image - Script Codes
Border-image - Script Codes
Home Page Home
Developer Dean Leigh
Username deanleigh
Uploaded January 25, 2023
Rating 3
Size 1,624 Kb
Views 6,072
Do you need developer help for Border-image?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Dean Leigh (deanleigh) Script Codes
Create amazing blog posts with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!