Jump to content
kawi6rr

Drop down menu below drops below fold moves page left when opening?

Recommended Posts

I have a series of dropdown menus and some are quite long. When the long menus drop below the page/fold the page jumps a few pixels to the left. Any idea on why this would happen?

See attached file for reference, thanks.

Index - Copy.html

Share this post


Link to post
Share on other sites

I don't see any menus or dropdowns in the file you have attached. Clicking on the words just reloads the page.

I would guess that the menu is causing a scrollbar to appear, so the page has to move to the left to accommodate for it.

Share this post


Link to post
Share on other sites
3 hours ago, Ingolme said:

I don't see any menus or dropdowns in the file you have attached. Clicking on the words just reloads the page.

I would guess that the menu is causing a scrollbar to appear, so the page has to move to the left to accommodate for it.

That's exactly what's happening thanks, how do I get around that?

Share this post


Link to post
Share on other sites

You could give the body an overflow: scroll property to always have a scrollbar there.

Share this post


Link to post
Share on other sites
16 hours ago, Ingolme said:

You could give the body an overflow: scroll property to always have a scrollbar there.

Thank you much appreciated, the overflow scroll property worked perfectly.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...