Untitled

mail@pastecode.io avatarunknown
plain_text
a month ago
718 B
0
Indexable
Never
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Stretched Image</title>
    <style>
        /* Reset default margin and padding values */
        body, html {
            margin: 0;
            padding: 0;
            height: 100%;
        }

        /* This ensures that the image will stretch to cover the entire window */
        img.stretched {
            width: 100%;
            height: 100%;
            display: block; /* Removes any default margins/padding around the image */
        }
    </style>
</head>
<body>

<img src="my-image.jpg" alt="Description of Image" class="stretched">

</body>
</html>