Skip to main content

Image Box: Box mode vs. Img mode

Learn the differences between Box mode and Img mode in Studio.Design's image box. We'll cover what each mode does, when to use them, and what to watch out for when switching between them.

Overview of Box mode and Img mode

Box mode and Img mode handle images differently. Choose the mode that best fits the look you want and what you're trying to achieve.

Point: The difference between Box mode and Img mode

  • Box mode: The image is treated as a "box" with a background image.

  • Img mode: The image is treated as an "image element" that preserves the original aspect ratio.

Mode

Characteristics

Use cases

Box mode

Treats the image as a box background. Can contain child elements inside.

・Use an image as a background
・Overlay text on an image (by containing a text box inside)
・Display the image at any aspect ratio, independent of the original

Img mode

Treats the image as an element.
Preserves the original aspect ratio.

・Display the image while keeping the original aspect ratio
・Show the full image without cropping the edges

What you can do in each mode

Checking the differences in features makes it easier to decide which one to use.

Image action

Box mode

Img mode

Add child elements to create a parent-child box structure

×

×

Display while preserving the original aspect ratio

×

×


Switching modes

Select the image box and use the toggle in the upper right to switch modes.


Box mode features

Box mode is well-suited for situations where you want to use an image as a background.

  • You can add child elements to create a parent-child box structure. This is useful when you want to overlay text or buttons on top of an image.

  • Not suitable when you need to preserve the original aspect ratio.

Use cases

Use case

Reason

Hero section background

You can overlay text or buttons on top of the image.

Product list images

Display at a consistent size, regardless of each original image's aspect ratio.

Decorative images

Adjust size, color, and brightness as a background.

Note: If the image appears collapsed

An image box in Box mode is treated as an empty box when it doesn't contain any elements. As a result, if the width or height of a Box mode box is set to [auto] while empty, it may appear collapsed because there's no reference size.

However, if that image box is inside a parent box with the layout setting set to [Space between], the Box mode image will display correctly without collapsing even if its size is [auto].


Img mode features

Img mode is well-suited for situations where you want to treat an image as a standalone element.

Use cases

Use case

Reason

Company logo

Displays at the original aspect ratio.

Product photos

You can set an alt attribute.

Group photos

Displays without cropping the edges of the original image.

Tip: Double-click an edge of an image box on the screen to change that edge's size unit to [auto].

image picture

image photo asset image collapsed image disappeared image showing as a line

Did this answer your question?