Skip to content
Help Center
  • Pricing
  • ProductsExpand
    • Premium PlansGet all the tools you need in one plan
    • Kadence ThemeLightning-fast performance theme for modern websites
    • Kadence BlocksDrop in ready designs with advanced controls for pixel perfect websites
    • Kadence Shop KitCreate a more effective WooCommerce shopping experience
    • Kadence ConversionsBoost sales and build engaged audiences with popups and banners
    • Kadence InsightsEasily create A/B tests. Optimize your pages to drive higher conversions.
    • View All Products
    • Get Kadence + Hosting
      In One Place

      Enjoy faster setup, top-tier performance, and worry-free WordPress hosting – Kadence Theme, Kadence Blocks, and Solid Security all pre-installed.

      Learn More

  • Kadence AI
  • Starter Templates
  • Blog
  • SupportExpand
    • Resource HubStart here for guides, Product docs, FAQs, and Troubleshooting tips, all in one place.
    • Contact SupportStuck on something? We’re here to help! Open a ticket for top-notch support.
    • Contact Our TeamGot pre-sales questions or need help choosing a plan? Open a ticket and our team will guide you.
    • About usCrafted with love in Missoula, Montana. Meet the team behind the mission.
Account Account
Get Kadence
Kadence Blocks
  • Features
  • Pro
  • Blocks
  • HelpExpand
    • Documentation
    • Submit a Ticket
    • Facebook Group
    • Feature Requests
    • Roadmap
    • Changelog
Help Center
Kadence Blocks

Kadence Blocks

  • Row Layout Block
  • Text (Adv) Block
  • Buttons (Adv) Block
  • Image (Adv) Block
  • Gallery (Adv) Block
  • Section Block
  • Testimonial Block
  • Table of Contents Block
  • Form (Adv) Block
  • Table (Adv) Block
  • Accordion Block
  • Tabs Block
  • Info Box Block
  • Google Maps Block
  • Show More Block
  • Icon Block
  • Icon List Block
  • Progress Bar Block
  • Posts Block
  • Count Up Block
  • Countdown Block
  • Vector Graphic Block
  • Lottie Animations Block
  • Repeater Block
  • Spacer/Divider Block
  • The Kadence Header (Adv) Block
  • The Kadence Navigation (Adv) Block
  • The Kadence Navigation Link Block
  • Search (Adv) Block
  • Site Identity Block
  • Kadence Blocks Default Icon Selections

Getting Started

  • Installing Kadence Blocks
  • Getting Started with Kadence Performance
  • Setting custom widths in multi-column Row Layout Blocks
  • How to define a color Palette with Kadence Blocks
  • How to delete/remove a Block
  • How to Duplicate and Copy/Paste Block Styles
  • Setting Block Defaults
  • Kadence Blocks Pexels Integration

Block Tutorials

  • How to Import and Export Blocks or Sections Between Websites
  • How to Use Flexbox Layouts with Section Blocks
  • How to Make a Top Section Sticky with Kadence Blocks
  • Using Padding and Margin in Kadence Blocks
  • Responsive Breakpoints in Kadence
  • Using GIFS and Lottie Animations with Kadence Blocks
  • Adding a Full-width Row
  • How to hide Kadence blocks via WordPress Gutenberg Preferences
  • How To Add Animate on Scroll Effects To Your Page
  • How to add Custom CSS Classes and HTML IDs to Kadence Blocks
  • How to Show Events Using the Kadence Post Grid/Carousel Block
  • How to use Popup Modal Filters with Advanced Query Loops
  • Create a Full Screen Landing Page
  • Displaying Shortcodes in the WordPress Editor
  • Advanced Navigation Sub Menus and Mega Menus
  • Creating Sticky and Transparent Advanced Headers
  • Getting started with Advanced Header/Navigations
  • Building Headers and Footers in Full Site Editing with Kadence Blocks
  • Applying Block-Level Custom CSS in Kadence Blocks
  • How to Access the Kadence Design Library
  • Adding Video Backgrounds to Row Layout
  • Pexels Picker
  • Adding Classic Wireframes, Starter Packs, and Sections to the New Design Library
  • How to customize the design library color palette
  • Adding Privacy Policy link to Kadence Form
  • Set Equal Column Heights with the Row Layout Block
  • How to Control the Hero or Title Section Sitewide and Per Page in Kadence
  • How to Change the Query Loop (Adv) “All” Button Text

Kadence Blocks Pro

  • Kadence Blocks Pro Plugin
  • Product Carousel Block
  • User Info Block
  • Portfolio Grid/Carousel Block
  • Query Loop (Adv) Block
  • Post Grid/Carousel Block
  • The Kadence Block Controls
  • Dynamic Content
  • Display Blocks Conditionally (Conditional Display)
  • Advanced Slider
  • Video Popup Block
  • Image Overlay Block
  • Split Content Block
  • Modal Block
  • Using a Dynamic List Block
  • Dynamic Content: Custom Input and Showing Fields from all Post Types
  • Dynamic HTML Block
  • Using Custom SVG Icons with Kadence Blocks Pro
  • Kadence Custom Fonts

Troubleshooting Blocks

  • Troubleshooting the “Error, Unable to access library database, please try re-syncing” error on the Kadence Blocks Design Library
  • Troubleshooting Query Loop (Adv) Blocks, Filters, and Search issues
  • Kadence Blocks Errors when SCRIPT_DEBUG is Enabled
  • Troubleshooting White/Blank Screens in the Editor or Customizer
  • How to Force Reindex Advanced Queries
  • How to Download Previous Versions of the Kadence Theme and Plugins
  • Resolving Autoplay Problems in Advanced Slider/Gallery Blocks
  • Recommended Server Resources
  • Troubleshooting Kadence Form (Adv) Email Delivery
  • How to Recover a Broken Block

Advanced

  • How to Modify SVG Dividers in Kadence Row Layout Blocks
  • How to Override the Kadence Forms Email Template
  • How To Set Your Own Conditions for Successful Form (Adv) Submissions
  • How to Block Form (Adv) Spam Using WordPress Disallowed Comment Keys
  • Custom Queries for the Portfolio Grid/Carousel Block (Filter)
  • Customizing the Kadence Blocks Pro Post Grid/Carousel block’s Query to show multiple post types
  • Custom Queries for the Posts Block (Filter)
  • How to Set a Gradient Border for the Section block
  • Run JavaScript when Query Loop (Adv) Updates
  • Custom Upload Directory in Kadence Form (Adv) Block
  • Populate Select, Checkbox, and Radio field option values programmatically in Form (Adv)
  • Query Loop (Adv) Block: Split Character Filter
  • How to add Multiple Markers in the Kadence Google Maps Block
  • Custom Queries for the Post Grid/Carousel Block (Filter)
  • How to Run JavaScript After a Kadence Form is Successfully Submitted (On Event)
  • Dynamically Displaying ACF or Metabox Relationships in Query Loop (Adv) blocks
  • How to Customize the Kadence Blocks Variable Font Sizes (SM, MD, LG, XL, 2XL, and 3XL)
  • Using Tooltips with Kadence Blocks
  • Custom Queries for the Advanced Query Loop Block (Filter)
  • Adding a Custom Font to Kadence Blocks

Advanced Headers

  • How to use Advanced Headers Globally and Conditionally in Kadence
  • The Kadence Header (Adv) Block
  • Using Advanced Header / Navigation Blocks vs Kadence Theme Header Builder
  • Advanced Header Best Practices
  • Getting the most out of Navigation Link Blocks
  • Creating Sticky and Transparent Advanced Headers
  • Advanced Navigation Sub Menus and Mega Menus
  • The Kadence Navigation Builder
  • The Kadence Visual Builder & Off Canvas Settings
  • Importing & Exporting Advanced Headers & Navigations

Kadence Form Integrations

  • How to Modify the Form (Adv) Submit Actions using a Filter
  • How to integrate hCaptcha with Kadence Form (Adv) Blocks
  • How to Integrate Kadence Forms with Cloudflare Turnstile
  • How to Integrate Google reCAPTCHA with Kadence Forms
  • How to Integrate Google Analytics with Kadence Forms
  • Integrating Kadence Forms with FluentCRM
  • Integrating Kadence Forms with Kit (ConvertKit)
  • Kadence Forms and Database Entries
  • Kadence Forms and Auto Respond Emails
  • Integrating Kadence Forms with Webhooks
  • Integrating Kadence Forms with Mailchimp
  • Integrating Kadence Forms with Brevo
  • Integrating Kadence Forms with ActiveCampaign
  • Integrating Kadence Forms with Mailerlite
  • Home
  • Knowledge Base
  • Kadence Blocks
  • Kadence Blocks
  • Block Tutorials

Using Padding and Margin in Kadence Blocks

When refining your website’s layout and design, padding and margin are two fundamental tools you’ll often work with. When using Kadence Blocks, you’ll often see options to adjust padding and margin values. Padding and margin are universal in web development and are always in use as you navigate various types of websites.

This guide will walk you through what these settings do, how they’re different, and where you can find and adjust them throughout the Kadence Blocks ecosystem.

Table of Contents
  • What is Margin & Padding?
    • Adding Margin & Padding to Kadence Blocks
    • Global Paddings in Blocks
      • Advanced Text Background Padding
      • Using Block Defaults to Bypass Global Padding.
    • Using Negative Margins in Blocks
    • Responsive Spacing

What is Margin & Padding?

Margin is the space outside of an element. Think of it as the distance between one block and the next. Adding a margin pushes the entire element away from other elements surrounding it.

For example, adding a bottom margin to a Row Layout block creates extra space beneath it, pushing the next block further down the page.

Margin Example

Padding is the space inside an element, between the content and the border of the block or container it’s in. For example, if you have a Section block with a background color applied, the inner content may need spacing away from the edge. This is where padding can come in handy.

Padding

Commonly, Kadence Block settings include options for both padding and margin. These two tools often work hand-in-hand and can sometimes feel interchangeable, but they each serve a unique purpose depending on what you’re trying to achieve.

For example, if you’re adding space inside a block (like around the content), you’d use padding. If you’re creating space outside a block (like between two elements), you’d use margin. In most cases, you can experiment with both to get your layout just right for the use case. But for specific tasks, like creating space around a background color or image, padding is the standard choice.

Want to dive deeper? Check out the resources below for a full breakdown of how padding and margin work.

  • CSS Padding
  • CSS Margin

Adding Margin & Padding to Kadence Blocks

When using Kadence Blocks, you’ll often find padding and margin settings in the Advanced section of the block settings panel. These controls let you apply spacing to the entire block you’ve selected.

Advanced Block Settings

Global Paddings in Blocks

When you add a background to blocks, such as a Section Block or a Row Layout Block, Kadence automatically applies Global Left and Right Padding. This ensures that the content inside the Block remains visible and doesn’t sit directly on the edge.

For example, if you place text inside a Row Layout Block without a background, it will align directly with the block edge. Once a background is added, the Global Padding is applied to create spacing on the left and right.

Note: Global Padding is only applied if those padding values have not already been set before the background is added.

Adding Global Padding

Where Does Global Padding Come From?
The Global Padding values are defined in your Kadence Theme settings, in the Customizer -> General -> Layout settings under the Content Left/Right Edge Spacing setting.

Content Left:Right Spacing

Managing Global Padding.
If you use the reset option (back-facing arrow) and the Block has a background applied, the Global Left/Right Padding will automatically be reapplied. When editing padding in the Block, the Left and Right fields display “Global.” You can override this by manually setting the padding value.

Managing Global Padding

Advanced Text Background Padding

Advanced Text Blocks do not use the same Global Left/Right Padding system as Row Layout Blocks. However, when you apply a background color to an Advanced Text Block, Kadence automatically adds default padding:

  • Top: 1.25 em
  • Bottom: 2.375 em

This ensures that the text does not sit directly on the edge of the background, keeping the content readable and visually balanced.

Using Block Defaults to Bypass Global Padding.

If you prefer to remove Global Padding from all new Blocks, you can:

  1. Set the Left and Right padding values to None.
    (For Advanced Text Blocks, also set the top and bottom values to none)
  2. Save the block as a Block Default.

This ensures that future Row Layout Blocks will ignore the Global Padding functionality by default.

Setting Padding to None
Saving Block Defaults

Using Negative Margins in Blocks

Negative margin values let you pull blocks outside of their default spacing, allowing for creative, layered designs. However, be cautious when using negative values, as they can affect layout consistency across different devices.

For example, let’s say you have two Row Layout blocks stacked one after the other. If you want one of them to slightly sit on top of the other (for a stylish, layered look), you can give that block a negative top margin. This pulls it up and makes it look like it’s breaking out of the normal layout. (See the GIF below.)

Negative Margin

Responsive Spacing

When adjusting spacing values, it’s important to set them responsively. A 100px padding might make sense on a desktop view. However, that may result in extra unwanted padding on mobile views. Instead, use the Kadence Responsive Controls to set different padding and margin values for each device type.

The Responsive Controls can be found near block setting labels. They are represented by a desktop, tablet, and mobile icon.

Responsive Settings

Example:
In this example, notice the hero Row Layout block has a large top and bottom padding. The GIF demonstrates how you can use the responsive controls to lower the padding values for each device type. This also works the same for margin values and various other block settings.
(This same theory would apply to left and right spacing values as well.)

Responsive Block Padding
Do you feel this document was helpful?
Responsive Breakpoints in Kadence
The Kadence WP Logo
Crafted in Missoula, Montana
  • Follow Kadence on Facebook
  • Follow Kadence on Youtube
  • X
  • Follow Kadence on Instagram
Trustpilot
Products
  • Kadence Plans
  • Kadence Theme
  • Kadence Blocks
  • Kadence AI
  • Kadence Starter Templates
  • Kadence Shop Kit
  • Kadence Conversions
  • Kadence Pattern Hub
  • View All
Resources
  • Blog
  • Podcast
  • Knowledgebase
  • Support ticket
  • Feature Requests
  • FAQ
  • WordPress Hosting Services
About Us
  • About Kadence
  • Become an affiliate
  • Contact us
  • Terms
  • Privacy Policy
  • Security
Our Partner Brands
  • SolidWP
  • LearnDash
  • The Events Calendar
  • GiveWP
  • MemberDash
Kadence Community
  • Kadence Marketplace
  • Join the Facebook Group
  • Subscribe to our YouTube Channel
© 2024 Kadence WP | All prices are in USD
Logo for StellarWP an umbrella brand of Premium WordPress plugins
  • Pricing
  • Products
    • Premium PlansGet all the tools you need in one plan
    • Kadence ThemeLightning-fast performance theme for modern websites
    • Kadence BlocksDrop in ready designs with advanced controls for pixel perfect websites
    • Kadence Shop KitCreate a more effective WooCommerce shopping experience
    • Kadence ConversionsBoost sales and build engaged audiences with popups and banners
    • Kadence InsightsEasily create A/B tests. Optimize your pages to drive higher conversions.
    • View All Products
    • Get Kadence + Hosting
      In One Place

      Enjoy faster setup, top-tier performance, and worry-free WordPress hosting – Kadence Theme, Kadence Blocks, and Solid Security all pre-installed.

      Learn More

  • Kadence AI
  • Starter Templates
  • Blog
  • Support
    • Resource HubStart here for guides, Product docs, FAQs, and Troubleshooting tips, all in one place.
    • Contact SupportStuck on something? We’re here to help! Open a ticket for top-notch support.
    • Contact Our TeamGot pre-sales questions or need help choosing a plan? Open a ticket and our team will guide you.
    • About usCrafted with love in Missoula, Montana. Meet the team behind the mission.
Account Login
  • Features
  • Pro
  • Blocks
  • HelpExpand
    • Documentation
    • Submit a Ticket
    • Facebook Group
    • Feature Requests
    • Roadmap
    • Changelog