Take the 2-minute tour ×
User Experience Stack Exchange is a question and answer site for user experience researchers and experts. It's 100% free, no registration required.

I would like to present a full-screen text editor. Are there any standard rules for calculating the side and top and bottom margins based on the screen size and possibly font size?

I'm particularly interested in mobile and tablet devices, in all their possible orientations.

share|improve this question

1 Answer 1

It's hard to say if you refer to user experience only and depends very much on the purpose of your full screen text editor.

Regarding programming, there is (used to be?) a standard of 80 columns - you can read about it here http://www.emacswiki.org/emacs/EightyColumnRule, it says:

The sacred 80 column rule states that “Thou shalt not cross 80 columns in thy file.” This initially was to make printing easier. Nowadays, the newer editors and users of editors have forgotten this and make it really hard to read code.

But this "best practice" derives from the limitations of the past, as you can see (you have line wrapping after all).

On the other hand, there are text editors that are more aimed at the limitations of user perception. Wider text is harder to read, and thus also harder to edit, to some point of course. Bigger margins make it easier, but it's hard to say what is the perfect width, as users are different and have different preferences about it. So best practice, methinks, would be to refer to this preference and put it in the hands of users.

There are some best practice examples, one of which may be Byword, a distractionless editor (available for both OSX and iOS) where user can choose between wide, standard and narrow layouts: http://bywordapp.com/

share|improve this answer
For the purpose of the question, I would call it an all-purpose text editor. I like the idea of giving user a choice, specially on larger screens. On small screens, I don't think it makes much sense. It's just that when I was choosing the margins I wondered, why not 20px instead of 15px? I'm hoping to find justification for these values, as opposed to choosing arbitrary values that look ok to me but might not provide the best user experience. –  hpique Feb 4 at 15:34
So limiting the number of options (meaning: simplification of the choice) should do the trick. Maybe you should just use these wide, standard and narrow options? –  Dominik Oslizlo Feb 4 at 15:36

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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