+ 3
How can I create an accordion with CSS and HTML only?
If I click a button, the accordion will appear.
9 Respostas
+ 7
Bithi D yes, of course. Do you want to create an accordion or an accordion menu?
+ 6
Okay, yes you can do it with CSS and JS
+ 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>
+ 5
Bithi D here is your accordion: https://code.sololearn.com/WGBtCt62vbmv/?ref=app 😁
+ 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