Home › Forums › CSS › CSS bg image with position fixed and centered? › Reply To: CSS bg image with position fixed and centered?
February 21, 2019 at 10:24 am
#283384
Participant
html {height:100%;}
body {
position: fixed;
height: 100%;
margin: 0px;
font-family: Arial;
font-size: 14px;
color: #999;
text-align: center;
background: #975d7f url(“pix/bg2.jpg”) no-repeat top center;
background-size: cover;
background-color: #000000;
overflow-y: scroll;
}