Solved

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

Posted on 2014-10-18
7
146 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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

706 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