Yuri Khan (yurikhan) wrote in s2styles,
Yuri Khan
yurikhan
s2styles

Stop assuming a minimum width

An open letter to everybody who is designing styles:

Please stop relying on a specific minimum pixel width. For example, refrain from using such CSS constructs as:

.html-s2-no-adaptive { min-width: 1000px; }

Rationale: A typical monitor as of today is 1920 logical pixels wide. This is too wide to use the browser maximized, but perfect to split the screen in half and tile two windows side-by-side. Accounting for the vertical scrollbar, the page has to fit in roughly 938 pixels or fewer in order not to cause horizontal scrolling.

Bonus points if your style works with any page width upwards of 320px.

Subscribe
  • Post a new comment

    Error

    default userpic

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 3 comments