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>Пример border-image-width</h1> <p class="border1">Здесь установлено 20px для border-image-width.</p> <p class="border2">Здесь установлено 20px и 10px для border-image-width.</p> <p class="border3">Здесь установлено 20px 10px and 40px для border-image-width. </p> <p class="border4">Здесь установлено 20px 10px, 40px и 55px для border-image-width.</p> </body> </html>