# Iframe not utilizing percentages

**URL:** <https://community.hubspot.com/t/iframe-not-utilizing-percentages/17603>\
**Category:** APIs & Integrations\
**Tags:** developer-tools\
**Created:** [December 7, 2019, 1:39am UTC](https://community.hubspot.com/t/iframe-not-utilizing-percentages/17603 "2019-12-07T01:39:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rmcgeher](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/rmcgeher/32/93181_2.png) [@rmcgeher](https://community.hubspot.com/u/rmcgeher)\
**Post date:** [December 7, 2019, 1:39am UTC](https://community.hubspot.com/t/iframe-not-utilizing-percentages/17603/1 "2019-12-07T01:39:20Z")

</div>

I am trying to iframe a booking agent to my hubspot page.

This is the code I am supposed to use:

`<iframe src="https://hotels.cloudbeds.com/reservation/CHANGED_TO_ANONOMIZE" width="100%" scrolling=“yes" class="iframe-class" frameborder="0" id="cloudbeds">`

but when I place in that a page, this is what HUBSPOT changes it to when I review code:

`<iframe id="cloudbeds" class="iframe-class" style="margin: 0px auto; display: block;" xml="lang" src="https://hotels.cloudbeds.com/reservation/CHANGED_TO_ANONOMIZE" width="560" height="315" frameborder="0" scrolling="“yes"></iframe>`

How can I get it to use a percentage instead of PX?

I’m new to hubspot - thanks for any help.

---

<div class="post-metadata">

**Author:** ![WendyGoh](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/wendygoh/32/42320_2.png) [@WendyGoh](https://community.hubspot.com/u/WendyGoh)\
**Post date:** [December 9, 2019, 1:13am UTC](https://community.hubspot.com/t/iframe-not-utilizing-percentages/17603/2 "2019-12-09T01:13:27Z")

</div>

Hi @rmcgeher,

When looking to embed the following code:

`<iframe src="https://hotels.cloudbeds.com/reservation/CHANGED_TO_ANONOMIZE" width="100%" scrolling=“yes" class="iframe-class" frameborder="0" id="cloudbeds">`

onto a HubSpot page and retaining the percentage instead of using PX, I’d suggest for you to create a module instead of placing it in the source code of a rich text module.

You can follow through this documentation on how to create custom module and adding the module onto your template: [Create and edit modules](https://knowledge.hubspot.com/cos-general/create-and-edit-modules).

If you’re not planning to use this module across all pages that are using this template, you can either:

1. Clone the template: [Clone a blog, email, or page template](https://knowledge.hubspot.com/cos-general/how-do-i-clone-my-blog-email-page-template).

OR

2. Use a flexible column: [Use flexible columns in your pages](https://knowledge.hubspot.com/cos-pages-editor/how-to-use-flexible-columns-in-your-pages).

---

<div class="post-metadata">

**Author:** ![rmcgeher](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/rmcgeher/32/93181_2.png) [@rmcgeher](https://community.hubspot.com/u/rmcgeher)\
**Post date:** [December 9, 2019, 6:21pm UTC](https://community.hubspot.com/t/iframe-not-utilizing-percentages/17603/3 "2019-12-09T18:21:02Z")

</div>

Thank you. I will try that.
