Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Outlook Web App "display :none" not working

I am designing a responsive email template and i have a slight problem on Outlook Web app. I found out that it removes classes so there is no point in using media queries so i try to hide a tr element like this :

<tr style="mso-hide:all;
           display:none;
           height:0;
           width:0px;
           max-height:0px;
           overflow:hidden;
           line-height:0px;
           float:left;">

But it still shoes up. Any Ideas?

like image 939
mathew Avatar asked Sep 22 '14 12:09

mathew


2 Answers

You can add the

 <tr style="visibility: hidden"></tr>

However, this only makes it not visible... It is still there and taking up space

like image 84
Wijnand M Avatar answered Oct 23 '22 07:10

Wijnand M


Use such class:

.hide {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}
like image 40
Igor Khripunov Avatar answered Oct 23 '22 08:10

Igor Khripunov