Page 1 of 1
guestbook table width
Posted: Tue Aug 04, 2009 1:21 pm
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
Posted: Thu Aug 13, 2009 9:50 am
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.
guestbook width
Posted: Thu Aug 13, 2009 10:03 am
by raynbo
thanks very much Henrie - I am a beginner so am grateful for your time helping me
Posted: Thu Aug 13, 2009 10:21 am
by Henrie
No problem.
I was a beginner once too
