Advertisement
Biebergirl

layout

Apr 4th, 2018
999
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <HTML.am>
  2.  
  3.  
  4.  
  5.  
  6. HTML Templates — View Source Code
  7.  
  8. Source code for: layout-templates/3-column-layout.cfm
  9.  <!DOCTYPE html>
  10. <!-- Template by html.am -->
  11. <html>
  12. <head>
  13.     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  14.     <title>3 Column Layout</title>
  15.     <style type="text/css">
  16.  
  17.         /* Layout */
  18.         body {
  19.             min-width: 630px;
  20.         }
  21.  
  22.         #container {
  23.             padding-left: 200px;
  24.             padding-right: 190px;
  25.         }
  26.        
  27.         #container .column {
  28.             position: relative;
  29.             float: left;
  30.         }
  31.        
  32.         #center {
  33.             padding: 10px 20px;
  34.             width: 100%;
  35.         }
  36.        
  37.         #left {
  38.             width: 180px;
  39.             padding: 0 10px;
  40.             right: 240px;
  41.             margin-left: -100%;
  42.         }
  43.        
  44.         #right {
  45.             width: 130px;
  46.             padding: 0 10px;
  47.             margin-right: -100%;
  48.         }
  49.        
  50.         #footer {
  51.             clear: both;
  52.         }
  53.        
  54.         /* IE hack */
  55.         * html #left {
  56.             left: 150px;
  57.         }
  58.  
  59.         /* Make the columns the same height as each other */
  60.         #container {
  61.             overflow: hidden;
  62.         }
  63.  
  64.         #container .column {
  65.             padding-bottom: 1001em;
  66.             margin-bottom: -1000em;
  67.         }
  68.  
  69.         /* Fix for the footer */
  70.         * html body {
  71.             overflow: hidden;
  72.         }
  73.        
  74.         * html #footer-wrapper {
  75.             float: left;
  76.             position: relative;
  77.             width: 100%;
  78.             padding-bottom: 10010px;
  79.             margin-bottom: -10000px;
  80.             background: #fff;
  81.         }
  82.  
  83.         /* Aesthetics */
  84.         body {
  85.             margin: 0;
  86.             padding: 0;
  87.             font-family:Sans-serif;
  88.             line-height: 1.5em;
  89.         }
  90.        
  91.         p {
  92.             color: #555;
  93.         }
  94.  
  95.         nav ul {
  96.             list-style-type: none;
  97.             margin: 0;
  98.             padding: 0;
  99.         }
  100.        
  101.         nav ul a {
  102.             color: darkgreen;
  103.             text-decoration: none;
  104.         }
  105.  
  106.         #header, #footer {
  107.             font-size: large;
  108.             padding: 0.3em;
  109.             background: #BCCE98;
  110.         }
  111.  
  112.         #left {
  113.             background: #DAE9BC;
  114.         }
  115.        
  116.         #right {
  117.             background: #F7FDEB;
  118.         }
  119.  
  120.         #center {
  121.             background: #fff;
  122.         }
  123.  
  124.         #container .column {
  125.             padding-top: 1em;
  126.         }
  127.        
  128.     </style>
  129.    
  130.     <script type="text/javascript">
  131.         /* =============================
  132.         This script generates sample text for the body content.
  133.         You can remove this script and any reference to it.
  134.          ============================= */
  135.         var bodyText=["The smaller your reality, the more convinced you are that you know everything.", "If the facts don't fit the theory, change the facts.", "The past has no power over the present moment.", "This, too, will pass.", "</p><p>You will not be punished for your anger, you will be punished by your anger.", "Peace comes from within. Do not seek it without.", "<h3>Heading</h3><p>The most important moment of your life is now. The most important person in your life is the one you are with now, and the most important activity in your life is the one you are involved with now."]
  136.         function generateText(sentenceCount){
  137.             for (var i=0; i<sentenceCount; i++)
  138.             document.write(bodyText[Math.floor(Math.random()*7)]+" ")
  139.         }
  140.     </script>  
  141. </head>
  142.  
  143. <body>
  144.  
  145.     <header id="header"><p>Header...</p></header>
  146.  
  147.     <div id="container">
  148.  
  149.         <main id="center" class="column">
  150.             <article>
  151.            
  152.                 <h1>Heading</h1>
  153.                 <p><script>generateText(50)</script></p>
  154.            
  155.             </article>                             
  156.         </main>
  157.  
  158.         <nav id="left" class="column">
  159.             <h3>Left heading</h3>
  160.             <ul>
  161.                 <li><a href="#">Link 1</a></li>
  162.                 <li><a href="#">Link 2</a></li>
  163.                 <li><a href="#">Link 3</a></li>
  164.                 <li><a href="#">Link 4</a></li>
  165.                 <li><a href="#">Link 5</a></li>
  166.             </ul>
  167.             <h3>Left heading</h3>
  168.             <ul>
  169.                 <li><a href="#">Link 1</a></li>
  170.                 <li><a href="#">Link 2</a></li>
  171.                 <li><a href="#">Link 3</a></li>
  172.                 <li><a href="#">Link 4</a></li>
  173.                 <li><a href="#">Link 5</a></li>
  174.             </ul>
  175.  
  176.         </nav>
  177.  
  178.         <div id="right" class="column">
  179.             <h3>Right heading</h3>
  180.             <p><script>generateText(1)</script></p>
  181.         </div>
  182.  
  183.     </div>
  184.  
  185.     <div id="footer-wrapper">
  186.         <footer id="footer"><p>Footer...</p></footer>
  187.     </div>
  188.  
  189. </body>
  190.  
  191. </html>
  192.  
  193.  
  194. HTML Tutorial
  195.  
  196. HTML Templates
  197.  
  198. Layout Templates
  199. CSS Templates
  200. HTML5 Frames
  201. Website Templates
  202. HTML Codes
  203.  
  204. Text Code
  205.  
  206. Table Code
  207.  
  208. Link Code
  209.  
  210. Image Code
  211.  
  212. Color Code
  213.  
  214. Background Code
  215.  
  216. Marquee Code
  217.  
  218. Form Code
  219.  
  220. Textbox Code
  221.  
  222. Scrollbox Code
  223.  
  224. Character Codes
  225.  
  226. HTML Editors
  227.  
  228. HTML Generators
  229.  
  230. HTML Reference
  231.  
  232. HTML Tags
  233.  
  234.  
  235.  
  236.  
  237. Share
  238.  
  239.  
  240.  
  241. About HTML.am
  242. HTML.am was created in order to provide HTML tools, codes, tutorials, and other resources to help webmasters create and maintain their HTML documents.
  243. HTML.am aims primarily at beginners, but may also be useful to web professionals.
  244. About the HTML Codes
  245. The HTML codes on this website are provided free of charge, for you to use however you wish. Feel free to modify the code to suit your own needs.
  246. Need Hosting?
  247. Our partner site ZappyHost provides website hosting, domain names and related products at some of the best prices on the web. If you need web hosting, check them out!
  248.  
  249. © Copyright HTML.am | Privacy Policy
  250.  
  251. Desktop | Mobile Site
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement