How can I fix my blog slider sizing issue for mobile view?

Hello!

I had a web design team implement a blog slider onto my homepage - it looks fine on desktop/ipad but is not sizing correctly for mobile.

here is the code:

* {box-sizing: border-box} body {font-family: Verdana, sans-serif; margin:0} .mySlides {display: none} img {vertical-align: middle;} .row{ display:flex; } .col-sm-6{ width:50%; } /* Slideshow container */ .slideshow-container { max-width: 1000px; position: relative; margin: auto; } /* Next & previous buttons */ .prev, .next { cursor: pointer; position: absolute; top: 50%; width: auto; padding: 16px; margin-top: -22px; color: white; font-weight: bold; font-size: 18px; transition: 0.6s ease; border-radius: 0 3px 3px 0; user-select: none; } /* Position the "next button" to the right */ .next { right: 0; border-radius: 3px 0 0 3px; } /* On hover, add a black background color with a little bit see-through */ .prev:hover, .next:hover { background-color: rgba(0,0,0,0.8); } /* Caption text */ .text { color: #f2f2f2; font-size: 15px; padding: 8px 12px; position: absolute; bottom: 8px; width: 100%; text-align: center; } /* Number text (1/3 etc) */ .numbertext { color: #f2f2f2; font-size: 12px; padding: 8px 12px; position: absolute; top: 0; } /* The dots/bullets/indicators */ .dot { cursor: pointer; height: 15px; width: 15px; margin: 0 2px; background-color: #bbb; border-radius: 50%; display: inline-block; transition: background-color 0.6s ease; } .active, .dot:hover { background-color: #717171; } /* Fading animation */ .fade { animation-name: fade; animation-duration: 1.5s; } @keyframes fade { from {opacity: .4} to {opacity: 1} } /* On smaller screens, decrease text size */ @media only screen and (max-width: 40px) { .prev, .next,.text {font-size: 8px} }

COMPLEXION 101

Lorem Ipsum is simply dummy text of the printing and typesetting industry. when an unknown printer took a galley of type and scrambled it to make a type specimen book.

READ & SHOP THE FILE
2 / 3
Caption Two
3 / 3
Caption Three



{% schema %} { "name": "Featured Blog Slider", "class": "index-section", "settings": [ { "type": "text", "id": "title", "label": "Heading", "default": "Blog posts" }, { "id": "blog", "type": "blog", "label": "Blog" }, { "type": "range", "id": "post_limit", "label": "Posts", "min": 3, "max": 12, "step": 3, "default": 3 }, { "type": "checkbox", "id": "blog_show_author", "label": "Show author", "default": false }, { "type": "checkbox", "id": "blog_show_date", "label": "Show date", "default": true }, { "type": "checkbox", "id": "show_view_all", "label": "Show 'View all' button", "default": false } ], "presets": [ { "name": "Featured Blog Slider", "category": "Blog", "settings": { "blog": "News", "post_limit": 3 } } ] } {% endschema %}

any advice on what I need to change it to?
Thank you!

Hi @shannashopbandb ,

Our approach with smaller screen size is usually change the layout, from row to column on mobile size. Please add the code below before the

.row {
    display: flex;
    flex-direction: column;
    align-items: center;
}

hello - thank you for this!

i’ve gone ahead and entered it - the format is slightly better but its
still not appearing correctly on mobile…

@shannashopbandb ,

You have to fixed your custom code. Unfortunately, this needs more than copy/paste to work right. I would suggest to hire someone to fix this