X
Tap here to go to the mobile version of the site.

Support Forum

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

Posted

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

Modified by grasshopper

Chosen solution

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à.

Read this answer in context 1

Additional System Details

Installed Plug-ins

Many, can't see them with this resolution

Application

  • User Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.72 Safari/537.36

More Information

cor-el
  • Top 10 Contributor
  • Moderator
16708 solutions 151106 answers

Helpful Reply

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.

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. * http://kb.mozillazine.org/Show_hidden_files_and_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. * http://kb.mozillazine.org/user.js_file * http://kb.mozillazine.org/Editing_configuration 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.

Chosen Solution

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à.

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à.

Modified by grasshopper