litmus.com Open in urlscan Pro
54.173.9.204  Public Scan

URL: https://litmus.com/community/discussions/67-hiding-content-from-desktop-version
Submission: On August 25 via api from US — Scanned from DE

Form analysis 7 forms found in the DOM

POST /community/discussions/67-hiding-content-from-desktop-version/comments

<form class="new_comment nested_comment_form" id="new_comment" action="/community/discussions/67-hiding-content-from-desktop-version/comments" accept-charset="UTF-8" data-remote="true" method="post" novalidate="novalidate"><input name="utf8"
    type="hidden" value="✓" autocomplete="off">
  <input autocomplete="off" type="hidden" name="comment[parent_id]" id="comment_parent_id">
  <textarea cols="50" rows="4" class="markdown-source form-control" placeholder="Write your comment" name="comment[content]" id="comment_content"></textarea>
  <footer class="comment-reply-footer">
    <a class="markdown-link" target="_blank" href="/community/markdown">Markdown supported</a>
    <button class="btn btn-primary btn-sm ladda-button" data-style="expand-left" data-spinner-color="#69ab7f">Post Comment</button>
    <a href="#" class="cancel btn btn-link">Cancel</a>
  </footer>
</form>

<form class="form-inline subscribe" id="sub-form" onsubmit="updateMarketo(this);return false;">
  <div class="form-group">
    <input type="text" class="form-control email" name="Email" id="ohyku-ohyku" onfocus="if(this.value == 'Your email address') { this.value = ''; }" onblur="if (this.value=='') this.value = 'Your email address'" value="Your email address"
      required="">
    <input type="submit" value="→" class=" submit">
  </div>
</form>

<form id="mktoForm_1058" style="display: none; font-family: inherit; font-size: 13px; color: rgb(51, 51, 51); width: 1px;" novalidate="novalidate" class="mktoForm mktoHasWidth mktoLayoutLeft">
  <style type="text/css"></style>
  <div class="mktoFormRow">
    <div class="mktoFieldDescriptor mktoFormCol" style="margin-bottom: 5px;">
      <div class="mktoOffset" style="width: 5px;"></div>
      <div class="mktoFieldWrap"><label for="mapssecurity" id="Lblmapssecurity" class="mktoLabel mktoHasWidth" style="width: 100px;">
          <div class="mktoAsterix">*</div>maps-security:
        </label>
        <div class="mktoGutter mktoHasWidth" style="width: 5px;"></div><input id="mapssecurity" name="mapssecurity" maxlength="255" aria-labelledby="Lblmapssecurity Instructmapssecurity" type="text" class="mktoField mktoTextField mktoHasWidth"
          style="width: 150px;"><span id="Instructmapssecurity" tabindex="-1" class="mktoInstruction"></span>
        <div class="mktoClear"></div>
      </div>
      <div class="mktoClear"></div>
    </div>
    <div class="mktoClear"></div>
  </div>
  <div class="mktoFormRow"><input type="hidden" name="UTM_Tracking_Campaign__c" class="mktoField mktoFieldDescriptor mktoFormCol" value="" style="margin-bottom: 5px;">
    <div class="mktoClear"></div>
  </div>
  <div class="mktoFormRow"><input type="hidden" name="UTM_Tracking_Medium__c" class="mktoField mktoFieldDescriptor mktoFormCol" value="" style="margin-bottom: 5px;">
    <div class="mktoClear"></div>
  </div>
  <div class="mktoFormRow"><input type="hidden" name="UTM_Tracking_Source__c" class="mktoField mktoFieldDescriptor mktoFormCol" value="" style="margin-bottom: 5px;">
    <div class="mktoClear"></div>
  </div>
  <div class="mktoFormRow"><input type="hidden" name="UTM_Tracking_Content__c" class="mktoField mktoFieldDescriptor mktoFormCol" value="" style="margin-bottom: 5px;">
    <div class="mktoClear"></div>
  </div>
  <div class="mktoFormRow">
    <div class="mktoFieldDescriptor mktoFormCol" style="margin-bottom: 5px;">
      <div class="mktoOffset" style="width: 5px;"></div>
      <div class="mktoFieldWrap mktoRequiredField"><label for="Email" id="LblEmail" class="mktoLabel mktoHasWidth" style="width: 230px;">
          <div class="mktoAsterix">*</div>Email Address:
        </label>
        <div class="mktoGutter mktoHasWidth" style="width: 5px;"></div><input id="Email" name="Email" maxlength="255" aria-labelledby="LblEmail InstructEmail" type="email" class="mktoField mktoEmailField mktoHasWidth mktoRequired"
          aria-required="true" style="width: 150px;"><span id="InstructEmail" tabindex="-1" class="mktoInstruction"></span>
        <div class="mktoClear"></div>
      </div>
      <div class="mktoClear"></div>
    </div>
    <div class="mktoClear"></div>
  </div>
  <div class="mktoFormRow">
    <div class="mktoFieldDescriptor mktoFormCol" style="margin-bottom: 5px;">
      <div class="mktoOffset" style="width: 5px;"></div>
      <div class="mktoFieldWrap"><label for="subscribe_to_litmus_news" id="Lblsubscribe_to_litmus_news" class="mktoLabel mktoHasWidth" style="width: 230px;">
          <div class="mktoAsterix">*</div>The Newsletter
        </label>
        <div class="mktoGutter mktoHasWidth" style="width: 5px;"></div>
        <div class="mktoLogicalField mktoCheckboxList mktoHasWidth" style="width: 150px;"><input name="subscribe_to_litmus_news" id="subscribe_to_litmus_news" type="checkbox" value="yes"
            aria-labelledby="Lblsubscribe_to_litmus_news Instructsubscribe_to_litmus_news" class="mktoField"><label for="subscribe_to_litmus_news" id="Lblsubscribe_to_litmus_news"></label></div><span id="Instructsubscribe_to_litmus_news"
          tabindex="-1" class="mktoInstruction"></span>
        <div class="mktoClear"></div>
      </div>
      <div class="mktoClear"></div>
    </div>
    <div class="mktoClear"></div>
  </div>
  <div class="mktoFormRow">
    <div class="mktoFieldDescriptor mktoFormCol" style="margin-bottom: 5px;">
      <div class="mktoOffset" style="width: 5px;"></div>
      <div class="mktoFieldWrap"><label for="subscribe_to_litmus_weekly" id="Lblsubscribe_to_litmus_weekly" class="mktoLabel mktoHasWidth" style="width: 230px;">
          <div class="mktoAsterix">*</div>Litmus Weekly
        </label>
        <div class="mktoGutter mktoHasWidth" style="width: 5px;"></div>
        <div class="mktoLogicalField mktoCheckboxList mktoHasWidth" style="width: 150px;"><input name="subscribe_to_litmus_weekly" id="subscribe_to_litmus_weekly" type="checkbox" value="yes"
            aria-labelledby="Lblsubscribe_to_litmus_weekly Instructsubscribe_to_litmus_weekly" class="mktoField"><label for="subscribe_to_litmus_weekly" id="Lblsubscribe_to_litmus_weekly"></label></div><span id="Instructsubscribe_to_litmus_weekly"
          tabindex="-1" class="mktoInstruction"></span>
        <div class="mktoClear"></div>
      </div>
      <div class="mktoClear"></div>
    </div>
    <div class="mktoClear"></div>
  </div>
  <div class="mktoFormRow">
    <div class="mktoFieldDescriptor mktoFormCol" style="margin-bottom: 5px;">
      <div class="mktoOffset" style="width: 5px;"></div>
      <div class="mktoFieldWrap"><label for="subscribe_to_product_updates" id="Lblsubscribe_to_product_updates" class="mktoLabel mktoHasWidth" style="width: 230px;">
          <div class="mktoAsterix">*</div>Litmus Product Updates
        </label>
        <div class="mktoGutter mktoHasWidth" style="width: 5px;"></div>
        <div class="mktoLogicalField mktoCheckboxList mktoHasWidth" style="width: 150px;"><input name="subscribe_to_product_updates" id="subscribe_to_product_updates" type="checkbox" value="yes"
            aria-labelledby="Lblsubscribe_to_product_updates Instructsubscribe_to_product_updates" class="mktoField"><label for="subscribe_to_product_updates" id="Lblsubscribe_to_product_updates"></label></div><span
          id="Instructsubscribe_to_product_updates" tabindex="-1" class="mktoInstruction"></span>
        <div class="mktoClear"></div>
      </div>
      <div class="mktoClear"></div>
    </div>
    <div class="mktoClear"></div>
  </div>
  <div class="mktoFormRow">
    <div class="mktoFieldDescriptor mktoFormCol" style="margin-bottom: 5px;">
      <div class="mktoOffset" style="width: 5px;"></div>
      <div class="mktoFieldWrap"><label for="subscribe_to_Litmus_Live" id="Lblsubscribe_to_Litmus_Live" class="mktoLabel mktoHasWidth" style="width: 230px;">
          <div class="mktoAsterix">*</div>Virtual &amp; Live Events
        </label>
        <div class="mktoGutter mktoHasWidth" style="width: 5px;"></div>
        <div class="mktoLogicalField mktoCheckboxList mktoHasWidth" style="width: 150px;"><input name="subscribe_to_Litmus_Live" id="subscribe_to_Litmus_Live" type="checkbox" value="yes"
            aria-labelledby="Lblsubscribe_to_Litmus_Live Instructsubscribe_to_Litmus_Live" class="mktoField"><label for="subscribe_to_Litmus_Live" id="Lblsubscribe_to_Litmus_Live"></label></div><span id="Instructsubscribe_to_Litmus_Live"
          tabindex="-1" class="mktoInstruction"></span>
        <div class="mktoClear"></div>
      </div>
      <div class="mktoClear"></div>
    </div>
    <div class="mktoClear"></div>
  </div>
  <div class="mktoFormRow">
    <div class="mktoFieldDescriptor mktoFormCol" style="margin-bottom: 5px;">
      <div class="mktoOffset" style="width: 5px;"></div>
      <div class="mktoFieldWrap"><label for="subscribe_to_CMO_Newsletter" id="Lblsubscribe_to_CMO_Newsletter" class="mktoLabel mktoHasWidth" style="width: 230px;">
          <div class="mktoAsterix">*</div>Leading FWD
        </label>
        <div class="mktoGutter mktoHasWidth" style="width: 5px;"></div>
        <div class="mktoLogicalField mktoCheckboxList mktoHasWidth" style="width: 150px;"><input name="subscribe_to_CMO_Newsletter" id="subscribe_to_CMO_Newsletter" type="checkbox" value="yes"
            aria-labelledby="Lblsubscribe_to_CMO_Newsletter Instructsubscribe_to_CMO_Newsletter" class="mktoField"><label for="subscribe_to_CMO_Newsletter" id="Lblsubscribe_to_CMO_Newsletter"></label></div><span
          id="Instructsubscribe_to_CMO_Newsletter" tabindex="-1" class="mktoInstruction"></span>
        <div class="mktoClear"></div>
      </div>
      <div class="mktoClear"></div>
    </div>
    <div class="mktoClear"></div>
  </div>
  <div class="mktoFormRow">
    <div class="mktoFieldDescriptor mktoFormCol" style="margin-bottom: 5px;">
      <div class="mktoOffset" style="width: 5px;"></div>
      <div class="mktoFieldWrap"><label for="subscribe_to_Reports_and_Ebooks" id="Lblsubscribe_to_Reports_and_Ebooks" class="mktoLabel mktoHasWidth" style="width: 230px;">
          <div class="mktoAsterix">*</div>Reports &amp; Ebooks
        </label>
        <div class="mktoGutter mktoHasWidth" style="width: 5px;"></div>
        <div class="mktoLogicalField mktoCheckboxList mktoHasWidth" style="width: 150px;"><input name="subscribe_to_Reports_and_Ebooks" id="subscribe_to_Reports_and_Ebooks" type="checkbox" value="yes"
            aria-labelledby="Lblsubscribe_to_Reports_and_Ebooks Instructsubscribe_to_Reports_and_Ebooks" class="mktoField"><label for="subscribe_to_Reports_and_Ebooks" id="Lblsubscribe_to_Reports_and_Ebooks"></label></div><span
          id="Instructsubscribe_to_Reports_and_Ebooks" tabindex="-1" class="mktoInstruction"></span>
        <div class="mktoClear"></div>
      </div>
      <div class="mktoClear"></div>
    </div>
    <div class="mktoClear"></div>
  </div>
  <div class="mktoFormRow">
    <div class="mktoFormCol" style="margin-bottom: 5px;">
      <div class="mktoOffset mktoHasWidth" style="width: 5px;"></div>
      <div class="mktoFieldWrap">
        <div class="mktoHtmlText mktoHasWidth" style="width: 475px;">
          <p style="font-weight: 400; line-height: 1.4em;">Litmus uses the information you provide us to bring you great content about email marketing trends, stats, events and relevant products and services. You may unsubscribe from these
            communications at any time. For more information, check out our <a href="https://www.litmus.com/privacy/" target="_blank">Privacy Policy</a>.</p>
        </div>
        <div class="mktoClear"></div>
      </div>
      <div class="mktoClear"></div>
    </div>
    <div class="mktoClear"></div>
  </div>
  <div class="mktoButtonRow"><span class="mktoButtonWrap mktoNative" style="margin-left: 110px;"><button type="submit" class="mktoButton">Submit</button></span></div><input type="hidden" name="formid" class="mktoField mktoFieldDescriptor"
    value="1058"><input type="hidden" name="munchkinId" class="mktoField mktoFieldDescriptor" value="864-VPZ-131">
</form>

POST /sessions

<form class="form-horizontal community-sign-in-form" action="/sessions" accept-charset="UTF-8" data-remote="true" method="post"><input name="utf8" type="hidden" value="✓" autocomplete="off">
  <div class="modal-header" id="sign-in-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
    <h3>Sign in to Community</h3>
  </div>
  <div class="modal-body" id="sign-in-body">
    <p class="community-modal-errors"></p>
    <p>Are you new to Litmus Community?</p>
    <a class="btn btn-primary btn-block toggle-modal-form sign-up" href="https://litmus.com/signup/community-plan">Create a Free Litmus Account</a>
    <hr>
    <p class="desc">Use your existing Litmus login to connect with the world’s most amazing email designers.</p>
    <input type="hidden" name="return_to" id="return_to" value="https://litmus.com/community/discussions/67-hiding-content-from-desktop-version" class="return-to" autocomplete="off">
    <div class="form-group">
      <input type="email" name="email" id="email" placeholder="Email Address" class="form-control">
    </div>
    <div class="form-group">
      <input type="password" name="password" id="password" placeholder="Password" class="form-control">
    </div>
    <input type="submit" name="commit" value="Sign In" class="btn btn-outline btn-block" data-disable-with="Sign In">
    <small class="note"> Having trouble signing in? Try <a class="toggle-modal-form forgot-password" href="/password/forgot">Forgot password</a>
    </small>
  </div>
</form>

POST https://litmus.com/signup/community-plan

<form id="sign-up-modal-form" class="form-horizontal hide" action="https://litmus.com/signup/community-plan" accept-charset="UTF-8" method="post" novalidate="novalidate"><input name="utf8" type="hidden" value="✓" autocomplete="off"><input
    type="hidden" name="authenticity_token" value="tj5MqxRj5Ldn5QHh3IC3jZIQQ7OM/3jDNvQ7O7kAH+zX3jkKmKpV/EbSqtg/DGLMUVtNQvHlYA3XfoCC1ZccSw==" autocomplete="off">
  <div id="sign-up-form">
    <div class="modal-header" id="sign-in-header">
      <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
      <h3>Sign up to Community</h3>
    </div>
    <div class="modal-body" id="sign-up-body">
      <input type="hidden" name="agree_to_terms" id="agree_to_terms" value="1" autocomplete="off">
      <input type="hidden" name="return_to" id="return_to" value="https://litmus.com/community/discussions/67-hiding-content-from-desktop-version" class="return-to" autocomplete="off">
      <input type="hidden" name="referral_code[code]" id="referral_code_code" autocomplete="off">
      <div class="row">
        <div class="col-sm-6">
          <div class="form-group">
            <label for="signup_user_first_name">First name</label>
            <input type="text" name="signup[user][first_name]" id="signup_user_first_name" placeholder="First Name" class="required form-control">
          </div>
        </div>
        <div class="col-sm-6">
          <div class="form-group">
            <label for="signup_user_last_name">Last name</label>
            <input type="text" name="signup[user][last_name]" id="signup_user_last_name" placeholder="Last Name" class="required form-control">
          </div>
        </div>
      </div>
      <div class="form-group">
        <label for="signup_user_email">Email</label>
        <input type="email" name="signup[user][email]" id="signup_user_email" placeholder="Email Address" class="required form-control">
      </div>
      <div class="form-group">
        <label for="signup_user_password">Password</label>
        <input type="password" name="signup[user][password]" id="signup_user_password" placeholder="Password" class="required form-control">
      </div>
      <div class="form-group">
        <label for="signup_user_password_confirmation">Confirm password</label>
        <input type="password" name="signup[user][password_confirmation]" id="signup_user_password_confirmation" placeholder="Retype Password" class="required form-control">
      </div>
      <div class="form-group">
        <small class="note"> Litmus uses the information you provide us to bring you great content about email marketing trends, stats, events and relevant products and services. You may unsubscribe from these communications at any time. For more
          information, check out our <a target="_blank" href="https://litmus.com/privacy">Privacy Policy</a>
        </small>
      </div>
      <input type="submit" name="commit" value="Sign Up" class="btn btn-primary btn-block sign-up-button" data-disable-with="Sign Up">
      <small class="note"> Already have a Litmus login? <a class="toggle-modal-form sign-in" href="#">Sign in</a>
      </small>
    </div>
  </div>
  <div id="sign-up-trial-box" class="hide">
    <div class="modal-header" id="sign-in-header">
      <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
      <h3>Get more out of your Litmus account</h3>
    </div>
    <div class="modal-body modal-trial-sign-up" id="sign-up-body">
      <div class="row">
        <div class="col-sm-12">
          <p> Your free Community account includes access to the Litmus Community, as well as limited access to Litmus Builder. Check out the entire Litmus Email Creative Platform when you sign up for a free 7-day trial. </p>
        </div>
      </div>
      <div class="row">
        <div class="col-sm-12">
          <div class="feature-card">
            <ul>
              <li>
                <a href="#">Email Previews</a>
                <div class="tip">
                  <p>Get 2,000 screenshots/month in popular email clients, including key international webmail clients, to ensure your emails look great everywhere.</p>
                </div>
              </li>
              <li>
                <a href="#">Builder</a>
                <div class="tip">
                  <p>Quickly identify issues pre-send that could impact your deliverability—and get actionable advice for how to fix them.</p>
                </div>
              </li>
              <li>
                <a href="#">Checklist</a>
                <div class="tip">
                  <p>Get screenshots in popular email clients to ensure your email looks great everywhere.</p>
                </div>
              </li>
              <li>
                <a href="#">Code Editor Integrations</a>
                <div class="tip">
                  <p>Preview and troubleshoot your emails right where you build with seamless integrations between Litmus and any local code editor, like Dreamweaver or Sublime.</p>
                </div>
              </li>
              <li>
                <a href="#">ESP Integrations</a>
                <div class="tip">
                  <p>Save time producing and troubleshooting your campaigns with seamless integrations between Litmus and your email service provider (ESP).</p>
                </div>
              </li>
              <li>
                <a href="#">Spam Testing</a>
                <div class="tip">
                  <p>Quickly identify issues pre-send that could impact your deliverability—and get actionable advice for how to fix them.</p>
                </div>
              </li>
              <li>
                <a href="#">Email Analytics</a>
                <div class="tip">
                  <p>Optimize your campaigns with subscriber-level insights to improve segmentation and targeting strategies.</p>
                </div>
              </li>
              <li>
                <a href="#">Private Litmus Teams</a>
                <div class="tip">
                  <p>Get full team visibility. Manage Litmus access and monitor usage across private teams.</p>
                </div>
              </li>
            </ul>
            <input type="submit" name="commit" value="Try Litmus free for 7 days" class="btn btn-primary btn-block trial-sign-up-button" data-disable-with="Try Litmus free for 7 days">
          </div>
        </div>
      </div>
      <small class="note">
        <a class="no-thanks-link" href="#">No thanks, just sign me up without a trial</a>
      </small>
    </div>
  </div><!-- End #sign-up-trial-modal-form -->
</form>

POST https://litmus.com/password/forgot

<form id="forgot-password-modal-form" class="form-horizontal hide" action="https://litmus.com/password/forgot" accept-charset="UTF-8" method="post"><input name="utf8" type="hidden" value="✓" autocomplete="off"><input type="hidden"
    name="authenticity_token" value="tj5MqxRj5Ldn5QHh3IC3jZIQQ7OM/3jDNvQ7O7kAH+zX3jkKmKpV/EbSqtg/DGLMUVtNQvHlYA3XfoCC1ZccSw==" autocomplete="off">
  <div class="modal-header" id="sign-in-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
    <h3>Forgot password</h3>
  </div>
  <div class="modal-body" id="forgot-password-body">
    <p class="community-modal-notifications"></p>
    <div class="form-group">
      <p class="desc">Enter your email address to reset your password</p>
      <input type="email" name="email" id="email" placeholder="Enter your email" tabindex="1" required="required" class="form-control">
    </div>
    <script src="https://www.google.com/recaptcha/api.js" async="" defer=""></script>
    <div class="g-recaptcha" data-sitekey="6LcNjygTAAAAAKf3uQqit9KwM5QJTsCd0mK1LZ7E">
      <div style="width: 304px; height: 78px;">
        <div><iframe title="reCAPTCHA"
            src="https://www.google.com/recaptcha/api2/anchor?ar=1&amp;k=6LcNjygTAAAAAKf3uQqit9KwM5QJTsCd0mK1LZ7E&amp;co=aHR0cHM6Ly9saXRtdXMuY29tOjQ0Mw..&amp;hl=de&amp;v=PRMRaAwB3KlylGQR57Dyk-pF&amp;size=normal&amp;cb=cwq18wkbas7a" width="304"
            height="78" role="presentation" name="a-1w5ffmtkhgpm" frameborder="0" scrolling="no" sandbox="allow-forms allow-popups allow-same-origin allow-scripts allow-top-navigation allow-modals allow-popups-to-escape-sandbox"></iframe></div>
        <textarea id="g-recaptcha-response" name="g-recaptcha-response" class="g-recaptcha-response" style="width: 250px; height: 40px; border: 1px solid rgb(193, 193, 193); margin: 10px 25px; padding: 0px; resize: none; display: none;"></textarea>
      </div><iframe style="display: none;"></iframe>
    </div>
    <br>
    <input type="submit" name="commit" value="Reset my password" class="btn btn-primary btn-block" data-disable-with="Reset my password">
    <small class="note"> Already have a Litmus login? <a class="toggle-modal-form sign-in" href="#">Sign in</a>
    </small>
  </div>
</form>

<form style="display: none; font-family: inherit; font-size: 13px; color: rgb(51, 51, 51); visibility: hidden; position: absolute; top: -500px; left: -1000px; width: 1600px;" novalidate="novalidate" class="mktoForm mktoHasWidth mktoLayoutLeft">
</form>

Text Content

 * Features
   All Features Email Previews
   
   Builder Checklist Spam Testing Email Analytics Litmus Extension
 * Pricing
 * Resources
   Resources Litmus Conference Convince Your Team Gmail Promotions Builder
 * Enterprise
 * Community
   Discussions Snippets Templates Jobs
 * Blog

 * Sign In

 * Litmus
 * Features
 * Pricing
 * Resources
 * Enterprise
 * Blog
 * Community
 * Discussions
 * Snippets
 * Templates
 * Jobs
 * My Account
 * Sign In

 * Community Home
 * Discussions
 * Learning
 * Snippets
 * Templates
 * Jobs

 * Create a Discussion

BC
4



HIDING CONTENT FROM DESKTOP VERSION

B2C Poker Cassava posted 9 years ago

Hi guys,

I have a <div> wrapped in a table that I want to show only in mobile. This takes
the whole width of the email.

Only problem is that in Outlook, that "space" is taken and I see a big gap
between my content.

Anybody had a similar issue / fix?

Thanks!

Highest Voted Oldest First Most Recent
JL
10

Edit

Delete
Justin LeBlanc replied 9 years ago

To hide for Outlook you can wrap your content in these tags:

<\!--[if !mso]><\!-->
MOBILE CONTENT HERE
<\!--<\![endif]-->


Reply to Justin LeBlanc
SC
2

Edit

Delete
Seth Cohen replied 6 years ago

That syntax doesn't seem quite right, this is what worked for me:

<!--[if !mso]><\!-->
Mobile Content Here
<!-- <![endif]-->



JP
8

Edit

Delete
Jeremy Peter replied 9 years ago

Try adding this style to it mso-hide:all; It's special to Outlook.

These are the styles I generally use when I want to hide mobile content on the
desktop version of an email.

display: none; 
font-size: 0; 
max-height: 0; 
line-height: 0;
mso-hide:all;


Reply to Jeremy Peter
WM
1

Edit

Delete
Wiebke Meyer replied 9 years ago

additionally you need to put the styles inline, if the email-client does not
except css in the header-section.
<div class="mobile" style="mso-hide: all; overflow: hidden; max-height: 0;
width: 0; display: none; line-height: 0; visibility: hidden;">


JK
1

Edit

Delete
Justin Khoo replied 8 years ago

One thing to keep in mind is that if you have nested tables, you need to apply
mso-hide:all to each table or else the content within it will be visible in
Outlook.


EO
0

Edit

Delete
Eoin Oliver replied 6 years ago

I can hide the desktop version, but I can't for the life of me show it on
mobile. And I'm not talking about Gmail, I'm talking about iOs.


MR
6

Edit

Delete
Mark Robbins replied 9 years ago

I've used a few techniques for hiding from desktop.

I've found this one from Fresh Inbox to be the most reliable
http://freshinbox.com/blog/bulletproof-solution-to-hiding-mobile-content-when-opened-in-non-mobile-email-clients/

Hope that helps. It's not let me down yet.

Reply to Mark Robbins
TM
0

Edit

Delete
Trevor Munday replied 8 years ago

Brilliant! This does the ticket for me, provided you wrap all the content you
want to hide from Gmail in a <div>.

The only outstanding issues are that Lotus 6.5 and 7 don't like <div> tags so
everything shows, and for some strange reason AoL doesn't like this and keeps
the desktop content also hidden ... will investigate further.


LH
2

Edit

Delete
Liz Hiczewski replied 2 years ago

I don't think any of these solutions work anymore.

Can anyone update this?

Reply to Liz Hiczewski
JO
0

Edit

Delete
Jay Oram replied 2 years ago

I put a blog together on hiding content - this could help out -
http://www.emaildesignreview.com/email-code/hiding-elements-in-email-4922/

Reply to Jay Oram
TL
-1

Edit

Delete
Tuuli Luoto replied 9 years ago

<style type="text/css">
div[class="mobileOnly"]
{ 
height: 0 !important
}
@media only screen and (max-width: 480px)
 {
div[class="mobileOnly"]
{
height: auto !important ; 
display: block !important ; 
} 
}</style>


Then in the html <div class="mobileOnly" style="display: none ;">blah blah
blah</div>

Reply to Tuuli Luoto
BC
0

Edit

Delete
B2C Poker Cassava replied 9 years ago

Thank you for the answer, I had something similar, tried your solution as well,
but still Outlook doesn't like it...


Markdown supported Post Comment Cancel

Test your email campaigns in 100+ email clients and devices. Never send another
broken email again.

Start your free 7 day trial

   COMPANY

 * Team
 * Customers
 * Careers
 * Contact
 * Brand

   PRODUCT

 * Features
 * Pricing
 * Enterprise
 * Extension

   TOOLS

 * Events
 * Labs
 * Scope
 * Resources

   HELP

 * Knowledgebase
 * Status
 * Community
 * Trust

SUBSCRIBE TO OUR EMAILS


*
maps-security:








*
Email Address:




*
The Newsletter





*
Litmus Weekly





*
Litmus Product Updates





*
Virtual & Live Events





*
Leading FWD





*
Reports & Ebooks






Litmus uses the information you provide us to bring you great content about
email marketing trends, stats, events and relevant products and services. You
may unsubscribe from these communications at any time. For more information,
check out our Privacy Policy.




Submit

--------------------------------------------------------------------------------

Copyright © Litmus Software, Inc. 2005-2022. 675 Massachusetts Ave., 11th Floor,
Cambridge, MA 02139. View our Terms of Service or Privacy Policy. Send us a note
to hello@litmus.com or give us a call at +1 (866) 787-7030
 * 
 * 
 * 

×


SIGN IN TO COMMUNITY

Are you new to Litmus Community?

Create a Free Litmus Account

--------------------------------------------------------------------------------

Use your existing Litmus login to connect with the world’s most amazing email
designers.



Having trouble signing in? Try Forgot password


JOIN THE LITMUS COMMUNITY

×
×


SIGN UP TO COMMUNITY

First name
Last name
Email
Password
Confirm password
Litmus uses the information you provide us to bring you great content about
email marketing trends, stats, events and relevant products and services. You
may unsubscribe from these communications at any time. For more information,
check out our Privacy Policy
Already have a Litmus login? Sign in
×


GET MORE OUT OF YOUR LITMUS ACCOUNT

Your free Community account includes access to the Litmus Community, as well as
limited access to Litmus Builder. Check out the entire Litmus Email Creative
Platform when you sign up for a free 7-day trial.

 * Email Previews
   
   Get 2,000 screenshots/month in popular email clients, including key
   international webmail clients, to ensure your emails look great everywhere.

 * Builder
   
   Quickly identify issues pre-send that could impact your deliverability—and
   get actionable advice for how to fix them.

 * Checklist
   
   Get screenshots in popular email clients to ensure your email looks great
   everywhere.

 * Code Editor Integrations
   
   Preview and troubleshoot your emails right where you build with seamless
   integrations between Litmus and any local code editor, like Dreamweaver or
   Sublime.

 * ESP Integrations
   
   Save time producing and troubleshooting your campaigns with seamless
   integrations between Litmus and your email service provider (ESP).

 * Spam Testing
   
   Quickly identify issues pre-send that could impact your deliverability—and
   get actionable advice for how to fix them.

 * Email Analytics
   
   Optimize your campaigns with subscriber-level insights to improve
   segmentation and targeting strategies.

 * Private Litmus Teams
   
   Get full team visibility. Manage Litmus access and monitor usage across
   private teams.

No thanks, just sign me up without a trial
×


FORGOT PASSWORD

Enter your email address to reset your password



Already have a Litmus login? Sign in



By clicking “Accept All Cookies”, you agree to the storing of cookies on your
device to enhance site navigation, analyze site usage, and assist in our
marketing efforts. Clicking "Reject All" may prevent you from using the site
normally.

Cookies Settings Reject All Accept All Cookies



PRIVACY PREFERENCE CENTER

When you visit any website, it may store or retrieve information on your
browser, mostly in the form of cookies. This information might be about you,
your preferences or your device and is mostly used to make the site work as you
expect it to. The information does not usually directly identify you, but it can
give you a more personalized web experience. Because we respect your right to
privacy, you can choose not to allow some types of cookies. Click on the
different category headings to find out more and change our default settings.
However, blocking some types of cookies may impact your experience of the site
and the services we are able to offer.
Cookie Policy
Allow All


MANAGE CONSENT PREFERENCES

STRICTLY NECESSARY COOKIES

Always Active

These cookies are necessary for the website to function and cannot be switched
off in our systems. They are usually only set in response to actions made by you
which amount to a request for services, such as setting your privacy
preferences, logging in or filling in forms. You can set your browser to block
or alert you about these cookies, but some parts of the site will not then work.
These cookies do not store any personally identifiable information.

FUNCTIONAL COOKIES

Functional Cookies

These cookies enable the website to provide enhanced functionality and
personalisation. They may be set by us or by third party providers whose
services we have added to our pages. If you do not allow these cookies then some
or all of these services may not function properly.

PERFORMANCE COOKIES

Performance Cookies

These cookies allow us to count visits and traffic sources so we can measure and
improve the performance of our site. They help us to know which pages are the
most and least popular and see how visitors move around the site. All
information these cookies collect is aggregated and therefore anonymous. If you
do not allow these cookies we will not know when you have visited our site, and
will not be able to monitor its performance.

TARGETING COOKIES

Targeting Cookies

These cookies may be set through our site by our advertising partners. They may
be used by those companies to build a profile of your interests and show you
relevant adverts on other sites. They do not store directly personal
information, but are based on uniquely identifying your browser and internet
device. If you do not allow these cookies, you will experience less targeted
advertising.

Back Button


PERFORMANCE COOKIES



Search Icon
Filter Icon

Clear
checkbox label label
Apply Cancel
Consent Leg.Interest
checkbox label label
checkbox label label
checkbox label label

Reject All Confirm My Choices