+ 3
How can I create an accordion with CSS and HTML only?
If I click a button, the accordion will appear.
9 Antworten
+ 5
Hello, Bithi D !
If you want to do this only with css and html, you can do it this way
<style>
button:hover {
background-image:url("Accordion.png");
background-repeat:no-repeat;
background-size:100% 100%;
}
</style>
<button>Click</button>
+ 3
Here the CSS accordion that resembles Bootstrap accordian
https://code.sololearn.com/WgcjJl8Psruc/?ref=app
+ 3
thanks
+ 1
thank you
+ 1
Can I use text instead of image?
+ 1
accordion menu