Answers for "how to add a picture background in html"

CSS
0

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
0

how to embed a url in html for background

div {
   /* Background pattern from Toptal Subtle Patterns */
   background-image: url("https://amymhaddad.s3.amazonaws.com/morocco-blue.png");
   height: 400px;
   width: 100%;
}
Posted by: Guest on December-10-2020

Code answers related to "how to add a picture background in html"

Browse Popular Code Answers by Language