The visual layout of controls, information and content affects how easy it is to understand your application, as well as how beautiful it is. It is important to recognise that visual design has a strong impact on how much work is involved in using an application - poor layout results in users having to put in additional effort, while good layout requires less effort.
Following these visual layout guidelines will help you to produce an application that is beautiful, easy to understand, and efficient to use.
An alignment point is an imaginary vertical or horizontal line through your window that touches the edge of one or more labels or controls in the window. Minimize the number of these - the fewer there are, the cleaner and simpler your layout will appear, and the easier it will be for people to understand.
Align content and controls in your layout exactly. The eye is very sensitive to aligned and unaligned objects. If visual elements do not line up, it will be hard for someone to scan them. Elements that do not quite line up will be distracting.
Be consistent. Use the same amounts of spacing throughout.
Organize related controls and information into groups, and use spacing to differentiate them. This makes an interface far easier to read and understand.
As a rule of thumb, leave space between elements in increments of 6 pixels, going up as the relationship between related elements becomes more distant.
Between labels and associated components, leave 12 horizontal pixels.
For vertical spacing between groups of components, 18 pixels is adequate.
A general padding of 18 pixels is recommended between the contents of a dialog window and the window borders.
Indent elements by 12 pixels to denote hierarchy and association.
Avoid using frames with visible borders to separate groups of controls - use spacing and headers instead.
Incorrect spacing and alignment:
Correct spacing and alignment:
Correct spacing, with units (pixels):
If possible, right-justify labels (see the diagram below). This will avoid large gaps between labels and their associated controls. This type of right-justification is not possible if you have indented controls: here left-justification should be used instead.
Organize visual elements from top-to-bottom and left-to-right. This is the direction that people from western locales tend to read an interface, so that the items at the top-left will be encountered first. This ordering gives interfaces a hierarchy: those components that are viewed first are perceived to have priority over those that come after them. For this reason, you should place dominant controls above and to the left of the controls and content that they affect. Header bars are a key design pattern in this respect.
This work is licensed under a.
Got a comment? Spotted an error? Found the instructions unclear? Send feedback about this page.