Page 1 of 1
Width of guest book
Posted: Sun Apr 20, 2008 11:09 pm
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.
Posted: Mon Apr 21, 2008 4:13 pm
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
Posted: Mon Apr 21, 2008 8:39 pm
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
Posted: Tue Apr 22, 2008 2:06 am
by Dent Tec
Never mind. I found the way