Setting full cover image as background in html

Recently, we wanted to set the image as full cover background and this image should remain static as user scrolls the page. This can easily be done using CSS as below,

<style> body, html { background-image: url(''); background-attachment: fixed; background-size: cover;
<h1>It works!</h1>
<p>This is the default web page for this server.</p>
<p>The web server software is running but no content has been added, yet.</p>
This is a template, from http://localhost/index.html
READ  Designing & trying with website fonts and font css options

Leave a Reply

Your email address will not be published. Required fields are marked *