Solved

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

Posted on 2014-10-18
7
163 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 500 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
Get proactive database performance tuning online

At Percona’s web store you can order full Percona Database Performance Audit in minutes. Find out the health of your database, and how to improve it. Pay online with a credit card. Improve your database performance now!

 

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

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

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

Because your company can’t afford for you to make SEO mistakes, you’ll want to ensure you’re taking the right steps each and every time you post a new piece of content. This list of optimization do’s and don’ts can help you become an SEO wizard.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
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.

617 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