Introduction to adaptable design

Learn how reflowing content, fixed sizing, relative sizing, and breakpoints (media queries) help to create responsive designs.

While visiting a website on your mobile gadget, you might encounter a desktop version of the site squeezed into a smaller screen, compelling you to amplify and shift to view any content. Alternatively, you might be directed to a simplified mobile version that lacks the substance and encounter that render the desktop version excellent. However, ideally, you come across an adaptable website – a layout that rearranges and repositions content based on the width of the browser.

Here, we will delve into three distinct facets of adaptable design:

  1. Repositioning content
  2. Fixed proportions
  3. Relative proportions
  4. Interruptions (media queries)

Repositioning Content

Repositioning content denotes content that modifies its width based on the browser’s viewport width. For instance, a paragraph with default settings will automatically reorient its content as a browser’s width diminishes. This behavior can be emulated by dragging the edge of the Designer canvas.

On the left, the blue drag element on the edge of the canvas is being dragged to the left. On the right, the breakpoint sizes and the respective device are detailed at the bottom of the canvas with a ruler set at 1024 px.

Fixed proportions

It’s crucial to be conscientious when utilizing fixed pixel widths. For example, assigning an image a width of 500px may look striking on a desktop or a tablet. However, when the image is viewed on a smaller mobile device, the image width will remain fixed at 500px and won’t adapt to the narrower viewport (typically less than 500px).

On the left, the desktop breakpoint is selected and showing the website layout. On the right, the mobile portrait displays how the website elements would adjust.

Relative proportions

This entails setting an element’s size relative to other components such as the browser width or a parent element. Instead of utilizing a pixel-based size for an image, contemplate employing various units like %, VW (viewport width), or VH (viewport height). By using % on an image and tweaking the browser width, you’ll notice that it will adapt accordingly, while a px based image will not.

The width settings are set to 40 percent. The percentage option has been chosen opposed to the pixels setting. The width settings are highlighted on the Size panel.

Discover more about applying diverse units to manage element width and height.  

Interruptions

The breakpoints toolbar includes a three dot icon button to add large breakpoints, four different options, and canvas dimension details.

Design layouts are typically far more intricate than managing the width of a single image. Employing breakpoints (also recognized as media queries) enables you not only to assess repositioning content but also to adjust the design and layout based on varied device width ranges.

Three different breakpoints are displayed next to each other with the breakpoint button highlighted for each on the top bar.

Explore more:

  • Initiation of breakpoints
  • Design for larger displays
Ewan Mak
Latest posts by Ewan Mak (see all)