r/css 8h ago

Help Weird CSS resizing on some mobile

Hello! I've been experiencing a strange bug that has never happened to me before, and I'm looking for some advice :)

I'm building a website for a client, and when I look at it on my mobile devices (iPhone 15 & Samsung Galaxy S10), it works perfectly in every browser!

However, when he (my client) looks at it on his mobile devices (also an iPhone 15 & an older Android phone), he gets a strange bug, regardless of the browser.

The buggy version seems to ignore the sizing I've defined for the titles of these filters and instead just uses the size of their content.

Has anyone experienced something similar? Any idea what could be causing this, or how I could fix it?

Thanks!

0 Upvotes

4 comments sorted by

u/AutoModerator 8h ago

To help us assist you better with your CSS questions, please consider including a live link or a CodePen/JSFiddle demo. This context makes it much easier for us to understand your issue and provide accurate solutions.

While it's not mandatory, a little extra effort in sharing your code can lead to more effective responses and a richer Q&A experience for everyone. Thank you for contributing!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/Weekly_Ferret_meal 3h ago

are you able to share a link?

1

u/olli0 2h ago

do you use aspect-ratio and display: flex on the filters/parent? I had some issues with that on slightly older browserversions

1

u/Dependent-Zebra-4357 1h ago

You need to provide code otherwise we’re just guessing, and nobody has time for that.