HTML Editor
<!DOCTYPE html> <html lang="en-US"> <head> <style> div{ border: 50px solid transparent; padding: 15px; width: 150px; margin: 25px; text-align: center; border-image-source: url(car-left.png); border-image-repeat: repeat; } </style> </head> <body> <h1>CSS border-image-source 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.borderImageSource = "none"; } </script> <p><strong>Note</strong>: Click on the button to remove the 'border-image-source'.</p> </body> </html>
OUTPUT
×

Save as Private