Search Support

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

How do I set my own screen sizes in Tools > Web developer > Responsive design view?

  • 4 replies
  • 2 have this problem
  • 73 views
  • Last reply by JBElle

more options

From this page, https://developer.mozilla.org/en-US/docs/Tools/Responsive_Design_View I see I can edit the sizes in the dropdown menu, but it looks like it only accepts one. If I select 320x480, and change that to 414x736, it adds "414x736 (custom)" to the menu, and 320x480 is still there. But if I select 320x480 again and change it to 375x667, "375x667 (custom)" is added, but "414x736 (custom)" disppears. Really, only one at custom size at a time? I'd like to have several.

From this page, https://developer.mozilla.org/en-US/docs/Tools/Responsive_Design_View I see I can edit the sizes in the dropdown menu, but it looks like it only accepts one. If I select 320x480, and change that to 414x736, it adds "414x736 (custom)" to the menu, and 320x480 is still there. But if I select 320x480 again and change it to 375x667, "375x667 (custom)" is added, but "414x736 (custom)" disppears. Really, only one at custom size at a time? I'd like to have several.

Chosen solution

Copied and pasted to devtools.responsiveUI.presets, works. Success!

Just to explain... Opened devtools.responsiveUI.presets, right-clicked Modify, copied string to text editor, in text editor changed values to what I needed, then pasted them back into devtools.responsiveUI.presets

Read this answer in context 👍 0

All Replies (4)

more options

Yes, it seems an important third step isn't mentioned in that page:

(1) Launch responsive view (Ctrl+Shift+m or the Developer menu)

(2) To choose the desired size in the dimensions control, either

(A) Use the resizing bars to the right and bottom of the content to resize, or (B) Click the text in the dimensions cotnrol and edit to the desired new size

(3) Click the triangle on the right end of the dimensions control and then click "Add Preset" at the bottom to name and save it separately from the "custom" size of the current window

Success?

Note: These are saved in a preference that you can later edit in about:config if you need to streamline the list: devtools.responsiveUI.presets

more options

Thanks. I tried editing and saving, but the responses seem erratic (e.g. sometimes the new size is not saved - i.e. it stays the old size - even after giving it a name/saving). I think devtools.responsiveUI.presets looks pretty easy, so I'll try there later.

more options

Try to press the Enter key after having changed the dimension value to make Firefox show the new setting.

more options

Chosen Solution

Copied and pasted to devtools.responsiveUI.presets, works. Success!

Just to explain... Opened devtools.responsiveUI.presets, right-clicked Modify, copied string to text editor, in text editor changed values to what I needed, then pasted them back into devtools.responsiveUI.presets

Modified by JBElle