Advertisement
Guest User

Untitled

a guest
Aug 3rd, 2013
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.67 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.         <meta charset="UTF-8"/>
  5.         <title>Example Layout</title>
  6.         <!--[if lt IE 9]><meta http-equiv="X-UA-Compatible" content="chrome=1"><![endif]-->
  7.         <style type="text/css">
  8.             html,body{
  9.                 margin:0;
  10.                 padding:0px;
  11.             }
  12.             body{
  13.                 background-image:linear-gradient(to right, red, orange, yellow, blue, violet);
  14.             }
  15.             body > div{
  16.                 border-radius:8px;
  17.                 margin-left:auto;
  18.                 margin-right:auto;
  19.                 background-color:#fff;
  20.                 color:#000;
  21.                 padding:5px;
  22.                 width:780px;
  23.                 padding-top:5px;
  24.                 margin-top:10px;
  25.                 background-color:rgba(255,255,255,.75);
  26.             }
  27.             #header,#footer{
  28.                 background-color:rgba(0,0,0,.8);
  29.                 color:white;
  30.                 padding:5px;
  31.                 text-align:center;
  32.             }
  33.             #header{
  34.                 font-size:20pt;
  35.                 border-radius:8px 8px 0 0;
  36.             }
  37.             #content{
  38.                 border-left: 1px solid #000;
  39.                 border-right: 1px solid #000;
  40.                 padding:5px;
  41.                 text-indent:50px;
  42.             }
  43.             #content p{
  44.                 text-indent:50px;
  45.                 margin:0;
  46.                 padding-bottom:10px;
  47.             }
  48.             #content p.ie{
  49.                 font-weight:bold;
  50.                 color:red;
  51.             }
  52.             #footer{
  53.                 font-size:small;
  54.                 border-radius:0 0 8px 8px;
  55.             }
  56.         </style>
  57.     </head>
  58.     <body>
  59.         <div>
  60.             <div id="header">
  61.                 My boring Header
  62.             </div>
  63.             <div id="content">
  64.                 <!--[if lt IE 9]>
  65.                     <p class="ie">
  66.                         My r&eacute;sum&eacute; would look much better if you would use a browser that is not 4+ years old, that did not even
  67.                         comply with the web standards back then, much less the current standard.
  68.                     </p>
  69.                 <![endif]-->
  70.                 <p>
  71.                     Some boring paragraph
  72.                 </p>
  73.             </div>
  74.             <div id="footer">
  75.                 My boring footer
  76.             </div>
  77.         </div>
  78.     </body>
  79. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement