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.

Why does width expand?

Featured Replies

Does anyone have any idea why the width of my page expands in Safari and Firefox when I place text in "Bold" or in "h1"tags? When its normal text there is no problem. In IE I will say there is no movement.

 

Hope you can help

 

Thanks

Got some code or a link for us to go on?

You don't mean the scrollbar at the side of the page causing it to jolt do you?

 

Go to this http://www.pjmmedia.co.uk/aboutus.php

 

Shrink you're browser vertically (drag the bottom up to cover up some of the text), does the width change again?

Its the scroll bar as one page is longer and one isnt.

 

Shrink the window so scroll bar is on both pages and it doesnt move ;)

 

IE doesnt do this will the scrollbar (this has caught me out in the past too) :)

  • Author

Ahh yes I see. Man that was obvious lol Now what do you mean shrink the window?

  • Author

Problem fixed using

 

body {

overflow: hidden;

}

 

Thanks for noticing the problem though!

 

Now for a personal opinion......

 

www.pjmmedia.co.uk

www.pjmmedia.co.uk/default.html

 

Both of these pages are the same other than the banner. .co.uk/ is static and .co.uk/default rotates.

Which do you prefer?

 

After this my rant is over :D Thanks

The problem now is on long pages where text extends the view port, users won't be able to scroll down the content.

 

Edit: Just clicked the link, i have both vertical and horizontal scrollbars now (Chrome V7) :/

I wouldn't mess with scrollbars unecessarily. They are there for a reason, you shouldnt try and second guess the user/browser requirments.

 

As for the 2 - I prefer the slider.

 

But I do find jquery sliding horizontal of large images a bit jittery, so if I need to do it I use other transitions and do not include horizontal ones - as with this site http://waterwell.co.uk

 

But thats a personal choice.

I've never had a problem with horizontal slides, do you use easing?

I've never had a problem with horizontal slides, do you use easing?

 

Yes, but its down to the size of the image and actual file size too. I ran lots of tests on various machines with different images of various sizes and for me the horizonatl slide - as used in this page the OP references is not smooth enough for my liking. I have used horizontal transitions on other sites myself with small images which are satisfactory for me.

  • Author

I ended up setting overflow to scroll. In your opinion is this a fine way to solve the problem? Or is there a better way.

 

With regards the slider suggestion I will look into that tomorrowZ

I ended up setting overflow to scroll. In your opinion is this a fine way to solve the problem? Or is there a better way.

 

With regards the slider suggestion I will look into that tomorrowZ

 

It's not really a problem, it's default browser behaviour.

 

If you must force the scrollbar, remove the overflow and add this

 

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

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.