Page 1 of 1
Changing the size of images in a carousel
Posted: Mon Oct 27, 2014 3:38 pm
by Xavier U
I am creating a carousel set to the images property. I inserted the image URL, but now I've found that the images do not stretch across the screen.
I would like the orange image to fit to the width of the screen, just like the blue image at the top of the screen. How do I do this while keeping the image a part of the carousel?
Changing the size of images in a carousel
Posted: Mon Oct 27, 2014 4:16 pm
by Evgene Karachevtsev
Hello Xavier,
You can change picture's width to 100% in the properties of the picture.
Or please write the following code in css:
prediv[dsid="mobilecarousel_X"] img {
width: 100%;
}/pre
Where mobilecarousel_X is the name of your carousel component
Changing the size of images in a carousel
Posted: Tue Oct 28, 2014 4:18 pm
by Xavier U
I've created a new CSS page to insert the code, with "mobilecarousel_24" as the id name, but it has not achieved the desired effect. It seems the scrolling animation is now 100% width of the screen, but the images are still the same size.
Did I do something wrong with the code?:
Changing the size of images in a carousel
Posted: Tue Oct 28, 2014 5:04 pm
by Evgene Karachevtsev
Xavier,
Could you please provide us with the public link to your project?
Changing the size of images in a carousel
Posted: Wed Oct 29, 2014 2:09 pm
by Xavier U
Changing the size of images in a carousel
Posted: Thu Oct 30, 2014 4:11 am
by Yurii Orishchuk
Hi Zavier,
Here is solution for you:
Set carousel item type = "html" http://prntscr.com/5167rs/direct
Put image component inside this carousel tiem.
In image component properties set in Dimensions field values "100%", "auto". http://prntscr.com/5167yy/direct
That's all.
Regards.
Changing the size of images in a carousel
Posted: Thu Oct 30, 2014 3:30 pm
by Xavier U
Thanks Yurii, that worked perfectly.