Skip to content

Instantly share code, notes, and snippets.

@publitas-services
Created February 22, 2021 11:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save publitas-services/b36876dc5d06582cedb427dfa727e231 to your computer and use it in GitHub Desktop.
Save publitas-services/b36876dc5d06582cedb427dfa727e231 to your computer and use it in GitHub Desktop.
Publication Embed as IFRAME
<div class="publitas-container">
<iframe style="display: block; box-sizing: border-box;" src="https://view.publitas.com/PUBLICATION-URL-GOES-HERE?publitas_embed=maximized" frameborder="0" allowfullscreen="allowfullscreen"></iframe>
</div>
<style>
.publitas-container {
position: relative;
width: 100%;
height: 0;
padding-top: 130%;
}
@media (min-width: 767px) {
.publitas-container {
padding-top: 66%;
}
}
.publitas-container iframe {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
width: 100%;
height: 100%
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment