Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login

Using the data provided, I calculated the minimum window size in order to have full viewability among a percentile subset of the audience. Here are the answers:

  Mobile: 
  50% of viewports: Width 375, Height 635 
  80%: Width 375, Height 635 
  90%: Width 360, Height 560 
  95%: Width 360, Height 550 
  99%: Width 320, Height 500
  
  Desktop:
  50% of viewports: Width 1440, Height 900
  80%: Width 1024, Height 600
  90%: Width 1024, Height 600
  95%: Width 1024, Height 600
  99%: Width 800, Height 300


sort by: page size:

Modern desktop screens are too wide for efficient reading in a browser. We're long past the point where it makes sense to maximize the window. My browser viewport is approximately square in shape, and occupies about 66% of the screen area. To the left I have my tab-treeview, and to the left of that, various other windows cascaded.

Which made sense when everyone was browsing at 800x600. But these days who knows what the size of an initial page view is. Not just devices, but windows within those devices.

designed for tiny monitors,

Or designed for non-maximized windows. It gets pretty frustrating when sites serve me a mobile version just because my window isn't 3000 pixels wide.


My favorite viewpoint anecdote: Many sites like to assume (like the article mentions) that a good 'mobile view' cut point is 768px. And some of those sites, in particular NodeBB (back when I used it), use the particular media queries `max-width: 767px` and `min-width: 768px`. On the right laptop, on the right version of everything, if you drag the title bar to one side of the screen so it resizes to fit half the screen, Chrome will report the width 767.5px and the site will immediately break fantastically.

The vast majority of desktop web users will view a site in a window that is maximized. See these articles from 2006 (before mobile browsing took off):

http://mentalized.net/journal/2006/10/24/browser_size_does_m... (this one is the most interesting because its data is collected from a variety of sites)

http://www.baekdal.com/insights/actual-browser-sizes

And this one from 2012:

http://beantin.se/post/32275497175/computer-screens-browser-...


I just want it to look good when I have the window set to half a screen wide at 1080p. There are some websites that'll switch to a mobile design when it's that narrow, and it's incredibly annoying.

I'm on a 24" monitor at 1920x1200. However, I never ever maximize my windows, especially not my browser.

The latter is because as an interface designer I want my viewport to always be the width of whatever a user has at a maximized window on a 1024x768 resolution, as this is currently our lowest significant resolution used on the website. Also, I feel it's a nice width for consuming content on the internet.


well, browser windows can be resized to take half one's screen...

Who fills their whole screen with a web browser? Browser windows should be about 700 pixels wide.

Currently I expect a browser window to be at least 950px width on the desktop. I only change to designs for lower resolutions on mobile devices.

I am not entirely sure how common it is, but it should be a small fix and won't hurt to support smaller resolutions on the desktop as well. Thanks for the feedback.


Resize the window to see how gracefully the site accomodates a wide range of window sizes (from a phone to a desktop monitor).

[edit: After further reflection, I'm stunned by how well they pulled this off. Huge leap forward.]


Or mobile browsers just set a viewport width of 960px if no viewport settings are specified. This is a sane assumption since if a viewport width isn't explicitly set the page was probably designed for desktops.

I guess it's most reasonable to design for a minimum of 1000px width. Few apps/websites really need more minimum width.

P.S. yes, peple have larger screens, but it does not mean they maximize the browser window. It's especially true of Mac users.


Also, browser window width.

When people lay out desktop sites, 960px is the smallest common minimum design width. Many of these sites are statically laid out, and if rendered with the width of 949px would require horizontal scrolling.

Except when do you ever use the browser at actual full screen? Your window decorations, desktop environment, and browser UI cruft reduce the viewport size by a few tens of pixels.

And if you do use actual full screen, that's probably even more uniquely-identifying!


I don't think anybody's saying you shouldn't be able to scale anything on your screen - just that "100%" should be the same size on anything.

100% should not necessarily be the default. Fit page width to screen/window seems like the proper default.


Viewport width can be obtained via CSS, e.g. by using a media query for every screen width:

    @media (min-width: 400px) {
      .thing {
        background-image: url(size-400.png);
      }
    }
    @media (min-width: 401px) {
      .thing {
        background-image: url(size-401.png);
      }
    }
You could combine this with pixel density for even more specificity.

I think debating where the breakpoints should be is fair. My rule of thumb is that a site should not go to “tablet” mode until it’s below half the width of a laptop monitor: ie anyone on a laptop should be able to put two windows size by size and still see the “full-width” version.

However, this is impossible to actually implement, because we don’t get media queries in “what percentage of the screen is visible,” we just get how many pixels (or virtual pixels) we have to work with.

One variation on the authors idea: suppose that browser vendors implemented media queries differently so they provided “screen=small|medium|large|xlarge”. Then the widths which trigger these layouts could be configured in the browser (with sane defaults), and the user could “lock” their browser to whichever query they preferred regardless of the window size.

But, that would actually be really hard to deal with on the implementation and testing side. Do you - should you? - care if a user has their browser locked to “xlarge” but then the layout breaks when the window is shrunk down to 500px wide?

At the end of the day there’s no perfect solution here.

next

Legal | privacy