页面底部的CSS白色空间

时间:2015-04-07 19:46:20

标签: html css removing-whitespace

如何摆脱页面底部的空间?



/* Basic Style */

html,
body {
  height: 100%;
}
body {
  background-color: #FFFFFF;
  font-family: 'Roboto', sans-serif;
  font-size: 12pt;
  font-weight: 100;
  color: #212121;
  text-decoration: none;
  line-height: 100%;
  height: 100%;
  margin: 0px 0px 0px 0px;
}
a:link {
  color: #42b4da;
  font-family: 'Roboto', sans-serif;
  text-decoration: none;
}
a:visited {
  color: #002946;
  text-decoration: none;
}
a:active,
a:hover {
  color: #670f08;
  text-decoration: underline;
}
img {
  border: 0px solid white;
  margin: 0px;
  padding: 0px;
}
.clear {
  clear: both;
}
/* Text Formatting */

h1 {
  font-size: 20pt;
  color: #212121;
  font-weight: lighter;
}
h2 {
  font-size: 20pt;
  color: #212121;
  font-weight: lighter;
}
h3 {
  font-size: 20pt;
  color: #212121;
  font-weight: lighter;
}
blockquote {
  font-size: 12pt;
  font-style: italic;
  margin: 30px 30px 30px 0;
  padding: 0 0 0 20px;
  border-left: 1px solid #ccc;
}
/* Clear */

.clearBoth {
  clear: both;
}
/* Page Wrapper*/

#pageWrapper {
  width: 100%;
  height: 100%;
}
/* Page Top */

#pageTop {
  width: 100%;
  height: 100px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  overflow: hidden;
}
#topTitle {
  background-color: #262626;
  color: #CCCCCC;
  width: 100%;
  height: 100%;
  float: left;
  margin-right: -250px;
}
#topRight {
  background-color: #262626;
  color: #CCCCCC;
  width: 250px;
  height: 100%;
  float: right;
}
/* Page Main */

#pageMain {
  background: #ffffff url(../style/images/sidebarBackground.gif) repeat-y right;
  width: 100%;
  margin-top: 100px;
  overflow: hidden;
}
/* Main Content */

#mainContent {
  width: 100%;
  height: 100%;
  float: left;
  margin-right: -250px;
}
.contentClear {
  margin-right: 250px;
}
.contentPost {
  margin: 40px;
}
.postTitle {} .postContent {} .postExtras {}
/* Main Sidebar */

#mainSidebar {
  background: #262626 url(../style/images/sidebarBackground.gif) repeat-y right;
  color: #CCCCCC;
  width: 220px;
  margin: 15px;
  height: 100%;
  float: right;
}
#mainSidebar h1 {
  color: #CCCCCC;
  font: 14pt'Roboto', sans-serif;
  text-align: center;
  margin: 2px;
  padding: 2px;
}
#mainSidebar h1:before {
  content: "‹";
  position: relative;
  left: -2px;
}
#mainSidebar h1:after {
  content: "›";
  position: relative;
  left: 2px;
}
.sidebarContent {} .sidebarNav {
  margin: 0;
  padding: 0;
  list-style: none;
}
.sidebarNav li:before {
  content: "//";
  position: relative;
  left: 2px;
}
/* Page Footer */

#pageFooter {
  width: 100%;
  height: 100px;
  overflow: hidden;
}
#footerContent {
  background-color: #262626;
  color: #CCCCCC;
  width: 100%;
  height: 100%;
  float: left;
  margin-right: -250px;
}
#footerRight {
  background-color: #262626;
  color: #CCCCCC;
  width: 250px;
  height: 100%;
  float: right;
}

<div id="pageWrapper">
  <div id="pageTop">
    <div id="topTitle">
      This is where the pages logo/title/whatever will go.
    </div>
    <div id="topRight">
      Rightside content
    </div>
  </div>
  <div class="clearBoth"></div>
  <div id="pageMain">
    <div id="mainContent">
      <div class="contentClear">
        <div class="contentPost">
          <div class="postTitle">
            <h1>HELLO WORLD!</h1>
          </div>
          <div class="postExtras">
            <p>
              APRIL 2, 2015 1 COMMENT
            </p>
          </div>
          <div class="postContent">
            <p>
              Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!
            </p>
            <p>
              This is the posts content; yeah!! This is the posts content; yeah!! This is the posts content; yeah!! This is the posts content; yeah!! This is the posts content; yeah!! This is the posts content; yeah!! This is the posts content; yeah!! This is the posts
              content; yeah!! This is the posts content; yeah!! This is the posts content; yeah!! This is the posts content; yeah!! This is the posts content; yeah!! This is the posts content; yeah!!
            </p>
          </div>
        </div>
      </div>
    </div>
    <div id="mainSidebar">
      <div class="sidebarContent">
        <h1>Navigation</h1>
        <ul class="sidebarNav">
          <li>
            <a href="_blank">Home</a>
          </li>
          <li>
            <a href="_blank">About</a>
          </li>
          <li>
            <a href="_blank">Contact</a>
          </li>
          <li>
            <a href="_blank">Links</a>
          </li>
        </ul>
      </div>
      <div class="sidebarContent">
        <h1>Unordered List</h1>
        <ul>
          <li>
            Here is an unordered list in the sidebar.
          </li>
          <li>
            Here is an unordered list in the sidebar.
          </li>
          <li>
            Here is an unordered list in the sidebar.
          </li>
          <li>
            Here is an unordered list in the sidebar.
          </li>
        </ul>
      </div>
      <div class="sidebarContent">
        <h1>Something Else</h1>
        <ol>
          <li>
            Here is an unordered list in the sidebar.
          </li>
          <li>
            Here is an unordered list in the sidebar.
          </li>
          <li>
            Here is an unordered list in the sidebar.
          </li>
          <li>
            Here is an unordered list in the sidebar.
          </li>
        </ol>
      </div>
    </div>
  </div>
  <div class="clearBoth"></div>
  <div id="pageFooter">
    <div id="footerContent">
      <h1>This is the footer, and copyright stuff.</h1>
      <ul>
        <li>
          <a href="_blank">Home</a>
        </li>
        <li>
          <a href="_blank">About</a>
        </li>
        <li>
          <a href="_blank">Contact</a>
        </li>
        <li>
          <a href="_blank">Links</a>
        </li>
      </ul>
    </div>
    <div id="footerRight">
      <p>
        SMLinks
      </p>
    </div>
  </div>
</div>
&#13;
&#13;
&#13;

5 个答案:

答案 0 :(得分:0)

这是因为你有身高:100%;在你的HTML和身体标签上。此外,它在您的pageWrapper类上。这告诉浏览器无论如何都要使页面的高度至少为视口的高度,然后告诉你的内部PageWrapper类匹配那个高度,无论如何。

我建议制作html高度:auto;一开始。

答案 1 :(得分:0)

我想也许你打算将黑色背景页脚部分放在底部,下方没有空白区域,对吧?您可以通过从页面包装器中取出页脚部分,将其放在最终正文标记之前并添加此css来执行此操作:

对于ID pageFooter,添加css位置:fixed;底部:0;

&#13;
&#13;
/* Basic Style */

html,
body {
  height: 100%;
}
body {
  background-color: #FFFFFF;
  font-family: 'Roboto', sans-serif;
  font-size: 12pt;
  font-weight: 100;
  color: #212121;
  text-decoration: none;
  line-height: 100%;
  height: 100%;
  margin: 0px 0px 0px 0px;
}
a:link {
  color: #42b4da;
  font-family: 'Roboto', sans-serif;
  text-decoration: none;
}
a:visited {
  color: #002946;
  text-decoration: none;
}
a:active,
a:hover {
  color: #670f08;
  text-decoration: underline;
}
img {
  border: 0px solid white;
  margin: 0px;
  padding: 0px;
}
.clear {
  clear: both;
}
/* Text Formatting */

h1 {
  font-size: 20pt;
  color: #212121;
  font-weight: lighter;
}
h2 {
  font-size: 20pt;
  color: #212121;
  font-weight: lighter;
}
h3 {
  font-size: 20pt;
  color: #212121;
  font-weight: lighter;
}
blockquote {
  font-size: 12pt;
  font-style: italic;
  margin: 30px 30px 30px 0;
  padding: 0 0 0 20px;
  border-left: 1px solid #ccc;
}
/* Clear */

.clearBoth {
  clear: both;
}
/* Page Wrapper*/

#pageWrapper {
  width: 100%;
  height: 100%;
}
/* Page Top */

#pageTop {
  width: 100%;
  height: 100px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  overflow: hidden;
}
#topTitle {
  background-color: #262626;
  color: #CCCCCC;
  width: 100%;
  height: 100%;
  float: left;
  margin-right: -250px;
}
#topRight {
  background-color: #262626;
  color: #CCCCCC;
  width: 250px;
  height: 100%;
  float: right;
}
/* Page Main */

#pageMain {
  background: #ffffff url(../style/images/sidebarBackground.gif) repeat-y right;
  width: 100%;
  margin-top: 100px;
  overflow: hidden;
}
/* Main Content */

#mainContent {
  width: 100%;
  height: 100%;
  float: left;
  margin-right: -250px;
}
.contentClear {
  margin-right: 250px;
}
.contentPost {
  margin: 40px;
}
.postTitle {} .postContent {} .postExtras {}
/* Main Sidebar */

#mainSidebar {
  background: #262626 url(../style/images/sidebarBackground.gif) repeat-y right;
  color: #CCCCCC;
  width: 220px;
  margin: 15px;
  height: 100%;
  float: right;
}
#mainSidebar h1 {
  color: #CCCCCC;
  font: 14pt'Roboto', sans-serif;
  text-align: center;
  margin: 2px;
  padding: 2px;
}
#mainSidebar h1:before {
  content: "‹";
  position: relative;
  left: -2px;
}
#mainSidebar h1:after {
  content: "›";
  position: relative;
  left: 2px;
}
.sidebarContent {} .sidebarNav {
  margin: 0;
  padding: 0;
  list-style: none;
}
.sidebarNav li:before {
  content: "//";
  position: relative;
  left: 2px;
}
/* Page Footer */

#pageFooter {
  width: 100%;
  height: 40px;
  overflow: hidden;
}
#footerContent {
  background-color: #262626;
  color: #CCCCCC;
  width: 100%;
  height: 100%;
  float: left;
  margin-right: -250px;
}
#footerRight {
  background-color: #262626;
  color: #CCCCCC;
  width: 250px;
  height: 100%;
  float: right;
}

#footerContent h1 {
  position: absolute;
  right: 40%;
  font-size: 12px;
  color: #ccc;
}
#footerContent ul {
  padding: 0;
  margin: 0;
  margin-left: 20px;
}
#footerContent ul li {
  display: inline;
  line-height: 40px;
}

/*  ADD THIS TO FIX FOOTER TO BOTTOM  */
#pageFooter {
  position: fixed;
  bottom: 0;
}
&#13;
<div id="pageWrapper">
  <div id="pageTop">
    <div id="topTitle">
      This is where the pages logo/title/whatever will go.
    </div>
    <div id="topRight">
      Rightside content
    </div>
  </div>
  <div class="clearBoth"></div>
  <div id="pageMain">
    <div id="mainContent">
      <div class="contentClear">
        <div class="contentPost">
          <div class="postTitle">
            <h1>HELLO WORLD!</h1>
          </div>
          <div class="postExtras">
            <p>
              APRIL 2, 2015 1 COMMENT
            </p>
          </div>
          <div class="postContent">
            <p>
              Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!
            </p>
            <p>
              This is the posts content; yeah!! This is the posts content; yeah!! This is the posts content; yeah!! This is the posts content; yeah!! This is the posts content; yeah!! This is the posts content; yeah!! This is the posts content; yeah!! This is the posts
              content; yeah!! This is the posts content; yeah!! This is the posts content; yeah!! This is the posts content; yeah!! This is the posts content; yeah!! This is the posts content; yeah!!
            </p>
          </div>
        </div>
      </div>
    </div>
    <div id="mainSidebar">
      <div class="sidebarContent">
        <h1>Navigation</h1>
        <ul class="sidebarNav">
          <li>
            <a href="_blank">Home</a>
          </li>
          <li>
            <a href="_blank">About</a>
          </li>
          <li>
            <a href="_blank">Contact</a>
          </li>
          <li>
            <a href="_blank">Links</a>
          </li>
        </ul>
      </div>
      <div class="sidebarContent">
        <h1>Unordered List</h1>
        <ul>
          <li>
            Here is an unordered list in the sidebar.
          </li>
          <li>
            Here is an unordered list in the sidebar.
          </li>
          <li>
            Here is an unordered list in the sidebar.
          </li>
          <li>
            Here is an unordered list in the sidebar.
          </li>
        </ul>
      </div>
      <div class="sidebarContent">
        <h1>Something Else</h1>
        <ol>
          <li>
            Here is an unordered list in the sidebar.
          </li>
          <li>
            Here is an unordered list in the sidebar.
          </li>
          <li>
            Here is an unordered list in the sidebar.
          </li>
          <li>
            Here is an unordered list in the sidebar.
          </li>
        </ol>
      </div>
    </div>
  </div>
  <div class="clearBoth"></div>
  <div id="pageFooter">
    <div id="footerContent">
      <h1>FIXED FOOTER &copy;2015 etc.</h1>
      <ul>
        <li>
          <a href="_blank">Home</a>
        </li>
        <li>
          <a href="_blank">About</a>
        </li>
        <li>
          <a href="_blank">Contact</a>
        </li>
        <li>
          <a href="_blank">Links</a>
        </li>
      </ul>
    </div>
    <div id="footerRight">
      <p>
        SMLinks
      </p>
    </div>
  </div>
</div>
&#13;
&#13;
&#13;

答案 2 :(得分:0)

div class&#34;问题&#34;是2032像素高。在这个div下面是一个名为&#34; answer&#34;这是一个728 X 870px的空白div。通过缩小答案div可以消除白色空间以消除一些空白区域。然而,一些空白区域是因为答案区域。要了解如何更改CSS,请访问http://www.w3schools.com/cssref/pr_dim_height.asp。找到这些div的代码在body,container,content,itemscope和mainbar下。

答案 3 :(得分:0)

我通过移除line-height:100%中的body来解决此问题。 将height:100vh添加到#mainPage

#mainPage{
height:100vh;
}

答案 4 :(得分:0)

如果我理解正确,问题是即使没有内容填充滚动区域,也会有持久的垂直滚动条。

我认为这是由"margin collapse"造成的。

解释保证金崩溃

您已将div#pageTop设置为position:fixed,并且已将margin-top:100px添加到div#pageMain以将其推送到固定标头下方。该保证金与div#pageWrapper一起崩溃,最终与<body>一起崩溃。

由于<body>设置为height:100%并且折叠边距将其向下推至100px,因此<body>最终会导致100px过高并导致浏览器中出现垂直滚动条。 100% + 100px的高度总是大于窗口的高度,并且总是需要滚动条。

以下是显示<body>顶部的图片。请注意,它不会按预期在页面顶部开始。它开始下调100px,低于标题:

enter image description here

如何修复折叠边距

several methods可以防止折叠边距。在这种情况下,我建议将margin-top:100px上的div#pageMain更改为填充:

#pageMain {
  ...
  padding-top: 100px; /* padding instead of margin */
}

这可以阻止边距折叠并使<body>重新回到它所属的窗口顶部:

enter image description here

现在<body>的高度是窗口的100%,并且没有持久滚动条。

参见下面的演示:

/* Basic Style */

html,
body {
  height: 100%;
}
body {
  background-color: #FFFFFF;
  font-family: 'Roboto', sans-serif;
  font-size: 12pt;
  font-weight: 100;
  color: #212121;
  text-decoration: none;
  line-height: 100%;
  height: 100%;
  margin: 0px 0px 0px 0px;
}
a:link {
  color: #42b4da;
  font-family: 'Roboto', sans-serif;
  text-decoration: none;
}
a:visited {
  color: #002946;
  text-decoration: none;
}
a:active,
a:hover {
  color: #670f08;
  text-decoration: underline;
}
img {
  border: 0px solid white;
  margin: 0px;
  padding: 0px;
}
.clear {
  clear: both;
}
/* Text Formatting */

h1 {
  font-size: 20pt;
  color: #212121;
  font-weight: lighter;
}
h2 {
  font-size: 20pt;
  color: #212121;
  font-weight: lighter;
}
h3 {
  font-size: 20pt;
  color: #212121;
  font-weight: lighter;
}
blockquote {
  font-size: 12pt;
  font-style: italic;
  margin: 30px 30px 30px 0;
  padding: 0 0 0 20px;
  border-left: 1px solid #ccc;
}
/* Clear */

.clearBoth {
  clear: both;
}
/* Page Wrapper*/

#pageWrapper {
  width: 100%;
  height: 100%;
}
/* Page Top */

#pageTop {
  width: 100%;
  height: 100px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  overflow: hidden;
}
#topTitle {
  background-color: #262626;
  color: #CCCCCC;
  width: 100%;
  height: 100%;
  float: left;
  margin-right: -250px;
}
#topRight {
  background-color: #262626;
  color: #CCCCCC;
  width: 250px;
  height: 100%;
  float: right;
}
/* Page Main */

#pageMain {
  background: #ffffff url(../style/images/sidebarBackground.gif) repeat-y right;
  width: 100%;
  padding-top: 100px;
  overflow: hidden;
}
/* Main Content */

#mainContent {
  width: 100%;
  height: 100%;
  float: left;
  margin-right: -250px;
}
.contentClear {
  margin-right: 250px;
}
.contentPost {
  margin: 40px;
}
.postTitle {} .postContent {} .postExtras {}
/* Main Sidebar */

#mainSidebar {
  background: #262626 url(../style/images/sidebarBackground.gif) repeat-y right;
  color: #CCCCCC;
  width: 220px;
  margin: 15px;
  height: 100%;
  float: right;
}
#mainSidebar h1 {
  color: #CCCCCC;
  font: 14pt'Roboto', sans-serif;
  text-align: center;
  margin: 2px;
  padding: 2px;
}
#mainSidebar h1:before {
  content: "‹";
  position: relative;
  left: -2px;
}
#mainSidebar h1:after {
  content: "›";
  position: relative;
  left: 2px;
}
.sidebarContent {} .sidebarNav {
  margin: 0;
  padding: 0;
  list-style: none;
}
.sidebarNav li:before {
  content: "//";
  position: relative;
  left: 2px;
}
/* Page Footer */

#pageFooter {
  width: 100%;
  height: 100px;
  overflow: hidden;
}
#footerContent {
  background-color: #262626;
  color: #CCCCCC;
  width: 100%;
  height: 100%;
  float: left;
  margin-right: -250px;
}
#footerRight {
  background-color: #262626;
  color: #CCCCCC;
  width: 250px;
  height: 100%;
  float: right;
}
<div id="pageWrapper">
  <div id="pageTop">
    <div id="topTitle">
      This is where the pages logo/title/whatever will go.
    </div>
    <div id="topRight">
      Rightside content
    </div>
  </div>
  <div class="clearBoth"></div>
  <div id="pageMain">
    <div id="mainContent">
      <div class="contentClear">
        <div class="contentPost">
          <div class="postTitle">
            <h1>HELLO WORLD!</h1>
          </div>
          <div class="postExtras">
            <p>
              APRIL 2, 2015 1 COMMENT
            </p>
          </div>
          <div class="postContent">
            <p>
              Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!
            </p>
            <p>
              This is the posts content; yeah!! This is the posts content; yeah!! This is the posts content; yeah!! This is the posts content; yeah!! This is the posts content; yeah!! This is the posts content; yeah!! This is the posts content; yeah!! This is the posts
              content; yeah!! This is the posts content; yeah!! This is the posts content; yeah!! This is the posts content; yeah!! This is the posts content; yeah!! This is the posts content; yeah!!
            </p>
          </div>
        </div>
      </div>
    </div>
    <div id="mainSidebar">
      <div class="sidebarContent">
        <h1>Navigation</h1>
        <ul class="sidebarNav">
          <li>
            <a href="_blank">Home</a>
          </li>
          <li>
            <a href="_blank">About</a>
          </li>
          <li>
            <a href="_blank">Contact</a>
          </li>
          <li>
            <a href="_blank">Links</a>
          </li>
        </ul>
      </div>
      <div class="sidebarContent">
        <h1>Unordered List</h1>
        <ul>
          <li>
            Here is an unordered list in the sidebar.
          </li>
          <li>
            Here is an unordered list in the sidebar.
          </li>
          <li>
            Here is an unordered list in the sidebar.
          </li>
          <li>
            Here is an unordered list in the sidebar.
          </li>
        </ul>
      </div>
      <div class="sidebarContent">
        <h1>Something Else</h1>
        <ol>
          <li>
            Here is an unordered list in the sidebar.
          </li>
          <li>
            Here is an unordered list in the sidebar.
          </li>
          <li>
            Here is an unordered list in the sidebar.
          </li>
          <li>
            Here is an unordered list in the sidebar.
          </li>
        </ol>
      </div>
    </div>
  </div>
  <div class="clearBoth"></div>
  <div id="pageFooter">
    <div id="footerContent">
      <h1>This is the footer, and copyright stuff.</h1>
      <ul>
        <li>
          <a href="_blank">Home</a>
        </li>
        <li>
          <a href="_blank">About</a>
        </li>
        <li>
          <a href="_blank">Contact</a>
        </li>
        <li>
          <a href="_blank">Links</a>
        </li>
      </ul>
    </div>
    <div id="footerRight">
      <p>
        SMLinks
      </p>
    </div>
  </div>
</div>

jlane09的回答也解决了这个问题。它有效,因为它有效。但是,在我看来,这个答案并没有充分解释问题的原因。此外,使用height:auto可能会在某些情况下导致进一步的问题(例如,对子元素使用基于百分比的高度)。


粘性页脚

创建“粘性”页脚是一个单独的问题。如果您希望页脚始终粘在窗口的底部,无论窗口是否需要滚动,请参阅Ryan Fait's (famous) sticky footer。它需要一些不同的结构,但它是值得的。

我在下面为您建立了一个基本的演示:

/* Basic Style */

html,
body {
  height: 100%;
  margin: 0;
}
/* Page Wrapper*/

#pageWrapper {
  min-height: 100%;
  height: auto !important;
  height: 100%;
  margin: 0 0 -160px;
}
/* Page Top */

#pageTop {
  width: 100%;
  height: 100px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
}
#topTitle {
  background-color: #262626;
  color: #CCCCCC;
  width: 100%;
  height: 100%;
  float: left;
  margin-right: -250px;
}
#topRight {
  background-color: #262626;
  color: #CCCCCC;
  width: 250px;
  height: 100%;
  float: right;
}
/* Page Main */

#pageMain {
  background: #ffffff url(../style/images/sidebarBackground.gif) repeat-y right;
  width: 100%;
  padding-top: 100px;
}
/* Main Content */

#mainContent {
  width: 100%;
  height: 100%;
  float: left;
  margin-right: -250px;
}
.contentClear {
  margin-right: 250px;
}
.contentPost {
  margin: 40px;
}
.postTitle {} .postContent {} .postExtras {}
/* Main Sidebar */

#mainSidebar {
  background: #262626 url(../style/images/sidebarBackground.gif) repeat-y right;
  color: #CCCCCC;
  width: 220px;
  margin: 15px;
  height: 100%;
  float: right;
}
#mainSidebar h1 {
  color: #CCCCCC;
  font: 14pt'Roboto', sans-serif;
  text-align: center;
  margin: 2px;
  padding: 2px;
}
#mainSidebar h1:before {
  content: "‹";
  position: relative;
  left: -2px;
}
#mainSidebar h1:after {
  content: "›";
  position: relative;
  left: 2px;
}
.sidebarContent {} .sidebarNav {
  margin: 0;
  padding: 0;
  list-style: none;
}
.sidebarNav li:before {
  content: "//";
  position: relative;
  left: 2px;
}
/* Page Footer */

#pageFooter {
  width: 100%;
  background-color: #262626;
}
#footerContent {
  color: #CCCCCC;
  width: 100%;
  float: left;
  margin-right: -250px;
}
#footerRight {
  color: #CCCCCC;
  width: 250px;
  height: 100%;
  float: right;
}
#pageFooter,
#footer_push {
  height: 160px;
}
.clearfix:before,
.clearfix:after {
  content: "";
  display: table;
}
.clearfix:after {
  clear: both;
}
.clearfix {
  zoom: 1;
  /* ie 6/7 */
}
<div id="pageWrapper">
  <div id="pageTop">
    <div id="topTitle">This is where the pages logo/title/whatever will go.</div>
    <div id="topRight">Rightside content</div>
  </div>
  <div id="pageMain" class="clearfix">
    <div id="mainContent">
      <div class="contentClear">
        <div class="contentPost">
          <div class="postTitle">
            <h1>HELLO WORLD!</h1>

          </div>
          <div class="postExtras">
            <p>APRIL 2, 2015 1 COMMENT</p>
          </div>
          <div class="postContent">
            <p>Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!</p>
            <p>This is the posts content; yeah!! This is the posts content; yeah!! This is the posts content; yeah!! This is the posts content; yeah!! This is the posts content; yeah!! This is the posts content; yeah!! This is the posts content; yeah!! This
              is the posts content; yeah!! This is the posts content; yeah!! This is the posts content; yeah!! This is the posts content; yeah!! This is the posts content; yeah!! This is the posts content; yeah!!</p>
          </div>
        </div>
      </div>
    </div>
    <div id="mainSidebar">
      <div class="sidebarContent">
        <h1>Navigation</h1>

        <ul class="sidebarNav">
          <li> <a href="_blank">Home</a>

          </li>
          <li> <a href="_blank">About</a>

          </li>
          <li> <a href="_blank">Contact</a>

          </li>
          <li> <a href="_blank">Links</a>

          </li>
        </ul>
      </div>
      <div class="sidebarContent">
        <h1>Unordered List</h1>

        <ul>
          <li>Here is an unordered list in the sidebar.</li>
          <li>Here is an unordered list in the sidebar.</li>
          <li>Here is an unordered list in the sidebar.</li>
          <li>Here is an unordered list in the sidebar.</li>
        </ul>
      </div>
      <div class="sidebarContent">
        <h1>Something Else</h1>

        <ol>
          <li>Here is an unordered list in the sidebar.</li>
          <li>Here is an unordered list in the sidebar.</li>
          <li>Here is an unordered list in the sidebar.</li>
          <li>Here is an unordered list in the sidebar.</li>
        </ol>
      </div>
    </div>
  </div>
  <div id="footer_push"></div>
</div>
<div id="pageFooter">
  <div id="footerContent">
    <h1>This is the footer, and copyright stuff.</h1>

    <ul>
      <li> <a href="_blank">Home</a>

      </li>
      <li> <a href="_blank">About</a>

      </li>
      <li> <a href="_blank">Contact</a>

      </li>
      <li> <a href="_blank">Links</a>

      </li>
    </ul>
  </div>
  <div id="footerRight">
    <p>SMLinks</p>
  </div>
</div>