Width of guest book

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
Dent Tec
Posts: 5
Joined: Thu Apr 10, 2008 5:45 pm

Width of guest book

Post by Dent Tec »

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:
==================================

How do I change the width of the content area ? Please look at this http://denttec.ca/guestbook/gbook.php?a=sign I want to expand the white area to certain width. Thanks for helping.
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

Hello Dent Tec,

To change the width, open the file style.css
Find the style for div.centered table.entries, this now looks like this:

Code: Select all

div.centered table.entries {
   color : Black;
   font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
   font-size: 11px;
   BORDER-RIGHT: #23559C 1px solid;
   BORDER-LEFT: #23559C 1px solid;
   BORDER-TOP: #23559C 1px solid;
   BORDER-BOTTOM: #23559C 1px solid;
   margin: 0px auto 10px auto; /* margin: top right bottom left; */
}
add the width property. When set to 500px it will look like this:

Code: Select all

div.centered table.entries {
   color : Black;
   font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
   font-size: 11px;
   BORDER-RIGHT: #23559C 1px solid;
   BORDER-LEFT: #23559C 1px solid;
   BORDER-TOP: #23559C 1px solid;
   BORDER-BOTTOM: #23559C 1px solid;
   margin: 0px auto 10px auto; /* margin: top right bottom left; */
   width: 500px;
}
Be aware that this will also change the width of the GBook entries as it uses the same class.

Greetings,
Henrie
Dent Tec
Posts: 5
Joined: Thu Apr 10, 2008 5:45 pm

Post by Dent Tec »

Thank you Henrie

I have another question. On line 835 I insert class="centered-table" in the <table ....>because I want everything to be in the middle of the page. Only "Your Name", "Where are you from", "Your website" and "Your email" get centered. The rest of them don't. I declare class centered-table in my css file which is include in the header.txt. Can you tell me why it does it ? Here is my link http://denttec.ca/guestbook/gbook.php?a=sign
Dent Tec
Posts: 5
Joined: Thu Apr 10, 2008 5:45 pm

Post by Dent Tec »

Never mind. I found the way
Post Reply