Any time I try to input image in my css code the image will not show why | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Any time I try to input image in my css code the image will not show why

Xhx

4th Nov 2020, 9:42 PM
Emmanuel Ezoba
Emmanuel Ezoba - avatar
2 Answers
+ 6
Don't spam,search for similar questions using search bar like "how to insert image in html" and you will find many answers to it ,
4th Nov 2020, 10:08 PM
Abhay
Abhay - avatar
+ 1
Paste a link to an example of when the image doesn't show so we can reproduce the issue. There are many possible problems that can't be narrowed down without looking at your code and reproducing the problem: - Maybe your link to the image is broken. - Maybe your CSS selector isn't actually selecting the HTML element you want. - Maybe your CSS property is specified incorrectly. This won't work: background-image: yo.png - Maybe your CSS is invalid elsewhere and that problem causes the rest of your CSS to be ignored. Forgetting to close a { in a previous selector can cause trouble for the rest of the CSS.
12th May 2021, 4:37 AM
Josh Greig
Josh Greig - avatar