Background Color

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
evenstephencom
Posts: 56
Joined: Sat Apr 03, 2010 9:04 pm

Background Color

Post by evenstephencom »

Script URL:
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:

If I insert the code: < body bgcolor="66cc body> will I indeed get a brown background on my page?

Thanks!
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Re: Background Color

Post by Henrie »

Hello eventsephencom,
evenstephencom wrote:If I insert the code: < body bgcolor="66cc body> will I indeed get a brown background on my page?
No it will not, because what you wrote is not valid html code.
The correct code would be

Code: Select all

<body style="background-color:#C27E3A">
But in GBook all styles are defined in an external css stylesheet, you can find it in styles/default/style.css
You would have to change:

Code: Select all

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

Code: Select all

body{margin:0; padding:0; background-color:#C27E3A ; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12px; color:#003399;}
Learn more about html coding here: http://www.w3schools.com/html/html_styles.asp
And see about colors: here: http://www.w3schools.com/html/html_colors.asp or here http://www.immigration-usa.com/html_colors.html

Greetings,
Henrie
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
evenstephencom
Posts: 56
Joined: Sat Apr 03, 2010 9:04 pm

Background Color

Post by evenstephencom »

Thanks to both of you for your help! I'll try to insert that code this weekend into my GB.

Ken
:D
Post Reply