<!DOCTYPE html> <html> <head> <title></title> <meta name="generator" content="BBEdit 13.0" /> <style> .wrap { max-width: 400px; margin: 1em auto; } /*--------Accordion 1 Blau -------*/ .accordion .panel { margin: 0 auto; height: 0; overflow:hidden; background-color: white; line-height: 1.4; padding: 0 20px; box-sizing: border-box; transition: all 0.5s; } .accordion input:checked~.panel { height: auto; color: #333; padding: 20px; transition: all 0.5s; } .accordion label { cursor: pointer; background-color: hsl(200,80%,80%); /* Hellblau */ border-bottom: 2px solid hsl(200,80%,80%); display: block; padding: 15px; width: 100%; color: #fff; font-weight: 400; box-sizing: border-box; z-index: 100; } .accordion input{ display: none; } .accordion input:checked+label { background-color: hsl(200,80%,50%); /* Dunkelblau */ } .accordion input:checked+label:before { transition: 0.5s; } </style> </head> <body> <div class="wrap"> <div class="accordion"> <div> <input type="radio" name="acc" id="Liquorice" checked=""> <label for="Liquorice"><b>❦</b> Liquorice</label> <ul class="panel"> <li>Liquorice wafer lollipop sesame</li> <li> snaps gummi bears. Wafer jelly beans chupa chups cotton candy</li> <li>caramels carrot cake topping oat cake.</li> </ul> </div> <div> <input type="radio" name="acc" id="Cheesecake"> <label for="Cheesecake"><b>❁</b> Cheesecake?</label> <ul class="panel"> <li>Cake carrot cake marshmallow cheesecake cake lemon drops pudding apple pie.</li> <li>Chocolate gingerbread marshmallow croissant.</li> <li>Liquorice jujubes cake ice cream cake liquorice croissant ice cream.</li> <li>Lollipop jelly-o fruitcake chocolate cake tootsie roll marzipan dragée halvah.</li> <li>Chocolate gingerbread marshmallow croissant.</li> <li>Liquorice jujubes cake ice cream cake liquorice croissant ice cream.</li> </ul> </div> <div> <input type="radio" name="acc" id="Fruitcake"> <label for="Fruitcake"><b>❤</b> Fruitcake?</label> <div class="panel"> <p>Fruitcake marshmallow sugar plum soufflé biscuit.</p> <p>Sesame snaps pie lemon drops.</p> </div> </div> </div> </div> </body> </html>