Minifrontpage on phones
- Posted by mario (1) Offline
How to show two slides side-by-side on Phones. Or one and a half. Not only one, with the possibility that they will also run on phone as on desktop, instead of appearing all stacked vertically.
I try this, but doesn't work:
@media screen and (max-width: 576px) {
div[class*="mfp-"] .owl-stage,
div[class*="mfp-"] .slick-track,
div[class*="mfp-"] .mfp-items-wrapper,
div[class*="mfp-"] .mfp-carousel-inner {
display: grid !important;
grid-template-columns: repeat(2, 1fr) !important;
width: 100% !important;
transform: none !important;
gap: 10px !important;
}
div[class*="mfp-"] .owl-item,
div[class*="mfp-"] .slick-slide,
div[class*="mfp-"] .mfp-item {
width: 100% !important;
max-width: 100% !important;
display: block !important;
float: none !important;
}
}
1 month 2 weeks ago - 1 month 2 weeks ago #1
by mario
I try this, but doesn't work:
@media screen and (max-width: 576px) {
div[class*="mfp-"] .owl-stage,
div[class*="mfp-"] .slick-track,
div[class*="mfp-"] .mfp-items-wrapper,
div[class*="mfp-"] .mfp-carousel-inner {
display: grid !important;
grid-template-columns: repeat(2, 1fr) !important;
width: 100% !important;
transform: none !important;
gap: 10px !important;
}
div[class*="mfp-"] .owl-item,
div[class*="mfp-"] .slick-slide,
div[class*="mfp-"] .mfp-item {
width: 100% !important;
max-width: 100% !important;
display: block !important;
float: none !important;
}
}
Last edit: 1 month 2 weeks ago by mario.
Please Log in or Create an account to join the conversation.
- Posted by TemplatePlazza (5468) Offline
Hi Mario, sorry for the late reply. I think this is not something controlled by CSS, it's probably controlled by JavaScript instead.
Just to confirm, are you using the Minifp Carousel theme? Could you also share your website URL so I can take a look?
1 month 2 weeks ago #2
by TemplatePlazza
Just to confirm, are you using the Minifp Carousel theme? Could you also share your website URL so I can take a look?
Please Log in or Create an account to join the conversation.