Computer >> Computer tutorials >  >> Programming >> Javascript

Shorthand property to set the background in CSS


You can use the background property to set all the background properties at once such as background image position, repeat, etc:

Example

<html>
   <head>
   </head>
   <body>
      <p style = "background:url(/https/www.wsxdn.com/images/pattern1.gif) repeat fixed;">
         This parapgraph has fixed repeated background image.
      </p>
   </body>
</html>