/    Sign up×
Community /Pin to ProfileBookmark

Center of page moves when page changes

Hi Guys

Forgive me if this has been answered before – I can’t find a reference to it – perhaps I’m using the wrong words.

When one of my pages exceeds a certain length, the centre seems to shift. This doesn’t happen in IE but seemingly all the other browsers.

I thought it was because I’m using tables, but the header is in a div so I’m not so sure.

My draft site is at [URL=”http://www.steamchicken.co.uk/76/index.html”]www.steamchicken.co.uk/76/index.html[/URL] and the “how to find us” page is the offending one.

Thanks in advance.

M

to post a comment
HTML

7 Comments(s)

Copy linkTweet thisAlerts:
@FangJan 28.2010 — Add a valid DTD<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
andhtml {overflow-y:scroll;}
This will force a scrollbar on the index page.
Copy linkTweet thisAlerts:
@mandysuttonauthorJan 28.2010 — Thanks for the suggestion but no joy.

It's still moving! My editor overwrites the Doctype line but I've edited that in notepad and uploaded.

I put the overflow force in my stylesheet (hope that was the intention).

I'm using Opera to test this. Any other ideas?
Copy linkTweet thisAlerts:
@FangJan 28.2010 — You haven't added html {overflow-y:scroll;}
Copy linkTweet thisAlerts:
@mandysuttonauthorJan 28.2010 — Sorry - thought it should be in the style sheet.

Where should it go - sorry to be thick.
Copy linkTweet thisAlerts:
@FangJan 28.2010 — It's correct, only the rule just before it has incorrect bracketsdiv.menu [COLOR="Red"]( [/COLOR]
position:absolute;
top:0;
left:0;

[COLOR="Red"])[/COLOR]
Copy linkTweet thisAlerts:
@mandysuttonauthorJan 28.2010 — I suppose you already know you are a genius!

Thank you for your time and trouble.

I didn't even need that bit of code.

I'm starting to think I need to let my tables go and move to divs - do you know a good tutorial - or should I make a new post for this?

Thanks again - really appreciate it.
Copy linkTweet thisAlerts:
@FangJan 28.2010 — A new post.
×

Success!

Help @mandysutton spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...