Page 1 of 1

Header Image Not Showing

Posted: Sun Jun 10, 2012 1:03 am
by cAdams
Using GB 1.7, I've since renamed my header gif and changed my background png.

I uploaded both but now the newly named header gif won't display. The new png image displays beautifully.

body{margin:11px; padding:0; background-image:url(images/lens.png); background-repeat:repeat-x; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif; font-size:12px; color:#000000;}

#gbook_header{margin-left:915px; background-image:url(images/cmafoto header.gif); background-repeat: no-repeat;}


As suggested in another thread, I changed the header.txt file to include the renamed gif but it still won't show itself. Same gif image just a different name :evil:

Any other suggestions pls :?

Re: Header Image Not Showing

Posted: Mon Jun 11, 2012 5:44 am
by Henrie
I have not tested, but I think the problem might be that there is a space in the name of the gif file.
Replace the space with an underscore,

Code: Select all

#gbook_header{margin-left:915px; background-image:url(images/cmafoto_header.gif); background-repeat: no-repeat;}
or place the name between double quotes

Code: Select all

#gbook_header{margin-left:915px; background-image:url("images/cmafoto header.gif"); background-repeat: no-repeat;}
Greetings,
Henrie

Re: Header Image Not Showing

Posted: Tue Jun 12, 2012 5:12 am
by cAdams
Thanx Henrie.

Your second suggestion to include double quotes worked :D

Why the png image doesn't need the same formatting is why technology is beyond me in instances like this :P

Re: Header Image Not Showing

Posted: Tue Jun 12, 2012 5:45 am
by Henrie
cAdams wrote:Why the png image doesn't need the same formatting is why technology is beyond me in instances like this
That is because the filename of the png file images/lens.png contains no spaces.

And the first solution does work, you just have to also rename the filename to cmafoto_header.gif . I forgot to write that in the solution :wink: .

Greetings,
Henrie