7

I'm coding html for ebooks, and my first test is in the Firefox browser. I need a down-and-dirty to simulate and compare web design in different device viewports in both landscape and portrait mode.

When I use the web developer --> responsive design view in Firefox, I have some presets, and if I click the rotate button I can see both landscape and portrait mode. But I don't see any capability to add custom viewport dimensions... which is strange given all the devices which are coming out these days.

Is there a way to do this? Also, is there a good URL which lists all the most popular viewport sizes for devices?

  • Are you testing the viewport for the browser capabilities of those ebooks, or for the rendering of HTML within EPUB/AZW3? – Anthon Feb 24 '14 at 9:01
  • I eventually test everything against the device (or at least a device emulator -- such as Kindle previewer). But initially I test things in a browser, and it's a pain not to be able to change the viewport to a certain width and height. – idiotprogrammer Feb 24 '14 at 12:50
  • One of the primary things I test for is for image rendering and spacing. The browser can tell you initially whether you are way off or close, and KF8 is not as quirky as earlier mobis. – idiotprogrammer Feb 24 '14 at 13:08
  • I was unclear (using ebooks instead of ebook readers in my comment). So you are testing ebooks on ebookreaders, not browsers on the same ebook readers. Correct? – Anthon Feb 24 '14 at 13:22
3

Once you're in the responsive design view, the handles on the right side and bottom right corner of the view let you drag to set a display size. The drop-down menu in the upper left corner shows the dimensions as you drag. Once it's at the size you want, you can click on the menu, select Add Preset at the end of the list, and save those dimensions with a name.

Here's a question that lists some resources for viewport dimensions: https://stackoverflow.com/questions/5784485/how-to-figure-out-common-viewport-dimensions-not-screen-sizes-of-common-device

  • Wow, I must have tried it but didn't see the Add Preset button. By the way, on that URL you gave, here's an incredibly useful list of presets viewportsizes.com – idiotprogrammer Feb 24 '14 at 18:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.