Toggle navigation
☰
Home
HTML
CSS
Scripting
Database
<!DOCTYPE html> <html> <head> <title>Example</title> <!-- CSS --> <style type="text/css"> html, body { height: 100%; } body { background-image: url(/pix/samples/bg1.gif); background-repeat: no-repeat; background-size: cover; } </style> </head> <body> <!-- HTML --> <p>This page has a stretched background image...</p> <p>And here is the image at it's original size:</p> <img src="/pix/samples/bg1.gif" style="border:1px solid black;"> </body> </html>