Font colour changes.

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
john h.

Font colour changes.

Post 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 :)
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
john

thanks

Post by john »

thank you very much. Great help! and thanks for the script too! :mrgreen:
Post Reply