Usage of background property in CSS

The background property is used as a shorthand to specify the number of other background properties such as image, position, repeat, etc.

<html>
   <head>
   </head>
   <body>
      <p style = "background:url(/images/pattern1.gif) repeat fixed;">
         This parapgraph has fixed repeated background image.
      </p>
   </body>
</html>
Updated on: 2020-01-30T09:22:35+05:30

103 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements