@import url(reset.css); #body { font: 13px/1.4 Arial, Verdana, Tahoma sans-serif; background: url(../images/main_bg.jpg); } 

Inserted a picture, refresh the page - there is no background image, why? What did I do wrong?

  • one
    #body ?? - what's that anyway? are you sure you aren’t the body {...} - Pavel Igorevich
  • one
    Here I have 2 options - I think more and should not be. You either make a mistake with #body or you make a mistake and your path to the file relative to the html file is not correct. - Pavel Igorevich

1 answer 1

  "#body" - как обращение к елементу с ID="body" Если хотите обратится к тагу <body></body> тогда в CSS надо писать без решотки(#); body{ font: 13px/1.4 Arial, Verdana, Tahoma sans-serif; background: url(../images/main_bg.jpg); }