code_junkie

Firefox browser: How to display non-existing images the way IE/Opera does?

Nov 12th, 2011
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. <img src='...' width='100' height='100' alt='...'></img>
  2. or
  3. <img src='...' alt='...' style='width:100px; height:100px;'></img>
  4.  
  5. /*
  6. * Show image placeholders
  7. */
  8. @-moz-document url-prefix(http), url-prefix(https), url-prefix(file) {
  9. img:-moz-broken {
  10. -moz-force-broken-image-icon: 1;
  11. width: 24px;
  12. height: 24px;
  13. }
  14. }
Add Comment
Please, Sign In to add comment