The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › Problem, background-Image ?
my image does’nt show on page. here, my site folder structure
index.html css (folder) -> template.css | i use @import to call head.css -> cssOne (folder) head.css in cssOne (folder)
images(folder) -> header.jpg
in head.css , i write code
pageOne {
background-image : url(../images/header.jpg); height : 452px; width : 100%; }
but it does’nt work , please help
So something like this:
/cssOne /cssOne/head.css /images/ /images/header.jpg /template.css (this file imports /cssOne/head.css) /index.html
right?
So the background-image code should be:
.pageOne{ background-image : url('images/header.jpg); height : 452px; width : 100%; }