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
guestbook table width
Hello raynbo,
To change the overall width of the guestbook entries open the style.css file in an editor.
Find the the section
And add a line width: 400px;, you can use your own desired width.
It will now look like (with your own width ofcourse)
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.
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; */
}
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;
}
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.
guestbook width
thanks very much Henrie - I am a beginner so am grateful for your time helping me