I\'m trying to create an overlay that overlays a page with a spinner in the middle. What\'s the simplest way to accomplish this? I only need to worry about IE 8 and above.
#overlay { position: fixed; width: 100%; height: 100%; background: black url(spinner.gif) center center no-repeat; opacity: .5; }
it's better to use rgba color instead of opacity to prevent applying alpha to spinner image.
background: rgba(0,0,0,.5) url(spinner.gif) center center no-repeat;