Ask coding questions

← Back to all posts
CSS not working
isaiah08 (63)

Line 13 of static/style.css. Why does the background image not show up? Thanks!

Comments
hotnewtop
RYANTADIPARTHI (6001)

Solution

in your static/style.css file, you have the background-image: url('/static/background.png'), but your actual image spells backround.png.
Either rename you image, or change your background-image: url('/static/backround.png') to background-image: url('/static/backround.png')

like that.
IT should work

Coder100 (17018)

works for me. Make sure you don't have any typos and your syntax is correct.
Also, make sure you are loading over HTTPS. For security, HTTP loaded things wor't work.

KENNETHTRIPP (50)

You spelled background wrong in the background-image url() property. The file is called backround.png. It is spelled background.png in the url() property. This should work. Please mark my answer if it did.