guestbook table width

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
raynbo
Posts: 4
Joined: Tue Aug 04, 2009 9:10 am

guestbook table width

Post by raynbo »

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

Write your message below:
I would like to make the guestbook view narrower by decreasing the overall width, but cannot find how to do this - help please
also make the 'Comments' section smaller
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

Hello raynbo,

To change the overall width of the guestbook entries open the style.css file in an editor.
Find the the section

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; */

}
And add a line width: 400px;, you can use your own desired width.
It will now look like (with your own width ofcourse)

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: 400px;
}
to change the width of the comments area you will have to edit the gbook.php file.
The left (Submitted by) part and the right (Comments:) part are defined as percentages of the herefore added width. The standard values are left 35% and right 65%. You can search for these values and change them, each 4 times. Make sure the total remains 100%.

Greetings,
Henrie

PS. Klemen in a new version, could you please make it so that as much as possible layout values (like width of table and cells and text-heights and alignments) are declared in the style.css file?

The edit was to correct a spelling error.
Last edited by Henrie on Thu Aug 13, 2009 10:22 am, edited 1 time in total.
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.
raynbo
Posts: 4
Joined: Tue Aug 04, 2009 9:10 am

guestbook width

Post by raynbo »

thanks very much Henrie - I am a beginner so am grateful for your time helping me
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

No problem.
I was a beginner once too :wink:
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.
Post Reply