Accordion To Display Details And Summary

This is an example of an accordion that displays the details and summary, designed using HTML, CSS, and Bootstrap framework 4. The body of the form is given the styles of font-family as "IBM Plex Sans", sans-serif, and background-color as rgba(0,0,0,.1), whereas the header of the form is given the styles of margin as 20px auto 80px, font-size as 38px, font-weight as 300, text-align as center, letter-spacing as 2px, and line-height as 1.5. The details section of the accordion has the styles of width as 75%, min-height as 5px, max-width as 700px, padding as 45px 70px 45px 45px, margin as 0 auto, position as relative, font-size as 22px, border as 1px solid rgba(0,0,0,.1), border-radius as 15px, box-sizing as border-box, and transition as all .3s. The summary section of the accordion is given the styles of display as flex, justify-content as space-between, align-items as center, font-weight as 500, and cursor as pointer to get the and cursor effect. The summary section takes a style of box-shadow as 0 0 0 4px #f6f7f8, 0 0 0 5px rebeccapurple, in a focused event. Source:

Post Comment or Questions

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

Your email address will not be published. Required fields are marked *