Page 1 of 1

Font colour changes.

Posted: Mon Jun 20, 2005 9:09 am
by john h.
Script URL: http://www.cjb.cc/members/paxvobiscum/gbook/gbook.php
Version of script:
Version of PHP:
Hosting company: cbj.cc
Have you searched THIS FORUM for your problem: yes
(if not please do before posting)
If so, what terms did you try:

Write your message below:
Hi there and thanks so far for a great script. I am a novice here and would like to know how you can change font colour, size etc for the Title and entries..in fact all text! I have tried to change the styl.css and stlye.text files but they dont't seem to show up on the index page. Any help would be gratefully received. Thanks :)

Posted: Mon Jun 20, 2005 10:20 am
by Klemen
Hello John,

You can do that by editing file "style.css". Open it in a plain text editor (like Notepad or Wordpad) and just edit values for font size and color codes.

If you want to change font size from 12 points you would change this code:
font-size : 12px;
to for example 10 points:
font-size : 10px;
throughout the style.css file.

Color values are all the 6 char values starting with a #, for example:
#000000
#FFFFFF
#FFCC00
etc.

You can find HTML codes for different colors here:
http://www.google.com/search?q=hex+color+codes

Once you make all the changes save style.css and upload it to your server. Then try reloading your GBook.

Remember, it's all trial and error, but you should get it working quite easily.

If you want to learn more about CSS (Cascading Style Sheets) see
http://www.google.com/search?q=CSS

Regards

thanks

Posted: Mon Jun 20, 2005 12:57 pm
by john
thank you very much. Great help! and thanks for the script too! :mrgreen: