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.

Using an image as the background for a button 'back in the day'

Featured Replies

Hello everyone.

I hope you are all great. It has been a minute since I posted. I need to do it more. I hope this topic is in the right place.

I am doing a website for a restaurant and it has been many years since they had an upgrade.

I found the attached as a background to their buttons.

I think I remember doing this 'back in the day'.

But can someone remind me why we did this? Was it because gradients had not been 'invented' yet, or was it to do with cross-border support?

Thanks so much for your help.

bg.png

Screenshot.png

Back in the day when CSS was in its infancy using background images for button effects was the only way to go for cross browser support. As CSS evolved it became easier to use it to add things like gradients as you mention.

If you are updating their website I would bin the gradients. It makes the menu look dated.

And because people are used to scrolling you just need to show the whole menu. Forcing people to click to see the different menus reduces usability.

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.