welcome to tutorialfamily

css background

css background property used for applying background image to element.

You can give background effect too.

css background

  • background-color – Used for a background color
  • background-image – Used for a background image
  • background-repeat – Used for a background-repeat
  • background-attachment – Used for a background-attachment
  • background-position – Used for a background-position

css background

<!DOCTYPE html>
   <title>css tutorial</title>
   color: red;
   font-size: 40px;
   display: block;
   border: 1px dotted #000;
   margin: 5px;
   background-image: url("https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcShAISgkOjae_UL-FyLVlbm7xvzO-rXOcUdmO3IPFTNmgEPUoSX");
   <h1>my car</h1>


Our Content