DEV Community

loading...

Discussion on: The strange <img> gap in HTML

Collapse
prisny02 profile image
นี่ด็อกซอนไง

I always use float: left to the image to fix this issue. But still not a solid sulution.

Collapse
christiankaindl profile image
Christian Kaindl Author

Yeah, float: left is a fast fix but it can also brak a layout very easily. A good alternative can be display: inline-flex instead of using float.

Collapse
Sloan, the sloth mascot
Comment deleted