Center Images with Dynamic Background Firefox 3.1

Added by Darkimmortal@userstyles, Created: Feb 07, 2009, Updated: Feb 08, 2009
No screenshot


Centers images viewed directly, also providing several background options.


- 10px margin above image.
- Centered image.
- White background with border when is hovered over.
- Green background with border when is clicked on.
- Black background with border when image is hovered over.
- Red background with border when image is clicked on.


You can uncomment the commented code near the top to enable the buggy checkerboard background. This has been coded to be compatible with Firefox 3.1 and because of this, it also affects websites that do not specifically set a background colour and/or image. :(

Based on: - unfortunately this is no longer compatible with Firefox 3.1 because a element is added when viewing an image.

Applies to:
http://, https://

Related styles:

WARNING: This webware is not functioning properly. Please enable javascript in your browser and try again.