Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unslider dots function not showing

I'm building a website where there is a slider on top, I wanted to use the unslider because it seems very easy.

According to the site you should just use the function- dots: true

I have that, but my slider doesn't have any slides.

The site where I'm trying to set things up.

(its a school project)

like image 976
Legarndary Avatar asked Jun 06 '13 12:06

Legarndary


2 Answers

Try adding some CSS.

.dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  text-align: center;
}

.dots li {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 4px;
  text-indent: -999em;
  border: 2px solid #fff;
  border-radius: 6px;
  cursor: pointer;
  opacity: .4;
  -webkit-transition: background .5s, opacity .5s;
  -moz-transition: background .5s, opacity .5s;
  transition: background .5s, opacity .5s;
}

.dots li.active {
  background: #fff;
  opacity: 1;
}
like image 59
jgv Avatar answered Nov 06 '22 21:11

jgv


Just go to unslider.css file and add:

.unslider {
    overflow: auto;
    margin: 0;
    padding: 0;
    /*Added*/
    position: relative;
}

And in unslider-dots.css add:

/*added*/
.unslider-nav{
    position: absolute;
    width: 100%;
    bottom: 2%;
}

You just gotta say on your script nav:true and dots:true.

Hope it works for you too.

like image 1
N. Ayancan Avatar answered Nov 06 '22 22:11

N. Ayancan