Skip to content

Codepens should be embedded responsively (easier said than done) #73

Open

Description

@mvujovic

The content inside a Codepen can be responsive, but it won't affect the layout of the embedding page. Instead the responsive Codepen content will be clipped. (See the Filters Codepen.)

Unfortunately, there isn't a simple solution here. You have to implement some JavaScript to communicate the iframe's content height back to the embedding page and update it on resize.

It looks like some people have tackled this already:
http://npr.github.io/responsiveiframe/

Maybe Codepen has tackled this somehow (though probably wishful thinking).

We should find the right general solution for all of our Codepens and use it.

Activity

  1. mvujovic commented on Sep 8, 2014

    @mvujovic
    MemberAuthor
  2. modified the milestone: on Sep 11, 2014
  3. modified the milestone: MAX Release on Sep 23, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions