Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How can I get slick dots to position inside of the image?

My slick dots are showing below the image and aligned to the left. I need them to show centered on the image towards the bottom. I can’t figure this out but feel I am close. On my product pages, they show just how I need them but not on this page.

See CSS/HTML below. Any ideas?

$('.street-team-slider').slick({
  slidesToShow: 1,
  slidesToScroll: 1,
  infinite: true,
  dots: true,
  prevArrow: '<div class="hc-arrow-left"><i class="fa fa-angle-left" aria-hidden="true"></i></div>',
  nextArrow: '<div class="hc-arrow-right"><i class="fa fa-angle-right" aria-hidden="true"></i></div>',
});
<!-- Street Team Slick Dots -->.street-team-slider ul.slick-dots {
  position: absolute;
  bottom: 15px;
  left: 0;
  right: 0;
  text-align: center;
  width: 100%;
  padding: 0;
  margin-top: 0px;
  margin-bottom: 0;
}

.street-team-slider .slick-dots li {
  display: inline-block;
  margin: 0 12px;
  font-size: 14px;
  color: #222;
}

.street-team-slider .slick-dots li button {
  font-size: 0px;
  height: 10px;
  width: 10px;
  padding: 0;
  line-height: 0;
  border-radius: 100%;
  border: 2px solid #F00;
  background-color: transparent;
  cursor: pointer;
  opacity: 1;
}

.street-team-slider .slick-dots li.slick-active button {
  background-color: #fff;
  opacity: 1;
}
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.css"/>

<!-- Hero Slider Start-->
<div class="street-team-slider">
  <div><img src="https://cdn.shopify.com/s/files/1/1317/8733/files/Our_Story.jpg?v=1480890581"></div>
  <div><img src="https://cdn.shopify.com/s/files/1/1317/8733/files/Our_Story.jpg?v=1480890581"></div>
  <div><img src="https://cdn.shopify.com/s/files/1/1317/8733/files/Our_Story.jpg?v=1480890581"></div>
</div>

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script type="text/javascript" src="//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.min.js"></script>

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Make that dots parent div absolute and make it in center of the main image div and make it relative.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading