DEV Community

Bokepei
Bokepei

Posted on

Reprint:Fighting the Space Between Inline Block Elements

I have encountered this situation several times, usually I will change the parent font-size: 0; to solve this.

I found a more complete answer:
https://css-tricks.com/fighting-the-space-between-inline-block-elements/
https://translate.googleusercontent.com/translate_c

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay