Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Titre du document</title> <style> .radius-bg { width: 250px; height: 200px; background: #ccc; border: 4px solid #1c87c9; border-radius: 12px; -webkit-border-radius: 12px; -moz-border-radius: 12px; } .radius-img { width: 250px; height: 200px; margin-top: 20px; background-img: lightgray; background: url('/uploads/media/default/0001/01/6ef5dc22756f45ab51d0c510ad0371191ec4ff04.jpeg'); background-position: left top; background-repeat: repeat; border: 2px solid #1c87c9; border-radius: 25px; -webkit-border-radius: 25px; -moz-border-radius: 25px; } </style> </head> <body> <h2> Exemple de border-radius avec background color</h2> <div class="radius-bg"></div> <h2> Exemple de border-radius avec background image</h2> <div class="radius-img"></div> </body> </html>