ابحث في الدعم

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

I want to set a maximum size for pictures when FF shows websites. How can i do that? NO I DONT MEAN "HOW TO ZOOM".

more options

I have FF 34 but this problem has been there for a lot of earlier versions. On many webpages there are pictures that cover my whole screen, and I want to set maximum size for showing images on webpages. I ONLY wanr to change the maximum size of the images, AND IAM NOT asking about how to zoom the webpage.

I have FF 34 but this problem has been there for a lot of earlier versions. On many webpages there are pictures that cover my whole screen, and I want to set maximum size for showing images on webpages. I ONLY wanr to change the maximum size of the images, AND IAM NOT asking about how to zoom the webpage.

All Replies (2)

more options

Do you want to hide large images or merely make them smaller by setting a max-width and max-height?

You would probably have to use JavaScript (bookmarklet) to achieve this reliably. There are bookmarklets to make large images fit in the window to avoid a horizontal scroll bar

You can try this code in the userContent.css file (adjust the max-width accordingly).


img { max-width: 1024px !important; height: auto !important; }

The customization files userChrome.css (user interface) and userContent.css (websites) are located in the chrome folder in the Firefox profile folder.

  • Create the chrome folder (lowercase) in the <xxxxxxxx>.default profile folder if this folder doesn't exist
  • Use a plain text editor like Notepad to create a (new) userContent.css file in the chrome folder (file name is case sensitive)
  • Paste the code in the userContent.css file in the editor window
  • Make sure that you select "All files" and not "Text files" when you save the file via "Save file as" in the text editor as userContent.css.
    Otherwise Windows may add a hidden .txt file extension and you end up with a not working userContent.css.txt file
more options

Yes. This worked. Thank you very much. There is just that even if the images is resized, the frameholder/space assigned for the image is still taking up the same space as the original image, but this will have to be better than nothing. Thank you.

UPDATE 18th april 2015. I updated to Firefox v38, and now the images are large again. The above soulution does not work on FF38. Can anyone help me, again?

Modified by pissedofflikehell2