Skip to content
Documentation
DropUI homepage
Topics

Adjust element sizes and spacing

A button is too narrow, text touches its border or an image pushes other content aside? Treat size, inner space and distance from neighbours as separate settings.

Select the right object

Click the element or find it through More -> Element list. Check the right panel's title: a form and its submit button have different settings.

Adjust width and height

In the size section, choose automatic sizing, available space or a fixed value using the controls for that element.

Element size controls and available units.

Fixed height can cut off longer text. A percentage width refers to the element's container, which may be narrower than the browser.

Use minimum and maximum values when you need a specific limit.

Set spacing

Padding creates space inside the element, such as between a button label and its border. Margin separates it from nearby elements. A group also controls the gap between its children.

Padding and margin controls.

Linked values change several sides together. Unlink them when the top needs different spacing from the sides.

Check difficult cases

Try the longest text, a form error and the phone layout. The element must fit more than the short label visible while editing.

If the layout still breaks, check the parent group before adding more margins. Save the correction and verify it in Preview.

Example: give the code room

The code block uses 100% width capped at 400 px. Padding is 16 px above and below, and 24 px on the sides; margins are 16 px above and below. These values suit this offer, rather than every campaign.

Code block in the design after adjusting its spacing.

Have questions after reading this guide?

Get in touch. We’ll answer your questions and help you with setup, free of charge.

Patryk Surmacz

I’ll walk you through the settings, step by step.