• Widgets
      Changelogs
      Source Code NEW PRO
      Caldera Forms
      Logo Slider
      Table of Contents
      Gravity Forms
      Transforms PRO
      Restrict Content PRO
      Pricing Table
      Ninja Form
      Mailchimp
      Tooltip
      Popup Trigger NEW PRO
      Which Element NEW
      Creative Button
      Creative Links NEW
      Domain Search HOT PRO
      Dual Heading HOT
      Flipbox
      Animated Gradient BG HOT PRO
      Image Hotspot PRO
      Infobox
      News Ticker PRO
      Particles
      Progress Bar
      Off-Canvas Content NEW PRO
      Reading Progress Bar HOT
      Custom JS
      Blockquote
      Counter Up
      Image Hover Effects
      Reveal NEW PRO
      Rellax PRO
      Positioning
      Image Comparison
      Tabs
      Toggle Content HOT PRO
      Post/Page Duplicator FREE
      Icons Extended
      Floating Effects PRO
      Mega Menu HOT
      Custom CSS HOT
      Gradient Headline
      Advanced Image
      Nav Menu
      Tooltips
      Comparison Table PRO
      Glassmorphism
      Featured Product PRO
      Image Carouse
      Gallery Slider NEW PRO
      Dynamic Tags NEW
      Countdown Timer
      Current Time
      Patterns
      Wrapper Link
      Timeline
      Team Member
      Contact Form 7
      Advanced Accordion
      Animated Headlines
      Blog
      Business Hours
      Call To Action
      Progress Bars
      Background Slider
      Team Slider
      Dynamic Table
      Grid Line PRO
      WP Forms
      Search
      We Form
      Entrance Animation NEW PRO
      Display Conditions PRO
      Filterable Image Gallery
      WP Forms
      Custom Breakpoints NEW
  • Features

      Theme Builder

      Design site-wide templates for a consistent look across every page of your website.

      Popup Builder

      Create engaging popups, modals, and announcement bars - to capture leads.

      Widget Builder

      Expand Elementor with advanced custom widgets to build more dynamic layouts.

      Mega Menu Builder

      Create multi-column menus with icons and images for superior navigation.

      Custom Css

      Apply your own CSS for pixel-perfect styling beyond default design options.

      Dynamic Tags

      Insert dynamic content like post titles and custom fields directly into designs.

      Display Conditions

      Control element visibility based on user role, device, time, and other rules.

      Icons Library

      Choose from thousands of built-in icons to enhance visuals and consistency.

      Animation

      Add scroll, hover, entrance, and much more animations to bring designs to life.
  • Template Kits

      Template Kits

      Professionally designed full-page template Kit. Import and customize in seconds.

      Ready Sections

      Pre-built content sections and rows. Drag, drop, and customize instantly.

      Ready Popups

      Different types of High-converting popup designs. Import and launch quickly.

      Ready Pages

      Complete page layouts for any purpose. Start editing immediately.

      Ready Header

      Multiple modern header designs. Import and adapt to your brand.

      Ready Footer

      Fully designed footers for different websites. Add functionality and style in clicks.
  • Brands

      WP Adminify

      Take control of your WordPress dashboard. Customize the admin experience.

      Admin Bar Editor

      Customize the WordPress admin bar for a cleaner, more personalized workspace.

      Loginfy

      Customize your WordPress login page with branding, styles, and security enhancements.

      Rolemaster Suite

      Manage user roles and permissions with precision for better security and workflow.

      Master Blocks

      Expand the Gutenberg editor with advanced custom blocks for more creative layouts.

      WP Spotlight

      Instantly search and access admin features, posts, and settings from anywhere.
  • Themes
  • Help
    • Get Support
    • Documentation
    • Facebook Community
    • Changelogs
  • Widgets
      Changelogs
      Source Code NEW PRO
      Caldera Forms
      Logo Slider
      Table of Contents
      Gravity Forms
      Transforms PRO
      Restrict Content PRO
      Pricing Table
      Ninja Form
      Mailchimp
      Tooltip
      Popup Trigger NEW PRO
      Which Element NEW
      Creative Button
      Creative Links NEW
      Domain Search HOT PRO
      Dual Heading HOT
      Flipbox
      Animated Gradient BG HOT PRO
      Image Hotspot PRO
      Infobox
      News Ticker PRO
      Particles
      Progress Bar
      Off-Canvas Content NEW PRO
      Reading Progress Bar HOT
      Custom JS
      Blockquote
      Counter Up
      Image Hover Effects
      Reveal NEW PRO
      Rellax PRO
      Positioning
      Image Comparison
      Tabs
      Toggle Content HOT PRO
      Post/Page Duplicator FREE
      Icons Extended
      Floating Effects PRO
      Mega Menu HOT
      Custom CSS HOT
      Gradient Headline
      Advanced Image
      Nav Menu
      Tooltips
      Comparison Table PRO
      Glassmorphism
      Featured Product PRO
      Image Carouse
      Gallery Slider NEW PRO
      Dynamic Tags NEW
      Countdown Timer
      Current Time
      Patterns
      Wrapper Link
      Timeline
      Team Member
      Contact Form 7
      Advanced Accordion
      Animated Headlines
      Blog
      Business Hours
      Call To Action
      Progress Bars
      Background Slider
      Team Slider
      Dynamic Table
      Grid Line PRO
      WP Forms
      Search
      We Form
      Entrance Animation NEW PRO
      Display Conditions PRO
      Filterable Image Gallery
      WP Forms
      Custom Breakpoints NEW
  • Features

      Theme Builder

      Design site-wide templates for a consistent look across every page of your website.

      Popup Builder

      Create engaging popups, modals, and announcement bars - to capture leads.

      Widget Builder

      Expand Elementor with advanced custom widgets to build more dynamic layouts.

      Mega Menu Builder

      Create multi-column menus with icons and images for superior navigation.

      Custom Css

      Apply your own CSS for pixel-perfect styling beyond default design options.

      Dynamic Tags

      Insert dynamic content like post titles and custom fields directly into designs.

      Display Conditions

      Control element visibility based on user role, device, time, and other rules.

      Icons Library

      Choose from thousands of built-in icons to enhance visuals and consistency.

      Animation

      Add scroll, hover, entrance, and much more animations to bring designs to life.
  • Template Kits

      Template Kits

      Professionally designed full-page template Kit. Import and customize in seconds.

      Ready Sections

      Pre-built content sections and rows. Drag, drop, and customize instantly.

      Ready Popups

      Different types of High-converting popup designs. Import and launch quickly.

      Ready Pages

      Complete page layouts for any purpose. Start editing immediately.

      Ready Header

      Multiple modern header designs. Import and adapt to your brand.

      Ready Footer

      Fully designed footers for different websites. Add functionality and style in clicks.
  • Brands

      WP Adminify

      Take control of your WordPress dashboard. Customize the admin experience.

      Admin Bar Editor

      Customize the WordPress admin bar for a cleaner, more personalized workspace.

      Loginfy

      Customize your WordPress login page with branding, styles, and security enhancements.

      Rolemaster Suite

      Manage user roles and permissions with precision for better security and workflow.

      Master Blocks

      Expand the Gutenberg editor with advanced custom blocks for more creative layouts.

      WP Spotlight

      Instantly search and access admin features, posts, and settings from anywhere.
  • Themes
  • Help
    • Get Support
    • Documentation
    • Facebook Community
    • Changelogs
Purchase Now

Getting Started

  • Can’t see the Master Addon Element inside Elementor Page editor?
  • Update Issues For WordPress Core, Theme, & Plugins
  • How To Apply For an Affiliate Account?
  • Upgrade Master Addons Free To Pro
  • Active Pro version
  • Installing Plugin

Addons

  • Progress Bars
  • Image Carousel
  • Featured Product Element
  • Elementor Comparison table For Products & Services
  • Source Code Element
  • Advanced Image Element
  • How to Add Gradient Headline in Elementor?
  • Gallery Slider
  • Toggle Content
  • Infobox Element
  • Timeline Element
  • Dynamic Table Element
  • Instagram Feed
  • Mailchimp Element
  • BlockQuote Element
  • Changelog Element
  • Countdown timer
  • Current Time
  • Search Element
  • Filterable Image Gallery
  • Team Members Carousel
  • Counter Up For Elementor
  • Restrict Content For Elementor
  • MA Table of Contents
  • Image Hotspot
  • Image Comparison Element
  • News Ticker Element
  • Image Hover Effects Element
  • Advanced Tabs Element
  • Pricing Table Elementor Free Widget or Element Customization
  • Navigation Menu + Mega Menu
  • Navigation Menu Element
  • How Domain Search Works
  • How to configure FlipBox Element
  • Adding Tooltip in Elementor Editor
  • How to add Creative Links?
  • How to Add Business Hours Elementor Page Builder?
  • How To Edit Contact Form 7
  • How to add Creative Buttons
  • Animated Headline Elementor Page Builder
  • Elementor Accordion Widget
  • Elementor Call To Action Widget Tutorial
  • How To Create and Customize Progressbar In Elementor
  • Blog Element Customization
  • Adding Team Members in Elementor Page Builder
  • Customize Dual Heading In Elementor Page Builder

Extensions

  • Which Element
  • Post & Page Duplicator
  • Grid Line
  • Elementor Glassmorphism Effects Extension
  • Tooltip Extension for Elementor by Master Addons
  • Wrapper Link
  • Floating Effects
  • Dynamic Tags
  • Elementor Display Conditions For Browser, User, Time, Many More
  • Entrance Animation
  • Header, Footer, & Comment Builder
  • Custom Elementor Breakpoints Setup & Configuration
  • Animated Gradient Background Extension
  • Reveal Extension
  • Particles Extension
  • Background Slider Extension
  • Transforms Extension
  • Rellax Extension
  • Positioning Extension
  • How to set Rellax Extension in any Element?
  • Custom CSS Extension

Widget Builder

  • Tabs
  • Repeater
  • Visual Choice
  • Background
  • Dimensions
  • Box Shadow
  • Slider
  • Icons
  • Gallery
  • Media
  • Popover Toggle
  • URL
  • Date Time
  • Typography
  • Font
  • Color
  • Choose
  • Select
  • Switcher
  • Hidden
  • Code
  • WYSIWYG
  • Text Area
  • Number
  • Text

Theme Builder

  • Comment Form
  • 404
  • Search
  • Archive
  • Single
  • Footer
  • Header

Popup Builder

  • After Inactivty
  • Exit Intent Trigger
  • On Page Load Trigger
  • Popup Settings & Options

Template Kit

  • Access and Import Pre-built Template Kits
  • Import Elementor Template Kits
View Categories
  • Home
  • Docs
  • Widget Builder
  • Dimensions

Dimensions

Roy
Updated on December 18, 2025

3 min read

The Dimensions option adds a sophisticated spacing control to your custom widget, allowing users to set values for multiple sides of an element (Top, Right, Bottom, Left) simultaneously. It is primarily used for CSS properties like margin, padding, and border width.

Why would someone use it in a custom widget? #

Use this control whenever you need to manage the spacing or size around or within an element in a structured way. It provides a professional, unified interface – similar to native Elementor widgets – for setting properties like padding and margin, saving you from creating four separate Number controls.

Where This Option Appears #

  • In Widget Builder: You add this control in the Content tab.
  • In the Elementor Editor: Once saved, it appears as the familiar “Dimensions” box with four linked input fields (for Top, Right, Bottom, Left) and a “link” icon to toggle between setting values collectively or individually.

Available Settings #

Here are the configurable settings for the Dimensions control:

Basic Settings #

  • Label: The name of the control (e.g., “Padding”, “Margin”, “Border Width”).
  • Name: The unique machine-readable ID (like wrapper_padding) for the dynamic shortcode.
  • Description: Optional guiding text.
  • Allowed Dimensions: Lets you select which sides (Top, Right, Bottom, Left) are available for the user to edit. You can show all four or just specific ones.
  • Property Type: An advanced feature. You can leave it as Custom or select a specific CSS property (like margin or padding). This may help the builder automatically apply the values to the correct CSS rule.
  • Size Units: A checkbox list to define which CSS units (PX, %, EM, REM, VH, VW) are available for the user to choose from for each value.
  • Default Value: Pre-defined values for each of the four sides (Top, Right, Bottom, Left).

Advanced Settings #

  • Show Label, Label Block, Responsive Control: Standard options. Responsive Control is essential here, allowing different spacing on different devices.
  • Dynamic Support: Allows the dimension values to be populated from a dynamic source.
  • Frontend Available: When enabled, the dimension values are passed to your widget’s JavaScript.
  • Separator, Conditions, Control Classes, Selector: Standard advanced options. The Selector is particularly important here to define which CSS element the dimensions should target.

Generated Shortcode #

When you add a Dimensions control with the Name content_padding, Widget Builder generates a shortcode: {{content_padding}}.

  • What it represents: This shortcode outputs a structured set of values, likely in a shorthand CSS format (e.g., 10px 20px 10px 20px) or as an object containing each side’s value and unit.
  • Where to use it: Primarily in the CSS Panel, as the value for a spacing-related property.
    • CSS Panel: .widget-content { padding: {{content_padding}}; }
    • The builder’s logic will translate the user’s input (like 10px, 5%, etc. for each side) into a valid CSS string for the property.

How to Use It: A Practical Example #

Let’s create a “Content Box” widget with fully customizable internal padding.

  1. In Widget Builder’s Content tab, add a Dimensions control.
  2. Set the Label to Box Padding.
  3. In Size Units, enable PX and % to give users common choices.
  4. In your CSS panel, apply it to the main container:

    .custom-content-box {
    padding: {{box_padding}};
    background-color: #f5f5f5;
    }
  5. In the Elementor editor, users will see a dimension box. They can:
    • Click the “link” icon to set all four sides to the same value (e.g., 20px).
    • Unlink it and set each side independently (e.g., Top: 30px, Right: 20px, Bottom: 30px, Left: 20px).
    • Choose different units for different sides (e.g., Top: 2%, Right: 20px).

Common Use Cases #

  • Padding & Margin Management: The most frequent use for controlling internal and external spacing.
  • Border Width: Setting the width for all sides of a border.
  • Element Positioning: Using in conjunction with position: absolute for top, right, bottom, left values (if the Property Type supports it).
  • Responsive Spacing: Creating complex, device-specific layouts by enabling Responsive Control.

Helpful Tips #

  • Choose “Allowed Dimensions” Wisely: If your widget only needs vertical (Top/Bottom) padding, you can disable Right and Left for a cleaner interface.
  • Link by Default: For most use cases, having the sides linked by default is user-friendly. It lets users set a uniform value quickly and unlink only when needed.
  • Use with the Correct Property: If you set the Property Type to a specific CSS property like padding, ensure your CSS rule uses the same property. For custom use, you might need to map values manually (e.g., top: {{spacing.TOP}};).
  • Test Unit Combinations: Ensure your widget’s CSS can handle mixed units (like px and % together) if you allow multiple units, as this can sometimes break layouts.

The Dimensions control is a fundamental tool for creating flexible, professionally-styled widgets that give users precise control over layout and spacing, mirroring the power of core Elementor design features.

What are your Feelings

Share This Article :

  • Facebook
  • X
  • LinkedIn
  • Pinterest
Still stuck? How can we help?

How can we help?

Updated on December 18, 2025
BackgroundBox Shadow
Table of Contents
  • Why would someone use it in a custom widget?
  • Where This Option Appears
  • Available Settings
    • Basic Settings
    • Advanced Settings
  • Generated Shortcode
  • How to Use It: A Practical Example
  • Common Use Cases
  • Helpful Tips

Join 40,000+ Web Creators Who Trust Master Addons

Get all the premium widgets and templates you desire, built with clean code that keeps your site fast. Ditch the bloat, not the features.

Try Live Demo
Join The Community
Master Addons for Elementor
Master Addons Logo

110+ Premium Widgets & Lifetime Updates – Build Beyond Limits. An Exclusive Creation by Pixar Labs

Facebook-f Twitter Youtube Wordpress
Features
  • Template kits
  • Template Library
  • Widget Builder
  • Theme Builder
  • Mega Menu Builder
  • Template kits
  • Template Library
  • Widget Builder
  • Theme Builder
  • Mega Menu Builder
Support
  • Support Forum
  • Contact US
  • Join Community
  • Blog
  • Support Forum
  • Contact US
  • Join Community
  • Blog
Resources
  • Apply For Affiliate
  • Documentation
  • Video Tutorials
  • My Account
  • Change Log
  • Apply For Affiliate
  • Documentation
  • Video Tutorials
  • My Account
  • Change Log
Navigate
  • Terms of Use
  • Refund Policy
  • Privacy Policy
  • Terms of Use
  • Refund Policy
  • Privacy Policy