How to make pages responsive on different display devices

更新时间:
复制 MD 格式

This topic describes how to make pages responsive on different display devices.

Screen responsiveness

Screen responsiveness allows a webpage or application to dynamically adjust its layout and content based on the user's screen size and resolution. The goal is to provide a consistent and comfortable viewing experience on any device, from small mobile screens to large PC monitors.

On PCs, screen responsiveness is especially important because monitor resolutions can vary widely. For example, a standard laptop might have a 1440x900 resolution, while an ultrawide monitor could be 1920x1080 or higher. Setting a suitable maximum width provides a better viewing experience.

How to make pages responsive on different displays

To make pages responsive on different displays, you can configure the following features:

  • Minimum width: Prevents content from being compressed on small screens.

    When the browser viewport is narrower than the minimum width set for the application, a scroll bar appears to ensure that all content is fully displayed.

  • Maximum width: Prevents content from being stretched on large screens.

    You can set a maximum width for the page to inherit or overwrite the application's maximum width setting. When the browser viewport is wider than the application's maximum width, the content is centered with empty space on both sides.

    image.png

  • Horizontal alignment: You can configure the horizontal alignment of the content (left, center, or right) to maintain a consistent layout style across different resolutions.

  • Header and Footer configuration: You can set whether the maximum width constrains the header and footer. Constraining the header and footer to the same maximum width as the content area ensures a coordinated layout. Allowing them to stretch freely makes full use of the space on large screens.

Steps

  1. In the navigation pane on the left, go to Application Settings > General configuration.

  2. Minimum width: Defaults to 800 px.

  3. Application maximum width: Disabled by default.

  • Minimum width

    1. Pixel range: [800, 1920]

    2. When the application's minimum width is set to 800 px and the browser viewport is narrower, a scroll bar appears to ensure that all content is displayed.

  • Maximum width

    1. Enable application maximum width: Defaults to 1440 px.

    2. Alignment: Defaults to center.

    3. Header constrained by maximum width: Defaults to No.

    4. Footer constrained by maximum width: Defaults to No.

Demonstration

Maximum width: Default (1440 px)

Center alignment

Header constrained by maximum width: No

Footer constrained by maximum width: No

Maximum width: 1080 px

Alignment: Left

Alignment: Right

Header and footer constrained by maximum width: Yes