Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2014-10-18
7
Medium Priority
?
173 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 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Suggested Courses

972 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