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.

Viewport question

Featured Replies

Hi Guys,

 

Quick question regarding the viewport.

 

I'm viewing in Firefox on linux - don't have access to windows machine atm so can't check if this is the case on IE, Safari etc.

 

I have created a site that's about 1000px wide. The footer has a very narrow, tall background gradient image with "repeat x" set in order to span the whole window. My browser window is sized narrower than 1000px (probably around 700px).

 

When I load the page and use the scroll bars to scroll to the right to view the rest of the page, the background image is not shown - that part of the page is just white. This is a problem since the footer itself uses a dark background image with white text (i.e. white text on a white background won't show!).

 

Does anyone have a solution to this problem?

 

Thanks,

Iain

Hi Guys,

 

Quick question regarding the viewport.

 

I'm viewing in Firefox on linux - don't have access to windows machine atm so can't check if this is the case on IE, Safari etc.

 

I have created a site that's about 1000px wide. The footer has a very narrow, tall background gradient image with "repeat x" set in order to span the whole window. My browser window is sized narrower than 1000px (probably around 700px).

 

When I load the page and use the scroll bars to scroll to the right to view the rest of the page, the background image is not shown - that part of the page is just white. This is a problem since the footer itself uses a dark background image with white text (i.e. white text on a white background won't show!).

 

Does anyone have a solution to this problem?

 

Thanks,

Iain

I had the same problem and had to use the min-width attribute to make sure the background kept going.

  • Author

Awesome, thanks Darren!

 

That is a pretty good solution for now - the only problem is that beyond the "min-width", between the footer and browser window, there is still a small "cut-off" area of white (probably around 10px). I can live with that for now though.

 

Cheers,

Iain

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.