<!DOCTYPE html> <html> <head> <style> div { background-image:url("/images/codingb-96x96.png"); padding:10px 20px; /*The padding of div element*/ border:10px solid rgb(200,200,200); background-clip:padding-box; } </style> </head> <body> <div>This is div element. And the background of this elemenet is an image.</div> </body> </html>
Run
×
Share