Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Suggested answer

MS Classes Wrap Content on Mobile

Posted on by 89

Dynamics templates have div tags with a class called wrap-section. 

 

Content inside these divs will stack on mobile, even if they're in a table. The table will stack instead of staying horizontal. 

There's another class called no-wrap-section that prevents this from happening.

For example, in my social footer, I have to use this class to keep all of the icons horizontal, instead of stacking. 

Connect with NIQ

Privacy policy​​​​​​​​​​​​​​

Copyright ©2023 Nielsen Consumer LLC, All rights reserved.

What can I do in cases where I need to have a bit of both? For example, I tried using it here to keep the menu links horizontal, but they stack. 

On another note, the classes are present in the code, but the styles aren't available. They must be global styles. 

  • Suggested answer
    RE: MS Classes Wrap Content on Mobile

    Hello.

    Those 2 classes are use to select if the sections should have columns one bellow the other or next each other on mobile email clients.
    Screenshot-2023_2D00_03_2D00_20-101133.png
    I'm not sure what is the behavior you want to achieve, but I suggest using options "Show on mobile" and "Show on desktop" to create design for mobile and desktop, it will probably be easier.
    So my guess in this case would be to have this as desktop section and unselect  "Show on mobile". And for mobile create section with two columns, image element in one and 3 text elements one bellow the other column and unselect  "Show on desktop" and "Wrap columns on mobile".
    You can play with the options we have to create the design you need. This can probably be done by custom coding, but I think it's probably easier to just create different sections and just hide them and show them as needed.

    One more thing, If you want to see the full styles we add to the emails, you can inspect email in the Preview tab and see the style tag there:
    Screenshot-2023_2D00_03_2D00_20-101509.png

    Hope this helps.

    Best regards,
    Jelena

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans