Skip to content

Instantly share code, notes, and snippets.

@ChrisCree
Created December 31, 2013 23:05
Show Gist options
  • Save ChrisCree/8203161 to your computer and use it in GitHub Desktop.
Save ChrisCree/8203161 to your computer and use it in GitHub Desktop.
To keep iframes or other embedded objects on your site from spilling out of their parent containers when viewed on smaller screens add this to your default CSS in your style sheet. Easy peasy. :)
iframe,
object,
embed {
max-width: 100%;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment