Bubble Docs
  • Introduction
  • New? Start Here
  • What is Bubble?
  • The Glossary
  • User manual
    • Getting started
      • What is Bubble?
      • Building your first app
        • Planning features
        • Database structure
        • Design and UX
        • eCommerce and payments
          • Shopping cart
          • Checkout page
          • One-time payments
          • Subscriptions
          • Marketplace
      • Creating and managing apps
      • The Bubble editor
        • Tabs and sections
          • Design tab
            • The element tree
            • The property editor
          • Workflow tab
          • Data tab
          • Styles tab
          • Plugins tab
          • Settings tab
            • Application settings
              • Custom headers/body
              • Visual settings
              • Social media sharing
              • Translating your app
              • Email settings
              • Collaboration
            • Custom domain and DNS
          • Logs tab
        • Tools
          • Key features
          • The search tool
          • The Issue Checker
          • The element tree
          • The element property editor
          • The debugger
          • Notes
        • Previewing your app
      • Transitioning to Bubble from...
        • JavaScript
        • HTML and CSS
        • SQL
    • Design
      • Elements
        • The element hierarchy
          • The element tree
        • The page
        • Containers
          • Groups
          • Repeating groups
          • Table elements
          • Popups
          • Floating groups
          • Group focus
        • Visual elements
        • Input forms
          • Text and numbers
          • Dates and time
          • File uploads
          • Selection controls
        • Reusable Elements
      • Styling
        • Color variables
        • Font variables
        • Styles
        • Custom Fonts
      • Responsive design
        • Building responsive pages
        • Legacy articles
          • The Basics (Legacy)
          • Building Responsive Pages (Legacy)
          • Migrating Legacy Pages
          • Tips When Designing (Legacy)
      • Templates
      • The Component Library
      • Importing from Figma
    • Data
      • The database
        • Data types and fields
        • Creating, saving and deleting data
        • Finding data
        • Displaying data
        • Protecting data with privacy rules
        • The database editor
        • Export/import data
          • Exporting data
          • Importing data (CSV)
        • Working with location data
        • Using Algolia
        • Database structure by app type
          • Marketplace Apps
          • Directory & Listings Apps
          • Social Network Apps
          • SaaS Apps
          • Project Management Apps
          • CRM Apps
          • Professional Services Apps
          • On-demand Apps
          • Documentation/ CMS Apps
          • Applicant Tracking System (ATS) Apps
          • Portfolio Apps
          • Gallery Apps
          • Online Store / Ecommerce Apps
          • Blog Apps
          • Messaging App
          • Dashboards
          • Building Block Apps
          • Bubble as a backend
      • Files
      • Images
      • Static data
        • App texts (translations)
        • Option sets
      • Temporary data
        • Custom states
        • URL parameters
      • User accounts
        • Authentication plugins
          • Facebook plugin
          • Fitbit plugin
          • Google plugin
          • Instagram plugin
          • LinkedIn plugin
          • Pinterest plugin
          • Slack plugin
          • Wistia plugin
          • YouTube plugin
        • Cookies set by Bubble
      • Time, dates and time zones
    • Logic
      • The frontend and backend
      • Workflows
        • Events
          • Frontend events
            • Recurring workflows
            • Custom events
          • Backend events
            • Database trigger events
        • Actions
        • API Workflows
      • Dynamic expressions
      • Conditions
      • Navigation
        • Single-page applications (SPA)
        • Multi-page applications
        • Page slugs
    • Workload
      • Understanding workload
        • Activity types
        • The workload calculation
        • Client-side and server-side processing
      • Tracking workload
        • Measuring
          • Using App Metrics
        • Monitoring
          • Workload notifications
          • Infinite recursion protection
      • Optimizing workload
        • Optimization framework
        • Optimization checklist
          • Page load
          • Searches
          • Workflows and actions
          • Backend workflows
        • Agency showcases
          • Minimum Studio
          • Neam
          • Support Dept
    • Security
      • Bubble's security features
      • Planning app security
      • Client-side and server-side
      • Bubble account security
      • App security
      • Page security
      • Database security
      • API security
        • API Connector security
        • Data API security
        • Workflow API security
      • Flusk
        • Overview
        • Flusk plan features
        • Getting started with Flusk
        • Flusk security tools
          • The Issues Explorer
          • Issue details
          • Tools and settings
            • Pages rating
            • Database rating
        • Flusk FAQ
      • Cookies
      • Security checklist
    • Publishing your app
      • Web app
      • Native mobile app
        • Global native mobile settings
        • iOS App Store
        • Google Play Store
        • Publishing FAQ
    • AI
      • Generate apps with AI
        • About AI app generation
      • AI page designer
      • Connect to AI agents
    • Maintenance
      • Collaborators
      • Version control
        • Best practices: Version control
        • Transitioning from the legacy version control
        • Terminology: Version control
        • Version Control (legacy)
      • Commenting
      • Database maintenance
        • Copying the database
        • Restoring database backups
        • Bulk operations
          • Bulk operation methods compared
        • Wiping change history
      • Performance
        • Hard limits
        • Capacity Usage (legacy)
        • Notes on queries
      • SEO
        • Introduction to SEO
        • SEO: App
        • SEO: Page
      • Testing and debugging
        • Introduction to testing and debugging
        • The debugger
        • The server logs
        • Supported browsers
      • API workflow scheduler
    • Integrations
      • API
        • Introduction to APIs
          • What is a RESTful API?
        • The Bubble API
          • Bubble API terminology
          • Authentication
            • How to authenticate
            • No authentication
            • As a User
            • As an admin
          • The Data API
            • Data API Privacy Rules
            • Data API endpoints
            • Data API requests
          • The Workflow API
            • Workflow API privacy rules
            • Workflow API endpoints
            • API workflows
              • Creating API workflows
              • Scheduling API workflows
              • Recursive API workflows
              • API Workflow Scheduler
              • Case: Stripe notifications
        • The API Connector
          • Authentication
          • API Connector security
          • API guides
            • OpenAI
              • Authentication
              • Calls
                • ChatGPT
                  • Chat
            • Google Translate
              • How to setup Google API keys
          • Streaming API
        • API security
        • Plugins that connect to APIs
        • API Glossary
      • Plugins
        • What Plugins Can Do
        • Installing and using Plugins
        • Authentication plugins
        • Special Plugins
      • SQL Database Connector
      • Bubble App Connector
      • WorkOS
        • WorkOS SSO
        • WorkOS API
    • Infrastructure
      • Sub-apps
      • Bubble release tiers
      • Hosting and scaling
        • How Bubble hosting works
        • Scaling with Bubble
        • CDN (Cloudflare)
        • Bubble app names
        • Domain and DNS
      • Compliance
        • GDPR
        • SOC 2 Type II
        • HIPAA
        • Other frameworks and standards
    • Bubble for Enterprise
      • Hosting and infrastructure
        • Dedicated instance
          • The Dedicated editor experience
          • Technical specs
          • Main cluster dependencies
          • Customizable options
          • Migration process
            • Pre-migration
            • During migration
            • Post-migration
      • Security and compliance
        • Single sign-on (SSO)
        • GDPR
        • SOC 2 Type II
        • HIPAA
        • Other frameworks
        • Bubble's security features
      • Admin and collaboration
      • Priority support
      • Billing and Payment Guideline for Dedicated Instances
  • Core Reference
    • Using the core reference
    • Bubble's Interface
      • Design tab
      • Design tab (Legacy)
      • Workflow tab
      • Data tab
      • Styles tab
      • Styles tab (Legacy)
      • Plugins tab
      • Settings tab
      • Logs tab
      • Template tab
      • Toolbar
      • Top and context menu options
      • Deployment and version control
        • Deployment & Version Control Dropdown (legacy)
      • Notes
    • Elements
      • General properties
      • General properties (Legacy)
      • Styling properties
      • Styling Properties (Legacy)
      • Responsive Properties
      • Responsive Properties (Legacy)
      • Conditional formatting
      • States
      • Page Element
        • Page Element (Legacy)
      • Visual Elements
      • Containers
      • Container Layout Types
      • Containers (Legacy)
      • Input Forms
      • Reusable Elements
      • Element Templates (legacy)
    • Workflows
    • Events
      • General events
      • Element events
      • Custom events
      • Recurring event
      • Database trigger event
    • Actions
      • Account
      • Navigation
      • Data (things)
      • Email
      • Element
      • Custom
    • Data
      • Data Sources
      • Operators and comparisons
      • Search
      • Privacy
    • Styles
    • API
      • The Bubble API
        • The Data API
          • Authentication
          • Data API endpoints
          • Data API requests
        • The Workflow API
      • The API Connector
        • Authentication
        • Adding calls
    • Bubble-made Plugins
      • AddtoAny Share Buttons
      • Airtable
      • API Connector
      • Blockspring
      • Box
      • Braintree
      • Bubble App Connector
      • Chart.js
      • Circle Music Player
      • Draggable Elements
      • Dropzone
      • Facebook
      • Fitbit
      • Full Calendar
      • Google
      • Google Analytics
      • Google Optimize
      • Google Places
      • Ionic Elements
      • iTunes
      • Slidebar Menu
      • LinkedIn
      • Localize Translation
      • Mixpanel
      • Mouse & Keyboard Interactions
      • Multiselect Dropdown
      • Progress Bar
      • Rich Text Editor
      • Rich Text Editor (Legacy)
      • Screenshotlayer
      • SelectPDF
      • Slack
      • Segment
      • Slick Slideshow
      • SQL Database Connector
      • Star Rating
      • Stripe
      • Tinder-like Element
      • Twitter
      • YouTube
      • Zapier
    • Application Settings
      • App plan
      • General
      • Domain / email
      • Languages
      • SEO / metatags
      • API
      • Collaboration
      • Sub-apps
      • Versions
  • Account & Marketplace
    • Account and billing
      • Pricing and plans
        • Plans and billing
        • Billing cycle
        • FAQ: Pricing and Workload
      • Account Management
      • Building Apps for Others
      • Selling on the Marketplace
      • Plans & Billing (legacy)
    • Official Bubble Certification
      • Hiring certified developers
    • Building Plugins
      • The Plugin Editor
      • General Settings
      • Updating to Plugin API v4
      • Adding API Connections
      • Building Elements
      • Building Actions
      • Loading Data
      • Publishing and versioning
      • Github Integration
    • Building Templates
    • Application and data ownership
    • Marketplace policies
    • Bug reports
  • Vulnerability Disclosure Policy
  • Beta features
    • About the Beta features section
    • Native mobile apps 🔒
      • Introduction
        • What is a native mobile app?
        • Native mobile vs. web development
        • Differences in native and web elements
        • Native mobile app terminology
      • Building
        • Views and navigation
        • Native mobile actions
        • Components and gestures
        • Device resources
          • Location services
          • Camera/photo library
      • Previewing
      • Publishing
Powered by GitBook
On this page
  • Changing the parent element's type of content
  • This element is visible on page load
  • Replace element
  • Style
  • Detach style
  • Edit style
  • Override style
  • Reset
  • Notes on resetting styles
  • Select parent
  • Reveal in Elements Tree
  • Lock this element (not draggable in editor)
  • ID Attribute (advanced)
  • Margins
  • Top
  • Right
  • Bottom
  • Left
  • Padding
  • Top
  • Right
  • Bottom
  • Left
  • Style / Style (overridden)

Was this helpful?

  1. Core Reference
  2. Elements

General properties

Last updated 1 year ago

Was this helpful?

This core reference entry is suited for beginner-level builders.

To learn about this topic more in-depth, we recommend reading the suggested articles below:

Tools

  • Article:


Elements In this article series, we cover how to work with different element types:

  • Article series:

    • Article series:

    • Article:

    • Article series: Elements that contain other elements.

    • Article: Elements like text, buttons, icons and images.

    • Article series: Elements that accept input, such as text and file uploads.

  • Article: Making your elements change appearance in response to varying conditions.


Design

Article series focusing on design in general, explaining terminology and offering resources to help you set up a user-friendly, good looking design.

  • Article series:

    • Article: Building pages that work on all devices, such as a laptop and a phone.

  • Article: ´


Previewing your app

In this section about how to in the development environment.

The properties here apply to all in Bubble.

Changing the parent element's type of content

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 . This checkbox makes the element visible every time the page loads or . Change the visibility of the element based on certain in the Conditional section in the or with a show/hide element in a workflow. To find hidden 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 in a workflow. Actions take precedence over conditions which take precedence over the default setting.

Note on security: Be aware that tech-savvy users can access the underlying static content of any page, even if certain elements are hidden from their view. As such, never place sensitive information such as private URLs or tokens in hidden elements on the page.

You can read more about maintaining page security in our dedicated article below:

User manual article:

Replace element

Click this button to replace an with an element of a different type. For example, change an element from a to a or from a to a .

Elements can only be replaced by elements within their own . For example, a category) cannot be replaced by a ( category).

This operation may lead to inconsistencies, so check the Issues Checker to make sure no new issues are introduced. If you are experiencing issue, you can use Undo to revert the change.

Style

Select a from this dropdown menu to apply to the selected element. Styles are defined in the 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.

Detach style

Clicking this button detaches the style from the selected element. The style association is detached, but the properties of the style remain on the element.

The style is not changed or deleted, only detached from the specific element.

Edit style

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

Override style

To override a style, change one of its values. The style dropdown will show an (overriden).

Reset

To reset the elements style back to the selected style, click Reset next to Appearance settings. This button is only visible when the style is overriden.

Notes on resetting styles

A few notes on the behavior of Style overrides:

  • Resetting will change any overridden values on a tab by tab basis

  • If you override any values, and then update the attached Style, the overridden values will not change - even if those settings on the Style were updated

  • If you override any values, and then detach the Style, the overridden values will not change

  • If you override any values, and then detach the Style, and then reattach a Style, the overridden values will be removed in favor of the new Style’s inherited values.

  • If you override any values, and then change the overridden value back to the original value, the value will still be considered an override. To “re-attach” the value, use the reset button

  • If you override any values, and then create a new Style from the element, the overridden values will carry over to the new Style

  • Conditionals cannot be overridden yet. If you want to override an inherited conditional, simply add a new style that has the behavior you want since conditionals are evaluated from top to bottom

Select parent

This dropdown shows all the of the element you are currently editing.

Reveal in Elements Tree

Clicking this button shows where the element is in the .

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 .

ID Attribute (advanced)

Note: This is an advanced feature best suited for those with at least a basic understanding of CSS.

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. 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 and can be saved in .

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 you don't have a style applied, this setting will not be visible.

Article:

Bubble Academy: (list of videos related to elements)

If padding is applied to this element from a , 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 on the right-hand side.

Previewing your app
Element videos
Reset link
The element property editor
Elements
The element hierarchy
The page
Container elements
Visual elements
Input forms
Conditional expressions
Design
Responsive design
The design tab
Page security
category
(input forms
container
checkbox
radio button
text input element
group
popup
group