June 29, 201115 yr Hello everyone! im having a problem in displaying background image on this site: www.rcbosijek.com i have a bg image thats going gradient from black to dark grey, and bg color of a page is dark grey, but my bg image doesnt appear in any browser... here is my css for body: body { font-family: Arial, Helvetica, sans-serif ; margin: 0 ; padding: 0 ; border: 0 ; outline: 0 ; background: url(Images/bg1.gif) ; background-repeat: repeat-x ; background-color: #121212 ; text-align: center; } where is the problem? thanx in advance!
June 29, 201115 yr Using firebug its saying the image is missing and cant find it (404) So you need to check your file path of your image and make sure its correct. Is your css file in a sub folder? If so try this: background: url(../images/bg1.gif) ; Edited June 29, 201115 yr by brucebat
June 29, 201115 yr Author yep, Images <> images ? lol that solved it! thank you very much, i feel pretty dumb now...
June 29, 201115 yr Erm, just a quick tip, why not combine all of the background CSS? background: #121212 url('images/bg1.gif') repeat-x; Less lines = faster site
Create an account or sign in to comment