Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Yahoo transforms height into min-height

I have just stumbled across the fact that Yahoo mail is transforming all height attributes into min-height. Is there a workaround for this?

<div style="width:55px; height:55px; overflow:hidden;">
   <img alt="user pic" src="assets/main.jpeg" width="55px" />
</div>

The goal of the code above is to hide the bottom part of the image if it's higher than 55px. I've tested this in hotmail and aol and it works fine. Only Yahoo seems to transform my height into min-height:

<div style="width:55px; min-height:55px; overflow:hidden;">
like image 632
Lucia Ivascu Avatar asked Jul 11 '14 23:07

Lucia Ivascu


People also ask

What does min height 100% do?

In fact, height 100% corresponds to height of the screen minus the address bar at top of screen, while 100vh corresponds to height of the screen without the address bar.

How do you reset your minimum height?

CSS tip: To reset a min-height or min-width declaration, set it to "0", not "auto". For max-height/width, the initial value is "none".

Why is my Yahoo email in HTML?

Yahoo Mail turns to basic mode automatically when it senses a slow connection or a browser that doesn't know how to handle the full-featured interface.


1 Answers

direct height attribute without style works for yahoo like

<div height="55px" style="width:55px; overflow:hidden;">
like image 122
Muhammad Faisal Iqbal Avatar answered Oct 20 '22 22:10

Muhammad Faisal Iqbal