Solved

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

Posted on 2014-10-18
7
153 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
  • 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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
HTML and CSS for a complex page 20 63
Change color of modular 8 23
Message not shown 5 34
How can I increase the size of this logo 5 24
Envision that you are chipping away at another e-business site with a team of pundit developers and designers. Everything seems, by all accounts, to be going easily.
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…

863 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now