Answers for "best way to add background image in html"

0

how to make a still background image in html

<body style="background-image: url(your image url here);
  background-repeat: no-repeat;
  background-attachment: fixed;">
Posted by: Guest on January-15-2021
-2

Add background image html

<!-- Background image -->
<div class="bg-image" style="
      background-image: url('https://mdbootstrap.com/img/new/standard/city/041.jpg');
      height: 100vh;
    "></div>
<!-- Background image -->
Posted by: Guest on August-08-2021

Code answers related to "best way to add background image in html"

Browse Popular Code Answers by Language