<?xml version="1.0" encoding="utf-8"?>

Dividers are used to separate different elements in groups of content. They help create a clear visual hierarchy and improve the overall user experience by making it easier for users to understand and navigate the interface.

Color, white space, images, lines, and shadows are all great examples of dividers. But which one should you use? The choice of divider depends on the overall design aesthetic you're going for and the specific goals of the UI.

Exercise #1

Horizontal line dividers

Horizontal line dividers Bad Practice
Horizontal line dividers Best Practice

Horizontal dividers are simple lines that can be used to visually group content and create hierarchy within an interface so users can easily scan, find, and navigate content. They are of two types:

  • Full-bleed dividers: These lines extend from one end of the container to the other, creating a clear and bold separation. They offer a dramatic and decisive visual break between content blocks or sections, making the separation highly noticeable. You can use full-bleed dividers to separate different content groups or even interactive and non-interactive sections of an interface.
  • Inset dividers: These lines are set within the boundaries of the content, rather than extending to the edges of the container. They provide a more subtle separation, maintaining a clean and organized appearance without a strong visual impact. They are most suitable for separating related content within a list, such as emails in an inbox. Always use them along with visual anchors like icons.[1]

Pro Tip: Combine full-bleed and inset dividers to establish a hierarchy of information within the interface.

Exercise #2

Vertical line divider

Vertical line divider Bad Practice
Vertical line divider Best Practice

Vertical line dividers in UI design visually organize and separate content along a vertical axis. They are best used for creating column distinctions in multi-column layouts, sectioning off thematic areas on a page, and providing clarity in navigation menus.

Adjust the width of these dividers for a subtle or bold impact, but be sure to keep it consistent across your interface. You can also add a subtle indicator such as a small word positioned in the middle of the line to further enhance the differentiation. For example, you can use the word “or” in the middle of a vertical line separating a sign-up and login form.

Exercise #3

Negative space divider

Negative space divider Bad Practice
Negative space divider Best Practice

The proximity principle suggests that elements close to each other are perceived as a cohesive group, making judicious use of negative space effective in creating distinct content sections. Similarly, leveraging negative space aligns with the similarity principle, emphasizing that elements with similar attributes are perceived as related.[2]

Moreover, you can embrace asymmetry, allowing negative space to guide users' focus and provide a sense of balance. Use varying amounts of negative space to emphasize important elements.

Exercise #4

Color contrast divider

Color contrast divider

Color contrast dividers utilize differences in color to separate and define content areas.[3] The choice of colors and their contrast plays a crucial role in creating a clear distinction.

For a subtle separation, use a slightly darker or lighter shade than the background color. Alternatively, for a more dramatic effect, employ contrasting colors, such as pairing dark elements with a light background or vice versa. This not only acts as a divider but also adds visual interest to the content you want to emphasize.

Exercise #5

Image dividers

Image dividers

Images can function as effective dividers in UI design, seamlessly guiding users through content sections while adding a visually engaging element. When used strategically, images not only delineate different parts of a page but also contribute to the overall aesthetic. For instance, in a gallery layout, each image can naturally serve as a divider between items, eliminating the need for additional separations. The visual content becomes self-contained, creating a fluid and immersive experience.

Exercise #6

Shadow dividers

Shadow dividers

Shadow dividers can create visual separation and depth between different elements or sections in a user interface. You can utilize shadows to give the illusion of depth, making certain elements appear closer or farther away. This can create a sense of hierarchy and organization.

You can also apply shadows strategically to separate content sections or blocks. The intensity and direction of the shadow can be adjusted to provide a clear visual distinction.

Pro Tip: Ensure that the shadow's contrast with the background is sufficient for visibility while maintaining a balance to avoid a cluttered or distracting appearance.

Exercise #7

Style dividers subtly

Style dividers subtly Bad Practice
Style dividers subtly Best Practice

Dividers in any interface should strike a balance — they shouldn't demand attention or distract from the content. The primary purpose is to enhance organization and maintain a clean layout rather than draw undue focus.

For example, in a blog layout, use subtle 1px lines between paragraphs for a clean reading experience. You can use bold 2px lines to more distinctly separate different sections on a landing page. Just keep in mind that the goal is to make dividers noticeable enough for users to navigate effortlessly but not so attention-grabbing that they overshadow the content.

Exercise #8

Limit the frequency of obvious dividers

Limit the frequency of obvious dividers Bad Practice
Limit the frequency of obvious dividers Best Practice

When designing a user interface, using too many visual dividers can overwhelm users. Let’s consider a blog layout where each section is adorned with vibrant, bold, attention-grabbing dividers. You can imagine how this would create unnecessary visual noise, making the interface visually tiring.

Instead, strategically using negative space between posts can provide a clean separation, allowing users to navigate effortlessly. You can also use subtle, single-pixel lines in a neutral shade for essential divisions.

Complete this lesson and move one step closer to your course certificate