html - Maintain elements placements as screen resolution changes -


this site www.foxboxretail.com . in front banner slider there problem css code. problem banner navigations placements gets change screen size gets change f.g.

1360px resolutionv (it's perfect)

enter image description here

1920px resolution (navigation position of slider changed.)

enter image description here in above image can see navigation gets upper side mess design. how maintain screen size?

css

.slide-part{     width:100%;     max-width:1600px;     margin:10px auto 0 auto;     min-height:100px;     max-height:400px;     position:relative }  .fadein {     padding-top: 27%;     position:relative;      width:100%;      max-width:1600px;      margin:0 auto;      min-height:60px; }  .fadein img {     position:absolute;      left:0;      top:0;      bottom:0;     right:0;     width:100%;      width: auto\9;     object-fit:fill;     height:400px }  .banner-links {     position: absolute;     bottom: 0;     width: 100%;     background: rgba(0,0,0,0.6); }  .banner-links-inner {     width:auto;     max-width:1000px;     margin: 0 auto 0 auto; }  .banner-nav {     margin: 0;     padding: 0; }  .banner-nav li {     list-style: none;     float: left;     font-size: 1.2em; }  .banner-nav li {     color: #fff;     text-decoration: none;     padding: 15px 50px 15px 50px;     display: block;     border-right: 1px solid #fff; } 

html

<div class="slide-part">         <!--slider-starts-->         <div class="fadein">              <img id="img01" style="cursor: pointer; display: block;" src="images/products/1.jpg" />             <img id="img02" style="cursor: pointer; display: none;" src="images/products/2.jpg" />             <img id="img03" style="cursor: pointer; display: none;" src="images/products/3.jpg" />             <img id="img04" style="cursor: pointer; display: none;" src="images/products/4.jpg" />         </div>         <!--slide-ends-->         <div class="banner-links">             <div class="banner-links-inner">                 <ul class="banner-nav">                     <li><a class="img1 current" data-id="img01" href="#">helicopter tour mumbai</a></li>                     <li><a class="img2" data-id="img02" href="#">jbl flip ii offer</a></li>                     <li><a class="img3" data-id="img03" href="#">dominos 20% off</a></li>                     <li class="no-border"><a class="img4" data-id="img04" href="#">paragliding</a></li>                 </ul>             </div>         </div>     </div> 

adding max-height slider images should want.

.fadein img {  max-height:468px;  } 

Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -