Page 1 of 1

Scrolling broken

Posted: Sat Dec 20, 2008 4:13 am
by edmullen
Script URL: http://edmullen.net/gbook/gbook.php
Version of script: 1.6
Hosting company: 1 and 1 dot com
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:

I hadn't checked my guestbook in a month or so and when I did today I could not scroll vertically. The scroll bar is not functional.

Happens with SeaMonkey, Firefox, IE7, and Safari.

Any ideas where I should start?

Posted: Sat Dec 20, 2008 2:19 pm
by Henrie
Hi Ed,

First of all, it is not a problem of GBook.

But because i was intrigued and i have two weeks of christmas vacation, i looked at your page.

The problem is in the ahs.css (or default.css) file you use.
In the ahs.css you have (i use the ahs.css as example because it is called last, so this code will be used instead of default.css):

Code: Select all

#doc_header {
	background:  #e4dfd9 url(/Abington/Abiglogo_head.gif) repeat;
	color: #000;
	font-family: "Trebuchet MS", Arial, Helvetica, Geneva, Sans-Serif;
	font-size: 90%;
	font-weight: normal;
	left: 0em;
	right: 0em;
	top: 0em;
	position: fixed;
	visibility: visible;
	width: 110%;
	z-index: 3;
	border-style: none none solid none;
	border-width: 0em 0em 0em 0em;
	border-color: #006600;
}
The problem is the

Code: Select all

position: fixed;
Because when i replace it with

Code: Select all

position: absolute;
the scroll bars are back (but the menu will not be on fixed top of page anymore).
Unfortunately i have no solution for that yet.
I might get back on you on this, because like i said, i am intrigued by it.

Greetings,
Henrie

Posted: Sat Dec 20, 2008 2:49 pm
by Henrie
I have found the error.

Open your header.txt file in the gbook folder
As last line enter:

Code: Select all

</div><!-- closing <div id="doc_header"> -->
Because the entire gbook code was in the <div id="doc_header"> it got the style position: fixed. And that is exactly what it did, it was fixed on the page.

Greetings,
Henrie

Posted: Sat Dec 20, 2008 5:20 pm
by edmullen
Henrie wrote:I have found the error.

Open your header.txt file in the gbook folder
As last line enter:

Code: Select all

</div><!-- closing <div id="doc_header"> -->
Because the entire gbook code was in the <div id="doc_header"> it got the style position: fixed. And that is exactly what it did, it was fixed on the page.

Greetings,
Henrie
Awesome! Thank you so much, Henrie!