คุณสมบัติ CSS border-image ใช้เพื่อเพิ่มเส้นขอบรูปภาพให้กับองค์ประกอบบางอย่าง คุณสามารถลองเรียกใช้รหัสต่อไปนี้เพื่อใช้คุณสมบัติ border-image -
ตัวอย่าง
<html>
<head>
<style>
#borderimg1 {
border: 15px solid transparent;
padding: 15px;
border-image: url(https://tutorialspoint.com/css/images/border.png) 50 round;
}
</style>
</head>
<body>
<p id = "borderimg1">This is image border example.</p>
</body>
</html>