Windows 10 will reach EOS (end of support) on October 14, 2025. For more information, see this article.

Pesquisar no site de suporte

Evite golpes de suporte. Nunca pedimos que você ligue ou envie uma mensagem de texto para um número de telefone, ou compartilhe informações pessoais. Denuncie atividades suspeitas usando a opção “Denunciar abuso”.

Saiba mais

Esta discussão foi arquivada. Faça uma nova pergunta se precisa de ajuda.

How to fix layout.css.devPixelsPerPx=0.05 ? Too small...

  • 2 respostas
  • 1 tem este problema
  • 501 visualizações
  • Última resposta de grasshopper

more options

Hi,

I messed up! I wanted to fix the resolution of the latest Mozilla update because I found it too big, so I typed about:config in the address bar, then searched for layout.css.devPixelsPerPix. It was set to -1.0, so I first set it to 1.0 then 0.05. The resolution became too small and now I can't read anything or reset its value to -1.0 Is there a way to reset FF to its default layout without having to open it? Please see picture ( 1 is the address bar, 2 is my homepage google.com as they appear now). http://i42.tinypic.com/zjcoqw.jpg

Hi, I messed up! I wanted to fix the resolution of the latest Mozilla update because I found it too big, so I typed <B>about:config</B> in the address bar, then searched for <B>layout.css.devPixelsPerPix</B>. It was set to -1.0, so I first set it to 1.0 then 0.05. The resolution became too small and now I can't read anything or reset its value to -1.0 Is there a way to reset FF to its default layout without having to open it? Please see picture ( 1 is the address bar, 2 is my homepage google.com as they appear now). http://i42.tinypic.com/zjcoqw.jpg

Alterado por grasshopper em

Solução escolhida

Thank you cor-el for your input.

Somehow I managed to solve the resolution intuitively and fix the problem. It's now set to -0.55. I also Zoomed out the text from the View menu. FF Moz is more readable now.

I tried your first suggestion i.e. tweaking prefs.js opened via Notepad -- it doesn't get the changes even though I saved the file before closing it and then opened a new session of Moz.

Anyway, thank you.


WHAT I DID: Even though the writing was very small, I typed about:config in the address bar (see 1 in picture), then typed layout.css.devPixelsPerPix and double clicked just below the 4th column. A horrible looking window popped up which I intuitively understood was asking me to insert a string value. So I cancelled out what was written in the box, typed -1.0 and hit Enter. Voilà.

Ler esta resposta 👍 1

Todas as respostas (2)

more options

You can edit the prefs.js file in the Firefox profile folder with a plain text editor like Notepad and remove the line with the layout.css.devPixelsPerPx pref or change the value to 1.0

  • user_pref("layout.css.devPixelsPerPx", "1.0");
  • C:\Users\<user>\AppData\Roaming\Mozilla\Firefox\Profiles\<profile>\

The "Application Data" folder in XP/Win2K and the "AppData" folder in Windows Vista and Windows 7 and later versions are hidden folders.

Alternatively you can create a file user.js and place the above posted user_pref() line in the user.js file and start Firefox once to reset the pref.

After having done this and have restarted and closed Firefox you can remove the user.js file because otherwise you can't make changes to this pref that will last.

more options

Solução escolhida

Thank you cor-el for your input.

Somehow I managed to solve the resolution intuitively and fix the problem. It's now set to -0.55. I also Zoomed out the text from the View menu. FF Moz is more readable now.

I tried your first suggestion i.e. tweaking prefs.js opened via Notepad -- it doesn't get the changes even though I saved the file before closing it and then opened a new session of Moz.

Anyway, thank you.


WHAT I DID: Even though the writing was very small, I typed about:config in the address bar (see 1 in picture), then typed layout.css.devPixelsPerPix and double clicked just below the 4th column. A horrible looking window popped up which I intuitively understood was asking me to insert a string value. So I cancelled out what was written in the box, typed -1.0 and hit Enter. Voilà.

Alterado por grasshopper em