html - last div I added not positioning to bottom of page -


i don't know what's causing this.. added div onto page going wrapper footer
(class = main_foot) , it's stuck in top left corner.

goal: move div underneath div class="main_content"

i checked make sure element's class correct in style sheet, position tags, idk. doesn't seem move.

hopefully can notice problem.
it's last div added.

js fiddle: http://jsfiddle.net/73mk8/1/

header.php

<html>  <head>      <html>     <head>     <title> crazy fat wrap* </title>     <link href="../css/nav.css" rel="stylesheet" type="text/css">     <link href="../css/normalize.css" rel="stylesheet" type="text/css">     <link href="../css/body.css" rel="stylesheet" type="text/css">     <link href="../css/stylesheet.css" rel="stylesheet" type="text/css">         <meta http-equiv="content-type" content="text/html; charset=utf-8" />      <script type="text/javascript"><!--//--><![cdata[//><!--          sfhover = function() {             var sfels = document.getelementbyid("nav").getelementsbytagname("li");             (var i=0; i<sfels.length; i++) {                 sfels[i].onmouseover=function() {                     this.classname+=" sfhover";                 }                 sfels[i].onmouseout=function() {                     this.classname=this.classname.replace(new regexp(" sfhover\\b"), "");                 }             }         }         if (window.attachevent) window.attachevent("onload", sfhover);          //--><!]]></script>      </head>  <body> <div class="solid_banner"> <h1> crazy fat wrap </h1> <!--above main nav --> <ul class="soc">     <li><a href="#"><img src="../images/soc/facebook.png"></a></li>     <li><a href="#"><img src="../images/soc/gmail.png"></a></li>     <li><a href="#"><img src="../images/soc/contacts.png"></a></li>     <li><a href="#"><img src="../images/soc/phone.png"></a></li>  </ul> </div>   <div class="nav_bar">  <?php include('nav.php'); ?>  <!--///// head_bar div--> </div>   <div class="orange_strip">  </div>    <div class="feat_head">     <img src="../images/shanesfacebook.jpg">   </div>  <div class="main_content">      <div class="main_content_img"> <!--                         /// /// main content article -->     <img src="../images/flag.jpg">       </div> <!--                    /// main content article --> <div class="main_content_copy">      <h2>lorem ipsum</h2>     <article>     fusce auctor, metus eu ultricies vulputate, sapien nibh faucibus ligula, eget sollicitudin augue risus et dolor. aenean pellentesque, tortor in cursus mattis, ante diam malesuada ligula, ac vestibulum neque turpis ut enim. cras ornare. proin ac nisi. praesent laoreet ante tempor urna. in imperdiet. nam ut metus et orci fermentum nonummy. cras vel nunc. donec feugiat neque eget purus. quisque rhoncus. phasellus tempus massa aliquet urna. integer fringilla quam eget dolor. curabitur mattis. aliquam ac lacus. in congue, odio ut tristique adipiscing, diam leo fermentum ipsum, nec sollicitudin dui quam et tortor. proin id neque ac pede egestas lacinia. curabitur non odio.      </article> </div>     </div>   <!--        foooter . php begin --- >  <div class="main_foot">        <div class="main_footer_copy"> <!-- /////////// main footer article-->         <h2>call action</h2>         <article>             fusce auctor, metus eu ultricies vulputate, sapien nibh faucibus ligula, eget sollicitudin augue risus et dolor. aenean pellentesque, tortor in cursus mattis, ante diam malesuada ligula, ac vestibulum neque turpis ut enim. cras ornare. proin ac nisi. praesent laoreet ante tempor urna. in imperdiet. nam ut metus et orci fermentum nonummy. cras vel nunc. donec feugiat neque eget purus. quisque rhoncus. phasellus tempus massa aliquet urna. integer fringilla quam eget dolor. curabitur mattis. aliquam ac lacus. in congue, odio ut tristique adipiscing, diam leo fermentum ipsum, nec sollicitudin dui quam et tortor. proin id neque ac pede egestas lacinia. curabitur non odio.          </article>        </div>      <!-- /////////// main footer img-->          <div class="main_footer_img">             <!--                         /// /// main content article -->             <a href="#"><img src="../images/shanesbizcard.jpg"></a>           </div>     </div>    </body> </html> 

stylesheet.css

.solid_banner {     width: 100%;     height: 70px;      position: fixed;     z-index: 55;     top: 0;       background: rgba(255, 115, 67, 0.9);   }  .solid_banner h1 { padding:19px 5%;  }  .nav_bar {     z-index: 55;     position: fixed;     top: 70px;     right: 25%;     align-content: center; }  .space {      height: 3000px; }   .soc {     position: fixed;     list-style:none;     top: 0;     right: 50px; } .soc li {     display:inline-block;     padding: 0 5px;  } .soc img {     height: 40px;     width: 55px;     opacity: .7; }  .soc img:hover {     opacity: 1;  }  .feat_head {   position: absolute;     margin: 205px 15%;     width: auto;     height: 550px;     z-index: 30;     border: 10px solid rgba(0,0,0,.7); }  .feat_head img {      width: 100%;     height: 550px;  }   .main_content {     background: #ff7343;     position:absolute;     margin: 815px 15%;     width: auto;     border-radius: 5px;     box-shadow: 0 0 5px black;  /* //// /    /// /   ///   85%*/   }  .main_content_img {     width: 25%;     display:inline-block;     padding: 2.5%; }   .main_content_img img {     border-radius: 5px;  }  .main_content_copy {      width: 45%;     height: 500px;     padding: 0 10%;     display:inline-block;     vertical-align:top;     text-align: left;     padding-top: 100px; }  .main_content_copy article {     height: 500px;     width: 100%;  }  .main_content_copy h2 {      text-align: center; }  .main_content_copy article:first-letter {      font-size: 1.3em;     font-weight:bold;  } 

///// problem began here

.main_foot {      background: #ff7343;     position:absolute;     margin: 1915px 15% 0 !important;     width: auto;     height: 900px;     border-radius: 5px;     box-shadow: 0 0 5px black; } 

try these changes

css change

.feat_head {     margin: 205px 15%;     width: auto;     height: 550px;     z-index: 30;     border: 10px solid rgba(0,0,0,.7); } .main_content {     display: block;     float: left;     background: #ff7343;     width: auto;     border-radius: 5px;     box-shadow: 0 0 5px black; } .main_content_copy {     width: 45%;     height: 500px;     padding: 0 10%;     display:block;     float: left;     vertical-align:top;     text-align: left;     padding-top: 100px; } .main_foot {     clear: both;     display: block;     float: left;     background: #ccc;     width: 100%;     height: 900px;     border: 1px solid #f00; } 

html change

<!--        foooter . php begin --- > 

to

<!--        foooter . php begin ---> 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -