Guest User

Untitled

a guest
Apr 13th, 2016
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 0.52 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <style type="text/css">
  5. .dashboard {
  6.    position: relative;
  7.    padding-bottom: 75%;  //75% is the result of height=600/width=800 ratio
  8.    overflow: hidden;
  9. }
  10.  
  11. .dashboard iframe {
  12.     position: absolute;
  13.     display: block;
  14.     top: 0;
  15.     left: 0;
  16.     width: 100%;
  17.     height: 100%;
  18. }
  19.  
  20. </style>
  21. </head>
  22. <body>
  23. <div class="dashboard">
  24. <iframe src="enter_your_dashboard_iframe_link_here" width="800" height="600" frameborder="0" allowfullscreen></iframe>
  25. </div>
  26. </body>
  27. </html>
Add Comment
Please, Sign In to add comment