Pages

Thursday, March 29, 2018

add background image on full width and height of a screen html and css

Watch Tutorial


<!doctype html>
<!-- Powered By Computer Master -->
<html>

<style>
*{ 
margin:0px; 
padding:0px; 
}
body, html{
height:100%;
}
#bgimg{
<!-- please add adress of your image you want to show down here -->
     background-image: url("image.jpg");
height:100%; 
background-position:center;
background-size:cover;  
}
</style>

<body>

<div id="bgimg"></div>
 
</body>


</html> 

No comments:

Post a Comment