Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Strange Nudge on Layout

Featured Replies

I have just finished a site here www.jonoliver.com. For some reason there is a slight nudge in the container when you go from certain pages. Does anybody have an idea about why this is happening?

 

Any help is greatly appreciated.

Does this nudge happen in every browser? And what pages exactly does it happen on?

 

Cheers

Have a look on the right and see if there is a scroll bar, now change to a page where the nudge happens has the scroll bar either appeared or disappeared?

Like Dizi said, it's probably the scrollbars in browsers like Firefox. There is a simple fix here.

 

Basically you add this to your CSS

html { height: 100%; margin-bottom: 1px; }

  • Author
Have a look on the right and see if there is a scroll bar, now change to a page where the nudge happens has the scroll bar either appeared or disappeared?

 

The scroll bar is present on all pages in firefox on pc on my monitor. Yet when you move from, for example, working with joc to about, there is a little shift to the right, then when the page has loaded it shifts back to where its meant to be. very strange. Any other ideas?

  • Author
Does this nudge happen in every browser? And what pages exactly does it happen on?

 

Cheers

 

Strangely it all works fine in firefox on mac, but not on firefox on PC. When you move from, for example, working with joc to about, there is a little shift to the right, then when the page has loaded it shifts back to where its meant to be. very strange. It works fine in IE7 on pc, for once!

 

Any other ideas?

hmmm odd - it sounds like a loading order problem - i.e. it is loading your content before it styles it; or not rendering it quickly. But if the problem is rectified once the page has completely loaded then it isn't so much a css problem as an oversight...

 

someone else will have to advise on this because I am no expert in loading speeds etc...

It looks fine in chrome, sometimes this occurs because of JS, but you don't really have any.

 

This though should be at the end of your page before the closling </body> tag

<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> 
</script> 
<script type="text/javascript"> 
_uacct = "UA-545322-1";
urchinTracker();
</script>

 

It's also a good idea if you place always put your js before the closing </body>

  • Author
It looks fine in chrome, sometimes this occurs because of JS, but you don't really have any.

 

This though should be at the end of your page before the closling </body> tag

<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> 
</script> 
<script type="text/javascript"> 
_uacct = "UA-545322-1";
urchinTracker();
</script>

 

It's also a good idea if you place always put your js before the closing </body>

 

I've got loads of JS! Do you think that is the problem? I haven't put a tracker on yet because it is not on its live domain yet. I will when it goes live

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.