Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Markup (HTML, XHTML, XML) _ Page moving

Posted by: bigginge May 4 2012, 03:20 AM

I recently finished a site, http://www.sierra.co.uk/, but looking at it this morning I notice there is a slight movement between, say, the Home page and he Other Courses page. All pages are made with header, content and footer divs which have commom measurements. Any ideas why they should move, please?

Posted by: Frederiek May 4 2012, 04:39 AM

That's because the Other Courses page doesn't have (or needs) vertical scrollbars like the Home page does.

Posted by: bigginge May 4 2012, 08:47 AM

QUOTE(Frederiek @ May 4 2012, 10:39 AM) *

That's because the Other Courses page doesn't have (or needs) vertical scrollbars like the Home page does.


Ah, I see, thank you. If I close up the browser window they're both the same. Is there a way round this?

Posted by: Frederiek May 5 2012, 03:31 AM

See http://css-tricks.com/eliminate-jumps-in-horizontal-centering-by-forcing-a-scroll-bar/ .

Posted by: bigginge May 5 2012, 04:57 AM

QUOTE(Frederiek @ May 5 2012, 09:31 AM) *

See http://css-tricks.com/eliminate-jumps-in-horizontal-centering-by-forcing-a-scroll-bar/ .

Thank you
CODE
html {
    overflow-y: scroll;
}
worked a treat. Impressive.

Posted by: Frederiek May 6 2012, 04:16 AM

You're welcome.

Posted by: Frederiek May 9 2012, 01:10 AM

It's CSS.

This has nothing to do with server-side or client-side programming.
Why copy a reply by Darin in another thread that's out of place here?

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)