Skip to content

Instantly share code, notes, and snippets.

@elonmir
Created March 6, 2020 13:12
Show Gist options
  • Save elonmir/8e41a8384215c60893bc16f59da451ff to your computer and use it in GitHub Desktop.
Save elonmir/8e41a8384215c60893bc16f59da451ff to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<!-- Template by html.am -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>3 Rows, 3 Columns A</title>
<style type="text/css">
body {
margin: 0;
padding: 0;
overflow: hidden;
height: 100%;
max-height: 100%;
font-family:Sans-serif;
line-height: 1.5em;
}
main {
position: fixed;
top: 50px; /* Set this to the height of the header */
bottom: 50px; /* Set this to the height of the footer */
left: 200px;
right: 200px;
overflow: auto;
background: #fff;
}
#header {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 50px;
overflow: hidden; /* Disables scrollbars on the header frame. To enable scrollbars, change "hidden" to "scroll" */
background: #BCCE98;
}
#footer {
position: absolute;
left: 0;
bottom: 0;
width: 100%;
height: 50px;
overflow: hidden; /* Disables scrollbars on the footer frame. To enable scrollbars, change "hidden" to "scroll" */
background: #BCCE98;
}
#left {
position: absolute;
top: 50px; /* Set this to the height of the header */
bottom: 50px; /* Set this to the height of the footer */
left: 0;
width: 200px;
overflow: auto; /* Scrollbars will appear on this frame only when there's enough content to require scrolling. To disable scrollbars, change to "hidden", or use "scroll" to enable permanent scrollbars */
background: #DAE9BC;
}
#right {
position: absolute;
top: 50px; /* Set this to the height of the header */
bottom: 50px; /* Set this to the height of the footer */
right: 0;
width: 200px;
overflow: auto; /* Scrollbars will appear on this frame only when there's enough content to require scrolling. To disable scrollbars, change to "hidden", or use "scroll" to enable permanent scrollbars */
background: #F7FDEB;
}
.innertube {
margin: 15px; /* Provides padding for the content */
}
p {
color: #555;
}
nav ul {
list-style-type: none;
margin: 0;
padding: 0;
}
nav ul a {
color: darkgreen;
text-decoration: none;
}
/*IE6 fix*/
* html body{
padding: 50px 200px 50px 200px; /* Set the first value to the height of the header, the second value to the width of the right column, third value to the height of the footer, and last value to the width of the left column */
}
* html main{
height: 100%;
width: 100%;
}
</style>
<script type="text/javascript">
/* =============================
This script generates sample text for the body content.
You can remove this script and any reference to it.
============================= */
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."]
function generateText(sentenceCount){
for (var i=0; i<sentenceCount; i++)
document.write(bodyText[Math.floor(Math.random()*7)]+" ")
}
</script>
</head>
<body>
<header id="header">
<div class="innertube">
<p>Header...</p>
</div>
</header>
<main>
<div class="innertube">
###SPLITTER###
</div>
</main>
<nav id="left">
<div class="innertube">
<h1>Heading</h1>
<ul>
<li><a href="#">Link 1</a></li>
<li><a href="#">Link 2</a></li>
<li><a href="#">Link 3</a></li>
<li><a href="#">Link 4</a></li>
<li><a href="#">Link 5</a></li>
</ul>
<h1>Heading</h1>
<ul>
<li><a href="#">Link 1</a></li>
<li><a href="#">Link 2</a></li>
<li><a href="#">Link 3</a></li>
<li><a href="#">Link 4</a></li>
<li><a href="#">Link 5</a></li>
</ul>
</div>
</nav>
<div id="right">
<div class="innertube">
<p><script>generateText(2)</script></p>
</div>
</div>
<footer id="footer">
<div class="innertube">
<p>Footer...</p>
</div>
</footer>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment