Close

Card Mode Grid + Accordion Content

This is an example of a quote cards grid layout with the content displayed in an accordion, designed using HTML, CSS, JavaScript, and Bootstrap framework 4. The quotes are imported to the code with the URL, whereas the JavaScript functions have been used to implement the accordion expand feature. The body of the form is given the styles of background as #e6e6e6, padding as 50px 0, font-family as 'Noto Serif', serif. The quote cards can be displayed either in card layout or row layout. The quote grid is given the styles of max-width as 1000px, margin as 0 auto, font-family as 'Noto Serif', serif, theme-color-primary as #383838, and color as #414141. The quote caption has the styles of color as #414141, font-size as 40px, and font-weight as bold. The quote cards take the styles of border-radius as 10px, margin as 10px, and box-shadow as 0 4px 8px 0 rgba(0, 0, 0, 0.1), 0 6px 20px 0 rgba(0, 0, 0, 0.09), in the card layout. The accordion of the card is given the styles of position as relative, display as block, background as #f7f7f7, border-radius as .25em, cursor style as pointer to get the hand cursor effect, margin-bottom as .125em, padding as .75rem 1em, z-index as 20, border as 1px solid #cccccc, text-align as center, and font-size as 13px, which takes the background color of #ccc, in a hover event. Source: https://codepen.io/zinggrid/pen/ZVJZEM

Post Comment or Questions

Lorem ut labore et dolore magna aliqua. Ut enim ad minim veniam.

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Several Related Snippets

Lorem ut labore et dolore magna aliqua. Ut enim ad minim veniam.