kawi6rr Posted May 12, 2020 Share Posted May 12, 2020 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 Link to comment Share on other sites More sharing options...
Ingolme Posted May 12, 2020 Share Posted May 12, 2020 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. Link to comment Share on other sites More sharing options...
kawi6rr Posted May 13, 2020 Author Share Posted May 13, 2020 The images wont show up so if you click on the X before the words the drop down menu activates. Link to comment Share on other sites More sharing options...
kawi6rr Posted May 13, 2020 Author Share Posted May 13, 2020 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? Link to comment Share on other sites More sharing options...
Ingolme Posted May 13, 2020 Share Posted May 13, 2020 You could give the body an overflow: scroll property to always have a scrollbar there. Link to comment Share on other sites More sharing options...
kawi6rr Posted May 13, 2020 Author Share Posted May 13, 2020 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now