The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

How Does CodePen Shrink Iframes according to window size?

  • Anonymous
    # January 20, 2013 at 3:59 pm

    At []( “codepen”) the thumbnails of the different projects shrink and reposition themselves according to the window size. If you shrink your browser window the thumbnails automatically shrink and readjust themselves. How can i do that?

    # January 20, 2013 at 4:04 pm


    # January 20, 2013 at 4:37 pm

    Huh. I actually knew that. Just thought it was more complex

    # January 20, 2013 at 5:33 pm

    It uses a wrapper that’s set in a percentage along with the iframe itself.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed