Can't set background for id="top-menu" what could be wrong?

July 2nd 19 at 16:53
4 answers
July 2nd 19 at 16:55
Try to do that separately

background: url(link);
background-repeat: repeat-x;

If not, try to change the reference to the background, if you work locally, there are glitches.
Put for example just images/fon-menu.png
that's why he didn't like!!!! - nikita.Stracke commented on July 2nd 19 at 16:58
July 2nd 19 at 16:57
Option 1: everything works, but as the width of Your block 0, then You don't notice
Option 2: the path to the background is not correct
set the width, checked the path, nothing has changed, background is not displayed - nikita.Stracke commented on July 2nd 19 at 17:00
: it does not happen, lay on - nikita.Stracke commented on July 2nd 19 at 17:03
why is 0 when 100% is div - Henderson_Beat commented on July 2nd 19 at 17:06
July 2nd 19 at 16:59
I did not understand why there are the width of the block 0 should be.
that show developer tools?

I feel that the styles are not connected: in html they are pulled from the root, but to the image the path is like styles already in a separate folder.
July 2nd 19 at 17:01
Yes, most likely he is not like this ../ try it /images/ images or/ or even ../../ depending on your nesting

Find more questions by tags CSSHTML