?
Solved

Stumped: Why does one menu option shift my page several pixels to the right?

Posted on 2014-10-18
7
Medium Priority
?
169 Views
Last Modified: 2014-10-18
ITD

In Chrome and Firefox:
If I click on Sample Projects menu item, my page content jumps several pixels to the right.
Clicking on any other menu items including the submenus of Sample Projects displays the content in the same location.

Doesn't happen with IE

Now get this: if I open a dev tools window in either Chrome or Firefox, then the Sample Projects page jumps back to the same location as all the other menu options...

Completely stumped... was going to use devtools to examine box metrics to see what was off... but opening a devtools window corrects the problem...

Any wizards out there that can figure this out?

With Regards-
Sam
0
Comment
Question by:SAbboushi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 58

Expert Comment

by:Gary
ID: 40389421
Not seeing what you mean, also do you mean on hover
0
 

Author Comment

by:SAbboushi
ID: 40389434
No - on click.  See attached
Services.png
SampleProjects.png
0
 
LVL 58

Accepted Solution

by:
Gary earned 2000 total points
ID: 40389439
Because on the other page you have a scrollbar, in cases like this you can force the scrollbar even when the page doesn't warrant it with a bit of css.

body {
    overflow-y: scroll;
}

Open in new window

0
Containers & Docker to Create a Powerful Team

Containers are an incredibly powerful technology that can provide you and/or your engineering team with huge productivity gains. Using containers, you can deploy, back up, replicate, and move apps and their dependencies quickly and easily.

 

Author Comment

by:SAbboushi
ID: 40389462
LOL!... Wow.... how could I have missed that?  Thanks Gary.
0
 

Author Comment

by:SAbboushi
ID: 40389464
A different thought - any ideas how to determine if there is no scroll bar and use css to add the scroll bar width to the right margin?
0
 
LVL 58

Expert Comment

by:Gary
ID: 40389471
Would be very messy and require javascript
0
 

Author Comment

by:SAbboushi
ID: 40389511
k thanks-
0

Featured Post

Monthly Recap

May was a big month for new releases from Linux Academy! Take a look at what our team built recently in our blog. You can access the newest releases from our blog.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.
Suggested Courses

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question