-
1. Re: Why does my pages shift position?
MurraySummers Sep 13, 2011 1:02 PM (in response to Keith Goodwin)Add this to your CSS -
html { overflow-y:scroll; }
It will force all pages to have a vertical scrollbar even if they don't need one. That should stop your page jump.
-
2. Re: Why does my pages shift position?
Keith Goodwin Sep 13, 2011 5:54 PM (in response to MurraySummers)The only CSS I used was to format the text. I know very little code. Can you be a little more specific about where or how I might add this code?
-
3. Re: Why does my pages shift position?
mytaxsite.co.uk Sep 13, 2011 6:21 PM (in response to Keith Goodwin)Keith Goodwin wrote:
The only CSS I used was to format the text. I know very little code. Can you be a little more specific about where or how I might add this code?
You haven't given us a link to your site so it is impossible to be specific. The ideal place to put the code is in your style sheet so that it propages to all your pages assuming the same style sheet is used for all. However, for a single page to test, enter the code in the HEAD section of your page. It should look something like this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled 1</title>
<style type="text/css" media="all">
html { overflow-y:scroll; }
</style>
</head>
<body>
</body>
</html>The emphasized text is all you need to enter.
-
4. Re: Why does my pages shift position?
MurraySummers Sep 13, 2011 6:25 PM (in response to Keith Goodwin)Change this -
</head>
to this -
<style type="text/css">
html { overflow-y:scroll; }
</style>
</head>
Now go get busy learning code!
-
5. Re: Why does my pages shift position?
steelycal09 Sep 13, 2011 7:53 PM (in response to MurraySummers)Murray *ACP* wrote:
Add this to your CSS -
html { overflow-y:scroll; }
It will force all pages to have a vertical scrollbar even if they don't need one. That should stop your page jump.
How cool. I never knew this, and I've read a number of posts on this topic here.
-
6. Re: Why does my pages shift position?
John Waller Sep 13, 2011 10:35 PM (in response to mytaxsite.co.uk)You haven't given us a link to your site so it is impossible to be specific.
It's disguised in parentheses in the first line of the OP's first post"(kensdigitalart.com)."
-
7. Re: Why does my pages shift position?
MurraySummers Sep 14, 2011 3:50 AM (in response to steelycal09)It's been posted here many times. But better late than never, doncha know?




