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
  • General
  • Opacity
  • Dimensions
  • Width
  • Height
  • Left
  • Top
  • Rotation angle
  • Shadows
  • Shadow style
  • Horizontal offset
  • Vertical offset
  • Shadow Blur radius
  • Shadow spread radius
  • Shadow color
  • Font options
  • Font
  • Font Weight
  • Font Size
  • Bold
  • Italic
  • Underline
  • Text Alignment
  • Font Color
  • Placeholder color
  • Font Shadow
  • Show text shadow
  • Horizontal offset
  • Vertical offset
  • Font Shadow Blur Radius
  • Font shadow Color
  • Font options
  • Word spacing
  • Line spacing
  • Letter spacing
  • Borders
  • Define each border independently
  • Border style
  • Border roundness
  • Border Width
  • Border color
  • Tooltip on hover
  • Tooltip text (on hover)
  • Padding
  • Top
  • Right
  • Bottom
  • Left
  • Center the text vertically
  • Background
  • Background style
  • Background Color
  • Gradient style
  • Gradient direction
  • Direction degrees
  • Gradient shape
  • Gradient base
  • X center position (%)
  • Y center position (%)
  • Starting color
  • Ending color
  • Intermediate color
  • Background image
  • Center the image
  • Make image as wide as parent element
  • Crop the image to fit the element size
  • Repeat the image vertically
  • Repeat the image horizontally
  • Background color if empty

Was this helpful?

  1. Core Reference
  2. Elements

Styling properties

Last updated 3 months 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:

Styling In this article we cover the different tools available in the design tab.

  • Article: ´

  • Article:

    • Article: Storing font settings that can be used in styles and on individual elements.

    • Article: Storing color settings that can be used in styles and on individual elements.


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.


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.


Previewing your app

In this section about how to in the development environment.

These are common styling properties that can be applied to most in the Bubble editor. They include , , , , etc. These are also properties included in .

General

Opacity

Defines the opacity of the entire element. 100 is fully opaque while 0 is fully transparent.

Note: This is different than the the color picker's opacity input, or alpha value . That value sets the opacity of the color itself. This setting sets the opacity of the entire element and its children.

For example, a button element placed within a group element with opacity lower than 100 will inherit that opacity.

Dimensions

These properties control the size and positioning of the selected element.

Width

Defines the width of the selected element in pixels.

Height

Defines the height of the selected element in pixels. This height adjusts if the element or content inside a container is 'Set to stretch to fit content.' In this case, the number entered here is the minimum height for that element.

Left

Defines the horizontal position in pixels relative to the left border of the containing element, which is either a group or popup or the page.

Top

Defines the vertical position in pixels relative to the top border of the containing element, which is either a group, a popup, or the page.

Rotation angle

Rotate the selected element by entering a number in this field. This number is expressed in degrees.

Shadows

These properties define a shadow for the selected element.

Shadow style

Choose from None, Outset, and Inset to define a shadow to the selected element. Inset sets a show inside the element. Outset sets a show outside the element.

Horizontal offset

Defines the position of the horizontal shadow. Negative values are allowed.

Vertical offset

Defines the position of the vertical shadow. Negative values are allowed.

Shadow Blur radius

Define the blur distance in pixels. A higher number means a more diffuse shadow, and a lower number means a sharper shadow.

Shadow spread radius

Positive values will cause the shadow to expand and grow bigger, negative values will cause the shadow to shrink. If not specified, it will be 0 (the shadow will be the same size as the element).

Shadow color

Defines the color of the shadow. Tip: Experiment with the transparency of the color.

Font options

These properties style text.

Font

Select the font family to apply to the selected element. Choose from the hundreds of fonts in the Google Fonts Library.

Font Weight

Select the font weight to apply to the selected element. Choose from standard weights ranging from 100 to 900.

Note: Not all fonts have all 9 weights. If you are not seeing the expected weights, the selected font doesn't support it.

Font Size

Enter a font size in pixels for the text.

Bold

Makes the text darker and thicker.

Italic

Makes the text slanted.

Underline

Underlines the text. This is useful in conditional formatting, when a link is hovered, for instance.

Text Alignment

Aligns the text. Choose from Left, Center, and Right.

Font Color

Select the text color.

Placeholder color

Select the color to apply to the placeholder of the input element.

Font Shadow

These properties add a shadow to texts.

Show text shadow

Check this box to show a shadow on the text.

Horizontal offset

Defines the position of the horizontal shadow. Negative values are allowed.

Vertical offset

Defines the position of the vertical shadow. Negative values are allowed.

Font Shadow Blur Radius

Define the blur distance in pixels. A higher number means a more diffuse shadow, and a lower number means a sharper shadow.

Font shadow Color

Select the color of the shadow. Tip: Experiment with the transparency of the color.

Font options

These options control text spacing.

Word spacing

Define the space between words in pixels.

Line spacing

Define the line height as a ratio relative to the font size, where 1 equals the default spacing, and higher values increase spacing proportionally.

Understanding line height

Line height controls the vertical spacing between lines of text. Instead of being a fixed value in pixels, it is set as a ratio relative to the font size. This means the actual spacing scales automatically based on the text size.

How the calculation works

The formula for determining line height is:

Lineheight=Fontsize×LineheightratioLine height = Font size × Line height ratioLineheight=Fontsize×Lineheightratio

For example, if your text has a font size of 16px and you set the line height to 1.5, the total spacing between lines is calculated as:

16px×1.5=24px16px × 1.5 = 24px16px×1.5=24px

This means that the full height of each line—including spacing—is 24 pixels.

Why use a ratio instead of pixels?

Using a ratio instead of a fixed pixel value ensures your text stays consistent and responsive across different screen sizes. Larger text will automatically have proportionally larger spacing, making it easier to read without needing manual adjustments.

Letter spacing

Define the space between letters in pixels.

Borders

These properties define the borders of the elements.

Note: Top and left borders on an element will nudge the center alignment of items inside that element (e.g. text). One workaround is to have a text element inside of another element (e.g. group), and apply the border to the outside element instead.

Define each border independently

Check this box if borders are to be set independently.

Border style

Choose a style for the border. Choose from None, Dotted, Dashed, Double, Groove, Ridge, Inset, and Offset.

Border roundness

Define the border radius in pixels.

Border Width

Define the border width in pixels.

Border color

Select the border color.

Tooltip on hover

Tooltip text (on hover)

This text is displayed by the browser when the user hovers over it with the mouse. Technically, it sets a title attribute to the element it is applied to.

Padding

These properties let you select the space between the borders and the actual content of the element.

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.

Center the text vertically

Check this box to center the text vertically.

Tip: Top and left borders on an element will nudge the center alignment of items inside that element (e.g. text). One workaround is to have a text element inside of another element (e.g. group), and apply the border to the outside element instead.

Background

These options define the background of the elements: color, image, etc.

Background style

Select the background style to apply to the element. Choose from None, Flat color, Gradient, and Image.

Background Color

Select the background color for the element.

Gradient style

Choose from Linear and Radial to define the gradient style.

Gradient direction

Choose from Top, Left, Bottom, Right, and Custom to define the gradient direction.

Direction degrees

Enter a value between 0 and 360 for the direction of the gradient.

Gradient shape

Defines the shape of the gradient. Choose from Ellipse and Circle.

Gradient base

Select a screen location from this dropdown menu to determine where to base the gradient. Choose from Closest-side, Closest-corner, Farthest-side, and Farthest-corner.

X center position (%)

Define the horizontal centering position. 50% will center the gradient.

Y center position (%)

Define the vertical centering position. 50% will center the gradient.

Starting color

Select the starting color of the gradient.

Ending color

Select the ending color of the gradient.

Intermediate color

Select the optional middle color of the gradient. If the input is empty, no intermediate color will be applied.

Background image

Upload or define a dynamic image. Select an image from the Bubble royalty-free library, if desired.

Center the image

Centers the image in the element.

Make image as wide as parent element

If the element is wider than the element selected, the image will automatically resize to cover the entire element.

Crop the image to fit the element size

In Responsive mode, checking this option makes sure the element's background image will be cropped to fill the entire element's background without distorting the image.

Repeat the image vertically

Repeat the image vertically if the image is smaller than the element's height.

Repeat the image horizontally

Repeat the image horizontally if the image is narrower than the element's width.

Background color if empty

When using a dynamic image, it might take a few milliseconds for the image to load. In the meantime, select a background color for the element. The default is transparent.

Bubble renders the page to adjust to the screen width, i.e, responsive layout. A few options control the behavior of the page.

Article:

Bubble Academy: (list of videos related to elements)

Previewing your app
Element videos
The design tab
The styles tab
Font variables
Color variables
Design
Responsive design
Elements
The element hierarchy
The page
Container elements
Visual elements
Input forms
Conditional expressions
borders
backgrounds
shadows
fonts