javascript - Aligning Image Slideshow button HTML5 -


so have trouble arranging images line next 1 horizontally. slideshows modified act buttons instead. used easyslider javascript perform function, not sure if easyslider might cause. thing line down vertically. tried adding "float : left" css id element , attach images no avail.

 <div id="sliderparent">              <div class="slider">         <ul>                             <li>                 <a href="#article1"><img class="sliderimg"src="images/example-slide-1.jpg" /></a></li>             <li>                     <a href="#article1"><img class="sliderimg"src="images/example-slide-2.jpg" /></a></li>             <li>                         <a href="#article1"><img class="sliderimg"src="images/example-slide-3.jpg" /></a></li>             <li>                             <a href="#article1"><img class="sliderimg"src="images/example-slide-4.jpg" /></a></li>          </ul>     </div> 

and here css

#sliderparent { width: 800px; align-content:center; text-align:center; 

}

.slider ul, .slider li{     margin:0;     padding:0;     list-style:none;       position:initial;      } .slider li{      /*          define width , height of list item (slide)         entire slider area adjust according parameters provided here     */      width:200px;     height:100px;     overflow:hidden;       float:left;     }        .sliderimg  {      width:200px;        height: auto;        float:left; } 

i not sure if due list arrangement.

can shed light on cause why images aren't aligning way want them to?

there doesn't appear problem. code works. made slight adjustments below demonstrate working. having issues particular browser?

http://jsfiddle.net/rkt2k/

<div id="sliderparent">     <div class="slider">     <ul>                         <li><a href="#article1"><img class="sliderimg"src="images/example-slide-1.jpg" /></a></li>         <li><a href="#article1"><img class="sliderimg"src="images/example-slide-2.jpg" /></a></li>         <li><a href="#article1"><img class="sliderimg"src="images/example-slide-3.jpg" /></a></li>         <li><a href="#article1"><img class="sliderimg"src="images/example-slide-4.jpg" /></a></li>     </ul> </div> 

and css:

#sliderparent {     width: 800px;     text-align: center; } .slider ul, .slider li {     margin: 0;     padding: 0;     list-style: none;     position: initial;  } .slider li {     /* define width , height of list item (slide)        entire slider area adjust according parameters provided here */      width: 200px;     height: 100px;     overflow: hidden;      float: left; }        .sliderimg {      width: 200px;      height: auto;      float: left;      /* make images blocks temporarily */     display: block;     height: 100px;     background: #ccc; } 

Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -