Page 1 of 1

Page shifts slight to right.

Posted: Mon Nov 21, 2011 3:48 pm
by vr4legacy
Script URL: http://www.hyettfamily.com/guestbook/gbook.php
Version of script: 1.7
Hosting company: StartLogic
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: margin, left margin, indent, shift right, adjust margin

Write your message below:

When I load my guestbook page, it appears it shifts slightly to the right. If you visit the page http://www.hyettfamily.com/guestbook/gbook.php and then click any link on the top of the page to navigate through the site, you will see that all the other pages are slightly to the left (approx 4-5px) This problem occurs in IE and Chrome, I have not tested in other browsers.

I have tried editing the style.css to adjust margins and padding where I feel appropriate, but can't seem to fix it. Initially the page was shifted up and to the right, I was able to remove the top padding. I am sure it is something simple I am overlooking, but I can't think where else to look.

I am using two css, one is for my other pages, and I am using it for the menu.html file I have included in the header.txt file. I don't think this is causing any problems, but could be a source.

Thanks for the great script, it works wonderful and fits the bill perfectly for what I need, very customizable and simple.

I apologize for not including the zip files, but I am away from my home computer and can't upload right now. However this isn't a problem with the script, however an aesthetics problem. If you need those uploaded I will do so when I get home.

Thanks in advance for any help.

Re: Page shifts slight to right.

Posted: Mon Nov 21, 2011 5:29 pm
by Henrie
It is because of the vertical scrollbar.
The content of the pages are centered. When there is a scrollbar the page widht is less than without a scrollbar. Therefor the contents of a page with scrollbar is placed slightly more to the left than the contents of a page without a scrollbar.

This can only be solved by using left alignment or by using javascript to calculate pagewidth and place content accordingly (can't help you with the javasript though as I would not know how to do it).

Greetings,
Henrie

Re: Page shifts slight to right.

Posted: Mon Nov 21, 2011 6:10 pm
by vr4legacy
Wow, that was too simple. I should have seen that one. I had the same problem with a couple other pages, but apparently it didn't click here.

I'll just add a footer, which should create enough content to require a scrollbar, solving the problem. Worked on my other pages.

Thanks!

And thanks again for the great software, next on my to-do is to create a links page. You guys will be there front and center.

Re: Page shifts slight to right.

Posted: Mon Nov 21, 2011 6:51 pm
by Henrie
The guys is just Klemen :wink:
I am just a very regular board visitor who loves the scripts too.

Greetings,
Henrie