Guest User

Website loading using an iframe

a guest
Feb 26th, 2013
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.77 KB | None | 0 0
  1. <html>
  2.     <head>
  3.         <title>Using iframe</title>
  4.         <style type="text/css">
  5.             body {
  6.                 margin: 0;
  7.             }
  8.             #ontop {
  9.                 position: absolute;
  10.                 width: 100%;
  11.                 height: 10%;
  12.                 top: 0;
  13.                 bottom: 90%;
  14.                 background-color: yellow;
  15.             }
  16.             #content {
  17.                 position: absolute;
  18.                 width: 100%;
  19.                 height: 90%;
  20.                 top: 10%;
  21.                 bottom: 0;
  22.                 border: 0;
  23.             }
  24.         </style>
  25.     </head>
  26.     <body>
  27.         <div id="ontop">Always on top</div>
  28.         <iframe id="content" src="http://www.stackoverflow.com/"></iframe>
  29.     </body>
  30. </html>
Advertisement
Add Comment
Please, Sign In to add comment