• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.3 iFrame not responsive/cutting off content

Brogan

XenForo moderator
Staff member
#2
Assign a class to the iframe and then use standard media queries to change the width.
For example:
Code:
<style type="text/css">
.MyIframe {
width: 800px;
}

<xen:if is="@enableResponsive">
    @media (max-width:910px) {
        .MyIframe {
        width: 600px;
        }
    }
</xen:if>
</style>
 
#3
Assign a class to the iframe and then use standard media queries to change the width.
For example:
Code:
<style type="text/css">
.MyIframe {
width: 800px;
}

<xen:if is="@enableResponsive">
    @media (max-width:910px) {
        .MyIframe {
        width: 600px;
        }
    }
</xen:if>
</style>
What exactly do you mean? Sorry, I've never dealt with classes.