I have created this slider using motiongallery.js (CMotion Image Gallery) from Dynamic Drive. I’m
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Add the following class to your CSS file. That must fix the whole thing right up.
.capty-wrapper{display:inline-block;}The problem is that
<a>and<img>are inline elements.Capty uses
<div>s for its caption rendering which is a block element which messes up the layout of the gallery.The above CSS makes the containing div of capty into an inline element.
Also consider Billy Moat’s comment and use
$('.caption').capty();for adding captions to ur image lements as ids are supposed to be unique.