Css image will not be displayed

I tried everything! But my background image (gif) will not appear.

My files are stored in my public_html on ftp.

I have a file linked this way in my html document:

<link href="css/arena.css" rel="stylesheet" type="text/css" />

And I have the following lines in css:

body {
background-image: url('../images/2.gif'); 
}

I hope someone can help me because it is really frustrating.

Thanks in advance.

+4
source share
2 answers

There is an error in your syntax, you need to delete :.

url('../images/2.gif) instead url:('../images/2.gif')

You can check the documentation about the properties of the background image .

+4
source

The problem is resolved. This is due to permissions. Thanks y'all for the help, very grateful!

+2

All Articles