Bootstrap Background Image Code Example


Example 1: full page background image

html {    background: url(images/bg.jpg) no-repeat center center fixed;    -webkit-background-size: cover;   -moz-background-size: cover;   -o-background-size: cover;   background-size: cover; }

Example 2: html background image

<!-- Code by Scratchy --> <!-- Twitter: @S_cratchy-->  <head>   <style>     body {       background-image: url(https://wallup.net/wp-content/uploads/2019/09/110394-cats-grey-kittens-fluffy-fat-grass-animals-cat-kitten-baby-cute-748x468.jpg)      }   </style>      <body>     You have set the background image!                  </body>

Example 3: add background image in bootstrap 5

<div class="has-bg-img bg-purple bg-blend-screen">   <h4>Background blend mode: Multiply</h4>   <img class="bg-img" src="..."> </div>

Example 4: bootstrap create full screen background image

.wrapper{background: url('/assets/64531/green_suburb.jpg') no-repeat   center center fixed; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover;}

Example 5: adding background image

body{background-image: url("paper.gif");}

Example 6: css background image

background-image: url("image.gif");

Comments

Popular posts from this blog

Chemistry - Bond Angles In NH3 And NCl3

Are Regular VACUUM ANALYZE Still Recommended Under 9.1?

Can Feynman Diagrams Be Used To Represent Any Perturbation Theory?