Hello,
with the embedded Calendly version and data-resize=”true”, it’s now possible to set the correct height automatically. Thank you very much for it.
Unfortunately, there is still a huge invisible padding/margin around the calendar inside the iFrame. How it is possible to remove it?
I used the negative padding hack here on my website: https://www.shop-studio.io/en/contact. The solution is “ok” but not responsive in every case (see mobile). As you can see, the loading spinner is performing a “layout shift” during loading.
Thank you in advance!
Hi there!
Thank you for reaching out, and I’m glad to hear that the data-resize="true"
feature is working for your use case! I understand the frustration of dealing with unwanted internal padding/margin around the embedded Calendly widget, especially when it's affecting your layout and causing issues on mobile.
Here’s a breakdown of the current limitations and what you can do:
What’s Happening
Calendly embeds are rendered within a secure iframe, which means you can’t directly manipulate the internal content (like padding or margin) with your site's CSS. Unfortunately, the internal spacing is controlled by Calendly, and there’s no official way to completely remove the internal margin or padding from within the iframe.
What You Can Do
-
Use
data-resize="true"
for height adjustments: This is the best way to handle dynamic height adjustments for different screen sizes, but it won’t eliminate the internal padding. -
Zero out outer container styling: For best results, apply
margin: 0
andpadding: 0
to the wrapper element that contains the Calendly iframe. For example:.calendly-inline-widget { margin: 0 !important; padding: 0 !important; box-sizing: border-box; }
-
Avoid negative margin/padding hacks: While this may work as a quick fix, it’s not ideal for responsiveness, especially on mobile. Negative values can break the layout and cause shifting issues. If you absolutely need to apply a negative margin, consider using media queries to target specific screen sizes and test thoroughly across devices.
-
Use media queries for mobile responsiveness: This can help adjust the layout and fix issues on smaller screens. Here’s a basic example:
@media (max-width: 768px) { .calendly-inline-widget { margin: 0; padding: 0; } }
-
Test with different embed types: If the mobile experience is critical, consider switching to the popup widget for better handling of internal whitespace.
Currently, there is no official or permanent fix for completely removing internal padding or margin from the Calendly embed iframe. This behavior is a part of Calendly's design and security model. The best approach is to fine-tune your external layout and use media queries to ensure the layout is responsive.
If you continue to face issues, feel free to share specific examples (such as screenshots or a URL) with Calendly Support at support@calendly.com, as feature requests for improved control over the iframe layout are always welcome.
Hope this helps, and let me know if you need further assistance!
Hello,
thank you for the info!
What would be great: Introducing a new query param to remove all internal padding or margin. I’m a developer my self and this shouldn’t be too hard to solve :)
Kind regards
Alexander
Reply
Sign up
Already have an account? Login
Not a Calendly user yet? Head on over to Calendly.com to get started before logging into the community.
Employee Login Customer LoginLogin to the community
Not a Calendly user yet? Head on over to Calendly.com to get started before logging into the community.
Employee Login Customer LoginEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.