General Properties

The properties here apply to all elements in Bubble.

Changing the parent element's type

This option modifies the type of content of the parent element on the fly. The type of content defines what type of thing a group should expect, so that you can refer to it when editing the app. For example, a group can receive a user, who isn't necessarily the current user, and then you can add a text element in the group to display the 'Parent group's user's email.'

This element is visible on page load

Check this box to make the element visible by default. This checkbox makes the element visible every time the page loads or reloads. Change the visibility of the element based on certain conditions in the Conditional section in the Property Editor or with a show/hide element action in a workflow. To find hidden elements quickly, click the 'Only show hideable' checkbox in the Elements tree in the Palette. Clicking on the name shows or hides the element for editing purposes only. Like other properties, this setting can be overwritten by a condition on an element or by a show/hide action in a workflow. Actions take precedence over conditions which take precedence over the default setting.

Replace element

Click this button to replace an element with an element of a different type. For example, change an element from a checkbox to a toggle or from a group to a popup. Note: This operation may lead to inconsistencies, so check the Issues Checker to make sure no new issues are introduced. Undo this change, if necessary.

Style

Select a style from this dropdown menu to apply to the selected element. Styles are defined in the Styles Tab and can be applied to more than one element. When a style is modified, all elements with that style will automatically change. Using styles makes editing the app faster and ensures a consistent design.

Reset

Clicking the Reset link will re-apply the padding from the element's style. The link is only visible if you have made changes to the padding.

Edit style

Clicking this button displays the Styles Tab and selects the current element's style.

Select parent

Choose an element from this dropdown menu to contain the selected element. This is convenient when an element is contained by a group with the same dimensions.

Reveal in Elements Tree

Clicking this button shows where the element is in the Elements tree in the Palette.

Lock this element (not draggable in editor)

When this box is checked, the element will not be draggable in the Bubble Editor. This is useful when working on large pages. This has no impact in run mode.

ID Attribute (advanced)

If you activate the option Expose the option to add an ID attribute to HTML elements in the Settings Tab, you can specific a unique ID for some element on the page. This ID will be applied in run mode to the outer div around the element. This is an advanced feature. Warning: Bubble does not guarantee that the internal structure of the divs will remain the same over time. What is guaranteed here is the ID will be applied to the outer element. Keep this mind as you use IDs.

Margins

Margins create extra space around an element. Margins define the overall size of a visual element on the page and how it interacts with elements around it in both fixed and responsive layouts.

For example, in a fixed container layout, margins can be used to provide even spacing around elements in a form. In a row container layout, margins will be added to the min and max width of the element to inform when the element should wrap to the next row.

In addition, margins will align and snap based on the margin border, not the element border. If the margin is 0, the margin border and element border will be the same.

Margin controls are available on all elements in the Layout tab of the property editor. These controls are also available in conditional statements to replace the legacy responsive “collapse margins” functionality.

Tip: In a responsive container, margins will help you position a child element where you want it once you have selected the appropriate alignment option. For example, if you have a button in a column container and you want the button to be 30px from the bottom of the container, simply bottom-align the button and add 30px of margin to the bottom of the button element.

Top

Specify the amount of margin at the top of the element in pixels.

Right

Specify the amount of margin on the right side of the element in pixels.

Bottom

Specify the amount of margin to the bottom of the element in pixels.

Left

Specify the amount of margin on the left side of the element in pixels.

Padding

Padding creates extra space within an element. In general, padding defines the amount of "usable" space inside of an element. Since new padding controls are only available on Containers (for now), padding will define how close to the edge of a parent container a child element is allowed to get.

For example, in a Column container layout, a padding of 30px on the left and ride side of the container will add 30px of space inside the container on each side. If the Parent container's width is set to 420 px, the largest width any child element could have is 360px - (420px - (30px *2)).

If a parent container has padding applied, child elements will align or snap on the boundaries of the padding area, not the container border.

Similar to margins, padding controls are also available in conditional statements.

Note: New padding controls are only available on container elements for the time being. All visual elements will be getting new padding controls soon as well.

Top

Specify the amount of padding at the top of the container in pixels.

Right

Specify the amount of padding on the right side of the container in pixels.

Bottom

Specify the amount of padding to the bottom of the container in pixels.

Left

Specify the amount of padding on the left side of the container in pixels.

Style / Style (overridden)

If padding is applied to this element from a Style, click this link to navigate to the Styles tab to make edits to the Style as needed. If you have made changes to the padding that differ from the style, the link will say Style (overridden). You can reset to the style's setting using the Reset link on the right-hand side.

If you don't have a style applied, this setting will not be visible.

Last updated

Was this helpful?

#528: Detach reusable element

Change request updated