Collapsibles with CSS | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 7

Collapsibles with CSS

Can you help me with making collapsibles with CSS. Like the ones of bootstrap.

10th Aug 2018, 8:16 AM
***
12 Answers
+ 5
Saksham Saxena can we make it without js only with CSS?
10th Aug 2018, 9:43 AM
***
10th Aug 2018, 9:28 AM
***
+ 4
Janningā­ still is there is any way?
10th Aug 2018, 10:05 AM
***
+ 4
Janningā­ thnx. I understood well. Still can u provide me with a code for better understanding.
10th Aug 2018, 10:35 AM
***
+ 4
Janningā­ an example code
10th Aug 2018, 10:37 AM
***
+ 3
Saksham Saxena in your code if we click on one it starts and if we click on the second one then the first one closes. I want that if we click on the first one it will open and if we click on another collapsible it will open but the first one will not close
10th Aug 2018, 9:32 AM
***
+ 3
You can cheat with the details and summary tags. It renders differently between browsers though: https://www.w3schools.com/tags/tag_details.asp https://www.w3schools.com/tags/tag_summary.asp Accordions without JavaScript are much more complicated.
10th Aug 2018, 10:03 AM
Janningā­
Janningā­ - avatar
10th Aug 2018, 10:31 AM
Janningā­
Janningā­ - avatar
+ 2
What's missing?
10th Aug 2018, 10:36 AM
Janningā­
Janningā­ - avatar
+ 1
There were example codes in the link.
10th Aug 2018, 10:37 AM
Janningā­
Janningā­ - avatar
0
Can anyone post questions for Python new learners?
23rd Aug 2018, 3:05 PM
Sekhar
0
@Sekhar Please don't hijack this thread -- instead, use the search bar to help minimize the number of duplicate questions taking up space on SoloLearn servers and slowing down loading times for users. If you have a question that hasn't already been asked, you can start a new thread in the Q&A section.
23rd Aug 2018, 10:49 PM
Janningā­
Janningā­ - avatar