Showing Ajax activity with CSS
As usual, there’s a cleaner way to do it with just CSS. I’ve used this simple but effective trick on a couple projects now, so I thought I would share.
First, here is a demo of what it looks like: (sorry, you’ll have to leave your feed reader.)
Next, wrap an element around your buttons or whatever you want to hide.
Lastly, there’s just a little CSS to hide buttons and any elements inside them, and set the background image:
There you have it. It’s really simple, but it’s worked well.