I'm trying to implement responsive CSS animation delay to create an accordion effect when a user clicks on an arrow associated with a table, all without using JavaScript and only utilizing HTML/CSS.
Check out the mobile view in action here: https://web.archive.org/web/20190523104045/http://responsiveemailpatterns.com/patterns/accordions/full-to-accordion.html
Visual representation of what I aim to achieve: https://i.sstatic.net/rHOwE.jpg
I've marked the CSS block and HTML section with ACCORDION to highlight my attempt to correctly code it. However, clicking on the arrow doesn't collapse the container as desired in the image. Is there a way to fix this code without resorting to JavaScript or JQuery?
html { -webkit-text-size-adjust:none; -ms-text-size-adjust:none; }
.msofix {mso-table-lspace: -1pt; mso-table-rspace:-1pt}
body{padding:0; margin:0;}
@media only screen and (max-width: 480px) {
div[class=divSecMobile]{
display: block !important;
max-height: none !important;
overflow: visible !important;
font-size: inherit !important;
line-height: 23px !important;
}
<div>[...]</div>