How to fit Ifrme in mobile browser?

Total Post:18


 2186  View(s)
Rate this:

I want to open that page in mobile browser that Iframe will fit that mobile browser

How can i do this one?

protected void Page_Load(object sender, EventArgs e)
               String URL =;
              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>
  1. Re: How to fit Ifrme in mobile browser?


    Can you describe your "auto-height" class here.
    You can use responsive layout to fit your screen to any browser whether it is mobile, tablet or desktop.



Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.