-2

when i click on the arrow or the name the list drops down

this is how the expanded list looks like

how do I get this type of collapsible list using html and CSS

I tried it with details and summary tags but it puts the list further away from the other normal lists is there any other way to achieve it.

Mad-s
  • 1
  • 4
  • Hi and Welcome to SO. please take the [tour](https://stackoverflow.com/tour) first. Then read [how to ask questions here](https://stackoverflow.com/help/how-to-ask). After you have done that, edit your question to meet those guidelines and to include a [minimal, reproduciable code snippet](https://stackoverflow.com/help/minimal-reproducible-example). – tacoshy Jun 22 '21 at 13:35
  • Welcome to stackoverflow. In its current state, this question does not meet (or get close to) the standard required on this site. Please have a read of the [help] and the [ask] section in particular – freefaller Jun 22 '21 at 13:35

1 Answers1

0

The question is already answered on stackoverflow and on the internet. Make sure to do some research before asking. Here are some links: 1. Link 1 2. Link 2

You can take some ideas from these two and make your own custom dropdown.

Arun Bohra
  • 495
  • 1
  • 6
  • 16
  • thank you for those links, I did search the internet before posting here but I couldn't find anything like the images I've attached above. – Mad-s Jun 22 '21 at 14:20