Answers for "set html img to background"

CSS
16

html background image

<style>
body {
  background-image: url('img_girl.jpg');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
}
</style>
Posted by: Guest on May-20-2020
0

html img src background

#page {
    background-image: url('http://gianlucaguarini.com/canvas-experiments/jQuery.BlackAndWhite/files/big-img.jpg');
    width: 800px;
    height: 533px;
}
Posted by: Guest on August-04-2021

Browse Popular Code Answers by Language