Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <style> .border { border: 10px solid transparent; padding: 15px; border-image: url("/uploads/media/default/0001/01/812bf6a749522b8185c1beee20dd99dd6c6c87da.jpeg") round; border-image-slice: 20%; } </style> </head> <body> <h2>Exemple de border-image-slice</h2> <p class="border">Ici le border-image-slice est défini à 20%.</p> <p>Ici l'image originelle est utilisée:</p> <img src="/uploads/media/default/0001/01/812bf6a749522b8185c1beee20dd99dd6c6c87da.jpeg" style="width:50%"> </body> </html>