HTML CSS examples for CSS Property:border-image-source
Set image as a border for elements
<html> <head> <style> #borderimg1 {<!-- w ww . j a v a 2 s. c o m--> border: 10px solid transparent; padding: 15px; border-image-source: url(https://www.java2s.com/style/demo/Opera.png); border-image-repeat: round; border-image-slice: 30; border-image-width: 10px; } #borderimg2 { border: 10px solid transparent; padding: 15px; border-image-source: url(https://www.java2s.com/style/demo/Firefox.png); border-image-repeat: round; border-image-slice: 30; border-image-width: 20px; } #borderimg3 { border: 10px solid transparent; padding: 15px; border-image-source: url(https://www.java2s.com/style/demo/Google-Chrome.png); border-image-repeat: round; border-image-slice: 30; border-image-width: 30px; } </style> </head> <body> <p id="borderimg1">This is image boarder example.</p> <p id="borderimg2">This is image boarder example.</p> <p id="borderimg3">This is image boarder example.</p> </body> </html>