Home
CSS
CSS Border Images
Tryit: Creating border with border-image
Run ❯
Get your
own
website
Result Size:
625 x 534
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <head> <style> #borderimg { border: 10px solid transparent; padding: 15px; border-image: url(border.png) 30 round; } </style> </head> <body> <h1>The border-image Property</h1> <p>Here, the middle sections of the image are repeated to create the border:</p> <p id="borderimg">border-image: url(border.png) 30 round;</p> <p>Here is the original image:</p><img src="border.png"> <p><strong>Note:</strong> Internet Explorer 10, and earlier versions, do not support the border-image property.</p> </body> </html>