Background Image

LihiL

Joined: 2013-11-16
Posts: 13
Posted: Wed, 2013-12-18 09:55

Hi guys, I would like to change the background of my Gallery - and put an image file instead (as a background). How can I actually do that?

Thanks!

Lihi

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2013-12-18 14:30
 
LihiL

Joined: 2013-11-16
Posts: 13
Posted: Thu, 2013-12-19 20:03

Well, I tried adding this:

#doc4 {
background-image:url('http://www.feelsengine.com/feels-engine-wallpaper.jpg');
background-repeat:no-repeat;
background-attachment:fixed;
background-position:center;
}

But nothing happens. Why?

Thanks

Lihi

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2013-12-22 01:23

what if you add it lower in the file?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
LihiL

Joined: 2013-11-16
Posts: 13
Posted: Sun, 2013-12-22 05:49

Nope. Nothing happens :(

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2013-12-22 07:23

URL to offending page.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2013-12-22 07:32

See if changing to a relative url works.

#doc4 {
background-image:url('http://www.feelsengine.com/feels-engine-wallpaper.jpg');
background-repeat:no-repeat;
background-attachment:fixed;
background-position:center;
}

to

#doc4 {
background-image:url('../feels-engine-wallpaper.jpg');
background-repeat:no-repeat;
background-attachment:fixed;
background-position:center;
}

or move the image to the css directory and try:

#doc4 {
background-image:url('feels-engine-wallpaper.jpg');
background-repeat:no-repeat;
background-attachment:fixed;
background-position:center;
}

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team