CSS an image is displayed super small in firefox

Viewed 41

I noticed today a strange behavior of Firefox, which I can not explain. An element (img) which is inside a div box and has a height : 50% will not be half the size of the parent.

firefox view

Instead it has a size of only 2 - 3 px (the parent is at least 80px high at my resolution). In Chrome everything is displayed as expected.

chrome view

HTML Code:

html code

CSS:

css of image css of parent

Have also searched for this behavior on google. The only thing I found was a firefox setting (about:config browser.enable_automatic_image_resizing) for automatic scaling of graphics. But this did not fix the problem.

Thanks for your help!

0 Answers
Related