change background from color to image

Professional Jomal template designed to be easily adaptable to all kinds of business
GK User
Sun May 16, 2010 7:11 pm
There seems to be something stopping me changing the background from a color to an image. Here's what I'm doing:

> Changing the template.css file
> Changing this:
body { background:line-height:1.7; background:#f4f2ef; }
to:
body { background-image:url('..images/bg_test.png'); }
> Checking in Firebug and in the preview version of the site and just getting clear backgrounds
> Image does definitely exist on my servers

Any ideas?
User avatar
Fresh Boarder

GK User
Sun May 16, 2010 7:27 pm
this is taken from the logo....

try use the same :


h1.logo { width:250px; height:110px; background:transparent url('../images/logo.png') no-repeat 0 6px; padding:0 20px 0 0; }


set the background to transparant url('path/to/image/image.extention')

try that..
User avatar
Platinum Boarder

GK User
Sun May 16, 2010 8:02 pm
nope - still doesn't like it. What is interesting is that a preview doesn't even show up in firebug whereas for all other image references it does. Doesn't seem to like me using an image in the 'background' part of the css...
User avatar
Fresh Boarder

GK User
Sun May 16, 2010 8:31 pm
Hi

Did you try something like this:

Code: Select all
body#bd {background:#000 url('../images/youimage.jpg') no-repeat 0 0;}


Cheers ;)
User avatar
Platinum Boarder

GK User
Sun May 16, 2010 8:42 pm
nope - still not working. Is this something that works for you when you debug using Firebug?
User avatar
Fresh Boarder

GK User
Sun May 16, 2010 9:58 pm
Are you sure? :huh:

Can you show me your website?
User avatar
Platinum Boarder

GK User
Sat Jun 12, 2010 5:24 pm
Seichinha wrote:
Hi

Did you try something like this:

Code: Select all
body#bd {background:#000 url('../images/youimage.jpg') no-repeat 0 0;}


Cheers ;)


following your code, the background becomes dark.

one question

('../images/youimage.jpg') the same with /template/gk_corporate2/images/youimage.jpg ??
User avatar
Junior Boarder

GK User
Sat Jun 12, 2010 5:49 pm
if you change something in template.css and use the code ../images/yourimage.jpg it goes one folder back (back to template/gk_corporate2) and then enters images... so yes :)


if you need help we need to see your www...
User avatar
Platinum Boarder


cron