-
-
Save publitas-services/b36876dc5d06582cedb427dfa727e231 to your computer and use it in GitHub Desktop.
Publication Embed as IFRAME
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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