Open JasOcher opened 11 years ago
Here's a screenshot of what I'm talking about.
try assigning 100% sizes on your image-tag like:
style="max-width:100%; max-height:100%"
worked for me.
Or you choose the CSS way:
.roundabout-holder li img { max-width:100%; max-height:100%; margin:auto; display:block; }
Unfortunately that didn't work. I got it working using some other CSS tho. Thanks for the input!
Any chance you could post that CSS here to help us out who are having the same issue =)
You bet. I actually just snagged it from another example and modified it to fit my stuff. I'll add the HTML as well for some context.
<div id="roundAbout"> <ul> <li><img src="img1.jpg" alt="" /></li> <li><img src="img2.jpg" alt="" /></li> <li><img src="img3.jpg" alt="" /></li> <li><img src="img4.jpg" alt="" /></li> <li><img src="img5.jpg" alt="" /></li> </ul> </div>
list-style: none;
padding: 0;
margin: 0;
width: 43em;
height: 30em;
}
height: 23em;
width: 35em;
text-align: center;
cursor: pointer;
}
width: 100%;
}
I got it to scale properly by changing the moveable item's sizes to percentages:
.roundabout-moveable-item { height: 100%; width: 100%; cursor: pointer; background-color: transparent; }
Howdy, I'm having a bit of an issue with the scaling of non-focused images. My roundabout is all images. The images are all the same height but Roundabout is not scaling down the ones that are not in focus, so it looks like one big image moving around. I was under the impression that Roundabout would scale down the ones that are not in focus. Is this not the case?