HTML Editor
<!DOCTYPE html> <html lang="en-US"> <head> <style> div{ border: 15px solid transparent; padding: 15px; width: 200px; min-height: 60px; margin: 25px; text-align: center; border-image-source: url(car-left.png); border-image-repeat: repeat; border-image-width: 30px; } </style> </head> <body> <h1>CSS border-image-width Property</h1> <div> This is div container. </div> <button onclick="myFunction()">Click Me</button> <script> var x = document.getElementsByTagName("div")[0]; function myFunction(){ x.style.borderImageWidth = "50px"; } </script> <p><strong>Note</strong>: Click on the button to change the 'border-image-width' from 30px to 50px.</p> </body> </html>
OUTPUT
×

Save as Private