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.

Ticky One - Div not to make browser scroll

Featured Replies

i have a background image on my site with centered content page as seen in screen shot. i have a footer background image that i want to fill 100% of screen width no matter screen size. if i set into a footer div then the browser horizontal scroll bar appears. is there away to prevent this scroll bar using a background image in a div?

post-33740-0-22897900-1331265228_thumb.jpg

i have a background image on my site with centered content page as seen in screen shot. i have a footer background image that i want to fill 100% of screen width no matter screen size. if i set into a footer div then the browser horizontal scroll bar appears. is there away to prevent this scroll bar using a background image in a div?

 

How big is your footer image? If it's bigger than the browser window it will give you a H-scroll.

 

You can't have it so there's no H-scroll on a small screen but it fills out the whole screen on a bigger one without implementing media queries. Width:100% will just allow the footer to take all the width it needs to display the content you put inside it and I'm assuming your footer image is too big for your browser window.

if i set into a footer div then the browser horizontal scroll bar appears. is there away to prevent this scroll bar using a background image in a div?

 

I think you should post your code. A background-image doesn't cause a horizontal scrollbar, there must be another cause. Do you mean an img src tag?

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.