This is a discussion on "pages shift slightly" within the Web Page Design section. This forum, and the thread "pages shift slightly are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
pages shift slightly
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
pages shift slightly
My site (http://www.calgarybridge.com/PRACTICE/) is finished and ready to replace http://www.calgarybridge.com but one thing is bothering me.
Everything is inside a div.container and is centered on the page. If I give the container a height of "auto" some of the pages will shift to the right slightly when loaded. I can see this in Netscape, Firefox and Opera. It happens when the centre div changes from having a bit of information to a lot. I can fix this by specifying a height of 840 pixels but this gives me scroll bars even when they are not needed. The original site has a fixed height and handles the changes well but I really would like to fix it the proper way. I just do not know how. Thanks for any replies in advance. |
|
|
|
||||
|
Re: pages shift slightly
It's because of the scrollbars appearing on the page
|
|
|||
|
Re: pages shift slightly
Thanks for your response. I read something similar on another Forum. The code I used worked in netscape and firefox but not opera.
html { min-height:100.1%; } |
|
||||
|
Re: pages shift slightly
Yes, mine is better. It works in IE and Opera, and that code won't.
|
|
|||
|
Re: pages shift slightly
Thanks Ryan. You were close. It did not work in Opera until I made a slight change in your code
html, body { height: 100.1%; margin: 0 0 1px; } Thanks again I am very pleased to solve this |
|
|||
|
Re: pages shift slightly
html, body {
height: 100.1%; margin: 0 0 1px; } I also changed the height on the div.container to "auto" This fixed the scroll bar problem in all browsers but gave me another problem On my a-z photo pages and my Unit Board page (all have photos) , half of my header would disappear and the backgrounds to my menus would go also. There was a white oblong obscuring it. I had to use a slightly different Style sheet with the height set to 840px and with none of the other extra code above included. Frustrating. The code on any of the a-z photo pages is the original css(photo.css) while the layers.css on other pages is the changed one you recommended. The problem was not with just IE. All the browsers were screwing up the pages. here is a link to a page to show you what I mean http://www.calgarybridge.com/PRACTICE/problem.htm Something is conflicting with the new info . maybe I have been looking at it too long to see the problem This problem shows up in the other 3 browsers but not IE 6 OR 7 Last edited by mufc; Jan 26th, 2007 at 13:50. |
|
||||
|
Re: pages shift slightly
Safari used to have this issue with the scroll bar shifting it a bit left as it displayed inside the window. A weird and annoying issue indeed. Caused many people a headache or two.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
![]() |
| Tags |
| height auto problems |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| postion slightly out on IE and FF | wood1e | Web Page Design | 4 | Sep 23rd, 2007 06:51 |
| iframe's: slightly complex, need help | deymeraff | Web Page Design | 0 | Jun 8th, 2007 04:02 |
| Slightly embarassing forms question:-) | Michaeln | Web Page Design | 3 | Feb 19th, 2007 14:01 |
| Moving table to left slightly | jj1234 | Web Page Design | 4 | Mar 13th, 2006 15:50 |
| Slightly Pixilated/Blurry Flyer | kahlie | Graphics and 3D | 7 | Dec 9th, 2005 22:47 |