Css:- Background selector


The background-image property sets one or more background images for an element. 
The background of an element is the total size of the element, including padding and border (but not the margin)
By default, a background-image is placed at the top-left corner of an element, and repeated both vertically and horizontally.
Always set a background-color to denote whenever the image is unavailable.


Code:-



<!DOCTYPE html> 
<html> 

<head> 
 <meta name="viewport" content="width=device-width, initial-scale=1"> 

 <style> 
  body { 
   background-image: url("natural.jpg"); 
  } 
 </style> 

</head> 

<body> 

</body> 


</html>
Css:- Background selector Css:- Background selector Reviewed by Network security on May 13, 2019 Rating: 5

No comments:

Useful Information

Powered by Blogger.