Advertisement
Guest User

Untitled

a guest
Sep 26th, 2016
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. /* Responsive iFrame */
  2.  
  3. .responsive-iframe-container {
  4. position: relative;
  5. padding-bottom: 56.25%;
  6. padding-top: 30px;
  7. height: 0;
  8. overflow: hidden;
  9. }
  10.  
  11. .responsive-iframe-container iframe,
  12. .vresponsive-iframe-container object,
  13. .vresponsive-iframe-container embed {
  14. position: absolute;
  15. top: 0;
  16. left: 0;
  17. width: 100%;
  18. height: 100%;
  19. }
  20.  
  21. /*And then wrap your Google Map or Google Calendar iframe in a div like this:*/
  22. /*<div class="responsive-iframe-container">
  23. <... iframe code >
  24. </div>*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement