I am trying to center the image in every <li> without any success.
I tried using display: table; on the <ul> tag and display: table-cell; on the <li>.
I tried using display: table; on the <li> tag and display: table-cell; on the <img> tag.
Neither of these approaches worked.
<div class="slider-container"> <div class="scroll-left"></div> <div class="slider"> <ul class="slides"> <li class="slide"> <img src="http://exaple.com/Button.png" class="makeBig"> </li> <li class="slide"> <img src="http://exaple.com/Button.png" class="makeSmall"> </li> <li class="slide"> <img src="http://exaple.com/wp-content/themes/twentyfifteen-child/images/ginger_Button.png" class="makeBig"> </li> <li class="slide"> <img src="http://exaple.com/Button.png" class="makeSmall"> </li> <li class="slide"> <img src="http://exaple.com/Button.png" class="makeBig"> </li> </ul> </div> <div class="scroll-right"></div> </div> jsfiddle: http://jsfiddle.net/8b47wong/