S
S
sweet12322021-07-09 17:22:28
css
sweet1232, 2021-07-09 17:22:28

The image is not displayed, what should I do?

.toggle {
    background: url(menu.png);
  }


The picture is not displayed. the path to the file is correct and the file name too. the same code in html in style tag is already working

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Ineshin, 2021-07-09
@sweet1232

This usually means that your CSS file is not in the same directory as the image. Maybe you need to write something likeurl('../menu.png')

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question