-
AuthorPosts
-
February 3, 2017 at 10:28 am #1007865
Hello, I am trying to make a new Slideshow module but i can not make it to the size i want. I add into 2 Groups pictures of size 300 x 250 but the module zoom the pictures and take another size? How to specify the size of the this module?
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
February 3, 2017 at 10:38 am #1007868Hello
Your website is offline , at which url is possible to see your new module ?
February 3, 2017 at 11:07 am #1007873This reply has been marked as private.pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
February 3, 2017 at 11:37 am #1007883Hello
I created a custom css class in custom.css file (contain) and added this class to your slideshow module in module class suffix , published in hotels page , below code i added:
.contain .block-slideshow-item .block-bg { background-size:contain!important; background-position:top!important; } .contain .carousel-inner { height:200px; }
You can change the height as you prefer. that’s the only way to have custom width and height for slideshow.
Best regards
February 3, 2017 at 1:38 pm #1007913Thank you very much. I made it and it works fine in Large Layout but In responsive layouts is not working good
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
February 3, 2017 at 3:48 pm #1007934Hello
You can use media queries for this adding to the custom.css file other codes
Take a look HERE
So for example to set it on mobiles devices you can do in this way.
@media screen and (max-width: 430px) { .contain .block-slideshow-item .block-bg { background-size:contain!important; background-position:top!important; } .contain .carousel-inner { height:200px; } }
and use other media queries for other screen sizes.
Best regards
February 3, 2017 at 4:41 pm #1007945Thank you so much. Just to have clear the sizes, can you make me a sample for Iphone 5 or 6?
-
AuthorPosts
This topic contains 7 replies, has 2 voices, and was last updated by pavit 7 years, 9 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum