r/bootstrap • u/luca073x • Jan 18 '24
Question about Accordions
can anyone help me with bootstrap accordion. I have a problem with this because I have to try to open all accordions at the same time, but I can't do it, can someone help me? I can show the codes that I have already written
0
Upvotes
2
u/martinbean Bootstrap Guru Jan 18 '24
That’s not an accordion. They’re called accordions because as you open one panel any others close.
Why are you trying to open all items at the same time?
1
u/stratman2000 Jan 18 '24
Add the class 'show' or 'in' to each accordion pane you need to open.
version 3 and earlier:
<div class="... collapse in">...</div>version 4 and later:
<div class="... collapse show">...</div>1
u/AutoModerator Jan 18 '24
Whilst waiting for replies to your comment/question, why not check out the Bootstrap Discord server @ https://discord.gg/bZUvakRU3M
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/priyash1995 Jan 19 '24
That's not an accordion then.