Answers for "html element to keep an image as background"

CSS
5

how to change background image in html

<style>
div {
  background-image: url('img_girl.jpg');
}
</style>
Posted by: Guest on July-24-2020
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 "html element to keep an image as background"

Browse Popular Code Answers by Language