Skip to content
Discussion options

You must be logged in to vote

Sorry, my English is not so good. For fixing the spacing issue, you can use flexbox instead of float. This helps with better spacing between images. Here’s an example:

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pic {
  flex: 1 1 30%;
  max-width: 30%;
  padding: 0;
}

@media screen and (max-width: 600px) {
  .pic {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

I hope you mark my answer as correct.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@Ethan-Mircheff
Comment options

This comment was marked as off-topic.

@Ethan-Mircheff
Comment options

@ricardious

This comment was marked as off-topic.

@Ethan-Mircheff
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Programming Help Discussions around programming languages, open source and software development
3 participants