Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to remove huge gap from layout on mobile? #104

Open
JanAbe opened this issue Sep 22, 2024 · 0 comments
Open

How to remove huge gap from layout on mobile? #104

JanAbe opened this issue Sep 22, 2024 · 0 comments

Comments

@JanAbe
Copy link

JanAbe commented Sep 22, 2024

I got a masonry layout which works fine on desktop but on mobile these huge gaps appear and I don't know how to fix it.

Here are some screenshots.

The first two pictures get placed correctly underneath each other:
image

But then this huge gap appears and I dont know why.
image

It might have something to do with my css styling?
Because when I remove my styling:

img {
  width: 100%;
}

the images get placed correctly underneath each other.

The problem then is that the images are too big.

Does someone know how to remove the huge gap?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant