หากต้องการเพิ่มภาพเส้นขอบใน CSS3 ให้ใช้คุณสมบัติ border-image เป็นคุณสมบัติชวเลขสำหรับคุณสมบัติต่อไปนี้ −
border-image-source border-image-slice border-image-width border-image-outset border-image-repeat
สามารถตั้งค่าเป็น;
border-image: source slice width outset repeat|initial|inherit;
ตัวอย่าง
เรามาดูตัวอย่างกัน −
<!DOCTYPE html>
<html>
<head>
<style>
#demo {
border: 20px solid;
padding: 20px;
border-image: url(https://www.tutorialspoint.com/images/home_ai_python.png) 20 round;
}
</style>
</head>
<body>
<h1>PyTorch Tutorial</h1>
<p>PyTorch is an open source machine learning library for Python and is completely based on Torch.</p>
<p id="demo">It is primarily used for applications such as natural language processing.</p>
</body>
</html> ผลลัพธ์

ตัวอย่าง
เรามาดูตัวอย่างอื่นกัน −
<!DOCTYPE html>
<html>
<head>
<style>
#demo {
border: 20px solid;
padding: 20px;
border-image: url(https://www.tutorialspoint.com/images/home_pytorch.png) 40% round;
}
</style>
</head>
<body>
<h1>TensorFlow Tutorial</h1>
<p>TensorFlow is an open source machine learning framework for all developers. It is used for implementing machine learning and deep learning applications.</p>
<p id="demo"> To develop and research on fascinating ideas on artificial intelligence, Google team created TensorFlow. </p>
</body>
</html> ผลลัพธ์
