---
title: "How to fit Ifrme in mobile browser?"  
description: "How to fit Ifrme in mobile browser?"  
author: "anil babu"  
published: 2013-10-28  
updated: 2013-10-31  
canonical: https://www.mindstick.com/forum/1712/how-to-fit-ifrme-in-mobile-browser  
category: "asp.net"  
tags: ["asp.net"]  
reading_time: 1 minute  

---

# How to fit Ifrme in mobile browser?

I want to open that [page](https://www.mindstick.com/articles/13031/why-to-make-a-wikipedia-page) in [mobile browser](https://www.mindstick.com/news/2411/google-apple-to-undergo-thorough-cma-investigation-for-dominance-of-mobile-browsers) that Iframe will fit that mobile browser

## How can i do this one?

```
protected void Page_Load(object sender, EventArgs e)
        {
               String URL = http://www.aspforums.net/;


              if (!String.IsNullOrEmpty(URL))
                    {

                        I1.Attributes["src"] = URL;
                    }
}
<body >
    <form id="form1" runat="server">
    <div class="auto-height">
            <iframe id="I1" runat="server" name="I1" class="auto-height" frameborder="0">your browser does not support IFRAMEs</iframe>
    </div>
    </form>
</body>
```

## Replies

### Reply by Chris Anderson

Hi,\
\
Can you describe your "auto-height" class here.\
You can use responsive layout to fit your screen to any [browser](https://www.mindstick.com/blog/155254/which-is-the-best-internet-browser) whether it is [mobile](https://www.mindstick.com/articles/310668/reasons-why-you-should-choose-custom-mobile-app-development-for-your-business), tablet or desktop.\
\
Thanks.


---

Original Source: https://www.mindstick.com/forum/1712/how-to-fit-ifrme-in-mobile-browser

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
