As an alternative:
- you can use
overflow: hidden; for the image. It will hide the alt text that crosses the border of the image. Although he will not wrap the text. - also reduce the size of the text.
#idlogo img { overflow: hidden; font-size: 10px; }
The goal of alt Text is to show the screen reader about the image, so I think that reducing the font size and hiding overflow should work best. But of course, avoid using very long text.
source share