DEV Community

Discussion on: The strange <img> gap in HTML

lexlohr profile image
Alex Lohr

In most cases, display: inline-block is what you want (unless you want float, which inherently formats as block content.

christiankaindl profile image
Christian Kaindl Author

For me inline-block does not fix this particular issue. But inline-block or inline-flex can be used and they also give more flexibility.