javascript - Image doen't take whole the header size -
i want make slider , consists 3 images , i'm facing problem.
i want put image top of head .. made navbar height :0 , put navbar above header ..
you can see code , , image show need exactly
$('.header').height($(window).height());
.my-navbar { height: 0; }
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <body> <div class="my-navbar"> <div class="my-container"> <div class="user"> <i class="fa fa-user-circle-o" aria-hidden="true"></i> <a href="#" class="upper">login</a> <span class="separator">|</span> <a href="#" class="upper">register</a> </div> <div class="clearfix"></div> <div class="social"> <!-- social , search icon--> <a href="#"><i class="fa fa-facebook" aria-hidden="true"></i></a> <a href="#"><i class="fa fa-instagram" aria-hidden="true"></i></a> <a href="#"><i class="fa fa-twitter" aria-hidden="true"></i></a> <a href="#"><i class="fa fa-youtube" aria-hidden="true"></i></a> <a href="#"><i class="fa fa-search" aria-hidden="true"></i></a> </div> <div class="clearfix"></div> <div class="links upper txcolor"> <a href="#">news</a> <span>|</span> <a href="#">download</a> <span>|</span> <a href="#">usefull links</a> </div> </div> </div> <div class="header"> <!--<div class="slider"> <div class="my-container"> <div class="slider-images"> </div> <div class="slider-text"> <h3>four wheels move body</h3> <h1> 2 wheels move soul</h1> </div> </div> </div> --> <img src="images/motors/m1.png"> </div> <div class="menu"> <img src="images/logo.png" > </div>
.slider { height: 100vh; width: 100%; background-position: 50% 50%; background-size: cover; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-attachment: fixed; padding: 0; margin: 0; }
depending on display properties of slider, might need change them display:table;
Comments
Post a Comment