monoteen

HTML5_0929

Sep 28th, 2014
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 0.83 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.         <title>TODO supply a title</title>
  5.         <meta charset="UTF-8">
  6.         <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7.         <style>
  8.             p, div {
  9.                 width: 200px;
  10.                 height: 50px;
  11.             }
  12.             #one {
  13.                 background-color: cyan;
  14.                 width: 200px;
  15.                 height: 50px;
  16.             }
  17.             #two {
  18.                 background-color: yellow;
  19.                 position: fixed;
  20.                 top: 0px;
  21.                 right: 0px;
  22.             }
  23.         </style>
  24.     </head>
  25.     <body>
  26.         <p id="one">Block #1</p>
  27.         <div id="two">Block #2</div>
  28.         <p>Block #3</p>
  29.         <p>Block #4</p>
  30.         <p>Block #5</p>
  31.         <p>Block #6</p>
  32.     </body>
  33. </html>
Advertisement
Add Comment
Please, Sign In to add comment