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

XF 1.2 Responsive iframe?

Discussion in 'Styling and Customization Questions' started by CyclingTribe, Sep 5, 2013.

  1. CyclingTribe

    CyclingTribe Well-Known Member

    I have Cometchat installed at CycleChat and use an XF page to display the chatroom in an iframe; handy for iPhone and iPad users.

    When I upgraded to XF 1.2.1 the chatroom page wasn't working responsively so I disabled the page, temporarily, until I could look at what was going on.

    Can you make iframes responsive, and if so how?

    Shaun :D

    This is the template HTML (the max-width was previously just width=700px - but unfortunately the max-width squishes the window up to a narrow width, strangely, making it unusable):

    <iframe src="/chat/modules/chatrooms/index.php?id=1" height="350" frameborder="1" style="max-width: 900px;" ></iframe>
    Maria Powel likes this.
  2. Brogan

    Brogan XenForo Moderator Staff Member

    I posted a solution to this not long ago.

    I'll see if I can find the post.
    Maria Powel likes this.
  3. Brogan

    Brogan XenForo Moderator Staff Member

  4. CyclingTribe

    CyclingTribe Well-Known Member

    Nice one - thanks - I'll have a play around with that later. (y)

Share This Page