Answers for "fixed background image using html and css\"

CSS
5

how to make fixed background image in css

body {
  background-image: url("img_tree.gif");
  background-repeat: no-repeat;
  background-attachment: fixed;
}
Posted by: Guest on February-16-2021
1

fixed image background css

#hero1{
 background:url(https://4.bp.blogspot.com/_AQ0vcRxFu0A/S9shDGGyMTI/AAAAAAAAAYk/kn3WTkY2LoQ/s1600/IMG_0714.JPG);
  background-size:cover;
  background-position:center center;
  background-attachment:fixed;
Posted by: Guest on April-06-2022

Code answers related to "fixed background image using html and css\"

Browse Popular Code Answers by Language