I have an HTML file with a subdirectory called img
with an image called debut_dark.png
. In my CSS file, I have:
body {
backgro
Its always good to have these additional properties besides the
background-image:url('path') no-repeat 0 0;
set dimension to the element
width:x; height:y;
background-size:100%
I was having the same issue, after i remove the repeat 0 0 part, it solved my problem.
body {
background: url("../img/debut_dark.png") no-repeat center center fixed;
}
Worked for me.