CSS - Page Component - Accordion


/ Published in: CSS
Save to your folder(s)

CSS - Page Component - Accordion


Copy this code and paste it in your HTML
  1. .accordion {
  2. }
  3. .accordion .tab {
  4. border-bottom-width:1px;
  5. border-bottom-style:solid;
  6. }
  7. .accordion .tab a {
  8. display:block;
  9. padding:10px 20px;
  10. border-width:1px;
  11. border-style:solid;
  12. }
  13. .accordion .tab a:hover {
  14. }
  15. .accordion .tab a.active {
  16. border-bottom:0 none;
  17. position:relative;
  18. }
  19. .accordion .pane {
  20. display:none;
  21. padding:0 20px 10px;
  22. border-width:1px;
  23. border-style:solid;
  24. border-top:0 none;
  25. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.