Gossamer Forum
Home : Products : Links 2.0 : Customization :

Background Color for Netscape

Quote Reply
Background Color for Netscape
I am getting the grey background that defaults in Netscape. IE has a white default. How can I change the backgroud color to white.

In site_htmp.pl I have this:

# If you set any colours or a background image using the body tag then you
# should use transitional DTD (MSIE3 does not use the CSS background and can cause the site
# to look strange it the browser default background color is set left as the default grey)
$site_body = 'body bgcolor="#FFFFFF" text="#000000"';
#$site_body = 'body';

Is this correct?? as it is still grey in Netscape.

Thanks,

Mike

Quote Reply
Re: Background Color for Netscape In reply to
Use the following codes:

Code:

$site_body = qq|body bgcolor="#FFFFFF" text="#000000"|;


The problem is with the operators you've chosen. Better to use qq| |; or qq! !; or qq~ ~;.

Regards,

Eliot Lee
Quote Reply
Re: Background Color for Netscape In reply to
So it should be:

$site_body = qq|body bgcolor="#FFFFFF" text="#000000"qq| |;


I'm not using css


Quote Reply
Re: Background Color for Netscape In reply to
NO!

Did you even TRY the codes I already gave you? Read my REPLY again. And CSS has nothing to do with this.

Unless you have referenced the CSS file in your template files, which needs to be removed if you are NOT using the CSS file.

Regards,

Eliot Lee
Quote Reply
Re: Background Color for Netscape In reply to
I changed it to this, uploaded and rebuilt through admin, but the background in Netscape is still grey. Do I need to alter any more files?

Thanks,

Mike

# If you set any colours or a background image using the body tag then you
# should use transitional DTD (MSIE3 does not use the CSS background and can cause the site
# to look strange it the browser default background color is set left as the default grey)
$site_body = qq|body bgcolor="#FFFFFF" text="#000000"|;
#$site_body = 'body';


Quote Reply
Re: Background Color for Netscape In reply to
Uh...if you are using templates, then you need to define the site_body as a global tag:

Code:

site_body => $site_body


in the %globals hash in the site_html_templates.pl file.

And then in your TEMPLATE files, use:

Code:

<%site_body%>


If you are using site_html.pl (non-templates, but I hope you are not based on the difficulties you've illustrated in this Thread), you need to use:

Code:

<$site_body>


IN ALL the subs in the site_html.pl file.

Got it???

Been discussed before...please search the forums more carefully next time. Thank you!

Regards,

Eliot Lee