Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <style> .border1 { border: 10px solid transparent; padding: 20px; border-image: url("/uploads/media/default/0001/01/812bf6a749522b8185c1beee20dd99dd6c6c87da.jpeg"); border-image-slice: 10%; border-image-repeat: round; border-image-width: 20px; } .border2 { border: 10px solid transparent; padding: 20px; border-image: url("/uploads/media/default/0001/01/812bf6a749522b8185c1beee20dd99dd6c6c87da.jpeg"); border-image-slice: 10%; border-image-repeat: round; border-image-width: 20px 10px; } .border3 { border: 10px solid transparent; padding: 40px; border-image: url("/uploads/media/default/0001/01/812bf6a749522b8185c1beee20dd99dd6c6c87da.jpeg"); border-image-slice: 10%; border-image-repeat: round; border-image-width: 20px 10px 40px; } .border4 { border: 10px solid transparent; padding: 55px; border-image: url("/uploads/media/default/0001/01/812bf6a749522b8185c1beee20dd99dd6c6c87da.jpeg"); border-image-slice: 10%; border-image-repeat: round; border-image-width: 20px 10px 40px 55px; } </style> </head> <body> <h1>Exemple de border-image-width </h1> <p class="border1">Ici la border-image-width est définie 20px.</p> <p class="border2">Ici la border-image-width est définie 20px et 10px.</p> <p class="border3">Ici la border-image-width est définie 20px, 10px et 40px.</p> <p class="border4">Ici la border-image-width est définie 20px, 10px, 40px et 55px.</p> </body> </html>