I am making a website for myself, and whilst making it I thought it would be cool to have a good slider. I was going to go for CodaSlider, but found that a bit too complicated interms of adding thumb nails as hotlinks for each slider transition.
I then came across NivoSlider and seems pretty decent. I've got part of it working on my heavily under construction website. The slides and the positioning of the slider are fine, but I am having trouble positioning the navigation buttons. on either side - like in the nivoslider examples on the developer's website.
Don't know if anyone could point me in the right direction. I will eventually evolve it to use thumbnails as image links instead of bullet point style on the demo and will put on a caption, but for now I want to do it one step at a time.
The images i've used are the size in the CSS below: Height 200 & width 500 pixels. Useing Margin 0 auto to central it in the page by containing the slider in a slider wrapper. I'd like to use the arrows ( I will change once I understand the code) that were in the download pack which are 30x60pixel image sprite.
I then came across NivoSlider and seems pretty decent. I've got part of it working on my heavily under construction website. The slides and the positioning of the slider are fine, but I am having trouble positioning the navigation buttons. on either side - like in the nivoslider examples on the developer's website.
Don't know if anyone could point me in the right direction. I will eventually evolve it to use thumbnails as image links instead of bullet point style on the demo and will put on a caption, but for now I want to do it one step at a time.
The images i've used are the size in the CSS below: Height 200 & width 500 pixels. Useing Margin 0 auto to central it in the page by containing the slider in a slider wrapper. I'd like to use the arrows ( I will change once I understand the code) that were in the download pack which are 30x60pixel image sprite.
Code:
<div id="slider_wrapper" >
<div id="slider" class="nivoslider">
<img src="../images/slide1.jpg" alt=""/>
<img src="../images/slide2.jpg" alt=""/>
<img src="../images/slide3.jpg" alt=""/>
</div>
</div>
Code:
#slider_wrapper {margin: 0 auto; height: 200px; width: 500px;}
#slider {position: relative; height: 200px; width: 500px}
#slider img {
position:absolute;
top:0px;
left:0px;
display:none;
}
#slider a {
border:0;
display:block;
}
.nivoSlider {
position:relative;
}
.nivoSlider img {
position:absolute;
top:0px;
left:0px;
}
/* If an image is wrapped in a link */
.nivoSlider a.nivo-imageLink {
position:absolute;
top:0px;
left:0px;
width:100%;
height:100%;
border:0;
padding:0;
margin:0;
z-index:60;
display:none;
}
/* The slices in the Slider */
.nivo-slice {
display:block;
position:absolute;
z-index:50;
height:100%;
}
/* Caption styles */
.nivo-caption {
position:absolute;
left:0px;
bottom:0px;
background:#000;
color:#fff;
opacity:0.8; /* Overridden by captionOpacity setting */
width:100%;
z-index:89;
}
.nivo-caption p {
padding:5px;
margin:0;
}
.nivo-caption a {
display:inline !important;
}
.nivo-html-caption {
display:none;
}
/* Direction nav styles (e.g. Next & Prev) */
.nivo-directionNav a {
position:absolute;
top:45%;
z-index:99;
cursor:pointer;
}
.nivo-prevNav {
left:0px;
}
.nivo-nextNav {
right:0px;
}
/* Control nav styles (e.g. 1,2,3...) */
.nivo-controlNav a {
position:relative;
z-index:99;
cursor:pointer;
}
.nivo-controlNav a.active {
font-weight:bold;
}