BonfireConspiracy
BonfireConspiracy

Reputation: 61

css background image won't display

I have tried everything! But my background image (gif) won't show up..

My files are stored in my public_html on ftp.

I have my file linked like this in my html doc:

<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 out because this is really frustrating.

Thanks in advance.

Upvotes: 4

Views: 27853

Answers (3)

Mac Hooper
Mac Hooper

Reputation: 115

Changing the path to include ../img/bgheader.jpg fixed it.

Upvotes: 1

BonfireConspiracy
BonfireConspiracy

Reputation: 61

Problem is solved. It had to do with the permissions. Thanks y'all for helping out, greatly appreciated!

Upvotes: 1

Ahmad
Ahmad

Reputation: 477

There is an error in your syntax, you have to remove :.

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

You could check background-image property documentation.

Upvotes: 4

Related Questions