html - Div overlap of another div -


i have been trying solve problem have on website building. website displays correctly on desktop browser when normal size, when make browser window small or view site on mobile phone, have layer overlaps footer div on page.

please @ image of problem:

enter image description here

the layer div overlaps footer has class of logodiv, here css code it:

 .logodiv{     text-align: center;     top: 50%;     transform: translatey(-50%);     font-family: 'quicksand', sans-serif;     font-size: 20px;     display: block; } 

the heading has id name of logoheadline , has following css

#logoheadline{    font-family: 'anton', sans-serif;     font-size: 58px;     position: relative;    } 

lastly footer has class name of footerz , has following css:

.footerz{     background-color: #323232;     min-height: 200px;     color: white;     font-family: 'quicksand', sans-serif; } 

the intro-p div has following css:

.intro-p{     font-family: 'quicksand', sans-serif;     font-size: 20px;     position: relative; } 

this html have:

<section id="section01" class="demo">      <div class="col-md-12" id="main-bd">              <div class="col-md-4 col-md-offset-1 logodiv" >                  <div id="mycarousel" class="carousel slide" data-ride="carousel">   <!-- indicators -->   <ol class="carousel-indicators">     <li data-target="#mycarousel" data-slide-to="0" class="active"></li>     <li data-target="#mycarousel" data-slide-to="1"></li>     <li data-target="#mycarousel" data-slide-to="2"></li>       <li data-target="#mycarousel" data-slide-to="3"></li>    </ol>    <!-- wrapper slides -->   <div class="carousel-inner">       <div class="item active">        <img class="img-responsive center-block" src="images/activities.png" height="470" width="245" alt="activities">     </div>      <div class="item">        <img class="img-responsive center-block" src="images/chat.png" height="470" width="245" alt="activities">     </div>        <div class="item">        <img class="img-responsive center-block" src="images/map.png" height="470" width="245" alt="activities">     </div>        <div class="item">        <img class="img-responsive center-block" src="images/hot.png" height="470" width="245" alt="activities">     </div>   </div>    <!-- left , right controls -->   <a class="left carousel-control" href="#mycarousel" data-slide="prev">     <span class="glyphicon glyphicon-chevron-left"></span>     <span class="sr-only">previous</span>   </a>   <a class="right carousel-control" href="#mycarousel" data-slide="next">     <span class="glyphicon glyphicon-chevron-right"></span>     <span class="sr-only">next</span>   </a> </div>               </div>          <div class=" col-md-6 logodiv" >             <br>             <h1 id="logoheadline">getting has never been easier! </h1>                 <p class="intro-p">create events , activities, find hot new places visit, see friends hang out within spaze app!</p>              <button class="gbtnhollow">download</button><br><br><br>            </div>         <a href="#section02" style=" font-family: 'quicksand', sans-serif;"><span></span></a>      </div>      </section>       <section id="section02" class="demo2">      <div class="container-fluid footerz">      <div class="col-md-2">     <br>         <ul id="footerul">         <li><a href='privacy.html'>privacy policy</a></li>         <li><a href='terms.html'>terms &amp; conditions</a></li>         <li><a href='#'>ads</a></li>         </ul>      </div>            <div class="col-md-4">             <br>             <div class="col-md-4 col-md-offset-2">                 <ul id="footerul">                     <li><a href="#">contact us</a></li>                     <li><a href='#'>our story</a></li>                     <li><a href='#'>press kit</a></li>                  </ul>              </div>         </div>           <div class="col-md-4">             <br>             <div class="col-md-12 ">                 <ul id="footerul">                      <li><a href='#'>jobs</a></li>                     <li><a href='#'>angel investors</a></li>                  </ul>              </div>         </div>      <div class="col-md-2">    <br>         <!--this social media buttons need go.-->         <ul class="list-inline" >             <li><a href="#"> <img src="./images/facebook.png" alt="facebook" width="35" height="35"> </a></li>             <li><a href="#"> <img src="./images/instagram.png" alt="instagram" width="35" height="35"> </a> </li>             <li><a href="#"> <img src="./images/twitter.png" alt="instagram" width="35" height="35"> </a> </li>         </ul>      </div><br>           <div class="col-md-12" style="text-align: center;">         <br>           </div>      </div>       </section> 

i have been scratching head while, can tell me missing?

remove top :50% logindiv. top used position property of css may have created problem in code. avoid using position forcefully. use them when required.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -