Shorthand property to set the background in CSS

JavascriptWeb DevelopmentFront End Scripts

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(/images/pattern1.gif) repeat fixed;">
         This parapgraph has fixed repeated background image.
      </p>
   </body>
</html>
raja
Published on 13-Apr-2018 08:29:37
Advertisements