html - Landing page occupying the entire height of the monitor - for every resolution -


i want effect on website: http://make-lemonade.co/themes/kodax/ landing page occupying entire height of monitor

to page use bootstrap 3.1.1.

my code:

html:

    <div id="panorama-home">         <div class="container">             <div class="header">                 <ul class="nav nav-pills pull-right">                     <li class="active"><a href="#">home</a></li>                     <li><a href="#">page 1</a></li>                     <li><a href="#">page 2</a></li>                 </ul>                 <h3 class="text-muted">                     <img src="img/logo1.png" />                 </h3>             </div>              <div class="row">                 <div class="col col-md-12">                     <h1 style="font-size:52px; padding-top:140px; text-align:center">                         text field                     </h1>                     <!--<p style="margin-left:160px; color:white;">lorem ipsum dolor sit amet, consectetur adipisicing elit, sed eiusmod tempor incididunt ut labore et dolore magna aliqua. lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>-->                 </div>             </div>          <div id="boxlinks" class="arrow" style="position: relative; text-align:center; padding-top:70px;padding-bottom:30px;">             <a href="#marketing-text"><img src="img/down-arrow.png" style="width:100px; height:100px;"/></a>         </div>     </div>  </div> 

css:

#panorama-home {     background: url("img/home.jpg") no-repeat center center;      border-bottom: 1px solid #eeeeee;     color: #ffffff;     display: block;     padding:120px 0;     position:relative;     -webkit-background-size: cover;     -moz-background-size: cover;     -o-background-size: cover;     background-size: cover } 

set height 100vh

#panorama-home {     ...     height: 100vh; } 

Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

inno setup - TLabel or TNewStaticText - change .Font.Style on Focus like Cursor changes with .Cursor -