DEV Community

loading...

Discussion on: The strange <img> gap in HTML

Collapse
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.

Collapse
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.