Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can one insert a collapsible list in an outlook email?

Is it possible to insert collapsible text in an Outlook email ?

[+] header name When the reader clicks the [+] he will expand the text.

Tried these methods

  1. Making collapsible text without Java and attaching as text. Imports fine into an outlook email. But expansion doesn't work.

  2. Tried with Outlook VBA. Works fine with the .docm format outside of Outlook in Word. But doesn't work in Outlook.

like image 790
Ayan Mullick Avatar asked May 07 '16 22:05

Ayan Mullick


People also ask

How do I add expand collapse in Outlook?

Collapse or expand all groups by default in Outlook In Outlook 2010 and 2013, please click View tab, and then click View Settings in the Current View group. If you want to open the Outlook with all groups expanded by default, please select All Expanded in the Group By dialog under under Expand/collapse defaults.

How do I create a new section in Outlook?

Right-click any existing section tab in your notebook, and choose New Section. Type a meaningful description for the new section, and press Enter.


1 Answers

H Mayan,

This can't be done in Outlook as it does not support the CSS required.

You can implement the practice of progressive enhancement whereby you code a CSS-only solution like this:

#toggle {
  display: none;
  font-size:14px;
}
#toggle:target {
  display: block;
}
#toggle:target + .close {
  display: block;
}
.close {
  display: none;
}
<a href="#toggle">REVEAL +</a>
<p id="toggle">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>

<a href="#" class="close">HIDE -</span>

And then use a media query, usually @media screen and (max-width:480px) to show/hide on supported devices and mso conditional css to give a simple fallback for Outlook.

like image 197
Jamie Hall Avatar answered Oct 26 '22 04:10

Jamie Hall