/    Sign up×
Community /Pin to ProfileBookmark

scroll bar shifting navigation off center

hi all,

i am having a problem with the scroll bar shifting my navigation bar off center. detailed as follows:

*the navigation is in a centered table.

*the content of each page varies in length but the navigation bar is always identical.

*on pages that require scrolling the navigation bar shifts slightly because the centre of the page moves to accommodate the scroll bar. (when ideally the navigation should look as if it never moves)

*is there a way to avoid this besides adding blank paragraphs to the shorter pages to make all the pages the same length?

thanks in advance
ab

to post a comment
HTML

1 Comments(s)

Copy linkTweet thisAlerts:
@mrhooJan 31.2007 — If you want to force the vertical scrollbar to always be visible add this to your css: [B]html {min-height: 100%; margin-bottom: 1px}[/B]

Although IE6 doesn't understand 'min-height', the scrollbar is always visible in that browser by default - unless you change the body overflow property.

The other browsers understand min-height and add a 1 px margin to force the scrollbar.
×

Success!

Help @miscellany 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 5.28,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...