> For the complete documentation index, see [llms.txt](https://docs.anedot.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.anedot.com/action-pages/advanced-features/troubleshoot-iframes.md).

# Troubleshoot IFrames

Fix an embedded Action Page that isn't displaying correctly by testing its iFrame embed code on a blank HTML page and adjusting the iFrame height and width.

If an embedded Action Page isn't displaying correctly on your website, test the **iFrame embed code** on a blank HTML page. This helps you tell whether the issue comes from the embed code or from your website. This article covers how to test the embed code and how to adjust the iFrame's size and scrolling.

## Before You Begin

Copy your page's embed code. In the Page Builder, click **Share**, then click **Embed on your Site**. See [Share An Action Page](https://docs.anedot.com/action-pages/action-page-basics/share-an-action-page.md).

## Test Your Embed Code

To test your embed code:

1. Copy the HTML template below.
2. Paste your embed code between the comment markers.
3. Save the file with a .html extension.
4. Open the file in your web browser.

```html
<!DOCTYPE html>
<html lang="en-US">
<head>
  <title>Anedot iFrame demo</title>
</head>
<body>
  <main>
    <div>
      <!-- iFrame Embed code -->
      <!-- Paste embed code between these comments -->
    </div>
    <footer>&copy; Anedot</footer>
  </main>
</body>
</html>
```

If the page displays correctly in the test file, the issue is likely with your website's code or settings. Contact your website platform's support team for help.

## Adjust IFrame Size and Scrolling

To remove unwanted scrolling, set specific height and width values on your iFrame.

```html
<iframe src="YOUR_URL_HERE" width="100%" height="800" style="border:none;"></iframe>
```

* Increase the height if content is cut off.
* Use `width="100%"` so the page fits the width of its container.
* Test your changes on both desktop and mobile devices.

## Related Articles

* [Share An Action Page](https://docs.anedot.com/action-pages/action-page-basics/share-an-action-page.md)
* [Page Settings: SEO, Sharing, and Tracking](https://docs.anedot.com/action-pages/page-builder/page-settings-seo-sharing-and-tracking.md#custom-css)
* [Advanced Features](https://docs.anedot.com/action-pages/advanced-features.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.anedot.com/action-pages/advanced-features/troubleshoot-iframes.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
