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.

CSS Image Replacement

Featured Replies

I've used CSS image replacement in the past for a lot of projects. I have to admit, I wasn't up to speed with accessibility back then, the method I used was a very basic text-indent: 9999px;, which has it's drawbacks. The most prominent drawback is that the text won't display if images are turned off, but CSS is kept on.

 

There are a huge variety of image replacement techniques, as described on the Mezzoblue post, Revised Image Replacement.

 

This is a really interesting topic, and I'd love to hear how everyone else covers this area.

 

What methods do you use?

 

And..

 

Do you cater for users that have images off, but CSS on?

 

 

I look forward to hearing your techniques. ^_^

 

Rob

I also just use the negative text-indent. I was aware that there'd be issue if images was off or didn't load. But I haven't considered it as critical. I've haven't made extensive use of the method, usually just for the site header.

  • Author

Not when you are using CSS background images, though :(

This is not a problem really. Use CSS backgrounds when the image is for design. If the image is related to the content, then use the <img>-tag.

 

If you are using a css-replacement, use a negative text-indent. That is the most SEO-friendly method. If you use display: none; on the text, the text won't be seen by Search Engines neighter. You may use visibility: hidden; but I think negative text-indent is the best method.

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.