Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
TristanJo
Experienced
Topic Author
Posts: 116
Joined: 10 Apr 2018, 02:57

Toggle content~~~

08 Jan 2023, 08:44

Snipaste_2023-01-08_22-41-56.png
Snipaste_2023-01-08_22-41-56.png (92.45 KiB) Viewed 7688 times
[/size]

Hi~ karl~

Several FAQs were created using the toggle content function.
Can you make only one unfold like the image?

plz~~
Attachments
Faq-gif.gif
Faq-gif.gif (435.06 KiB) Viewed 7688 times
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Toggle content~~~

08 Jan 2023, 21:17

TristanJo wrote: Faq-gif.gif
You can use the toggle plugin this also, but you would need to create the CSS for that style yourself ... Looks quite basic.

Optionally, or perhaps even recommended, you can now use HTML5 native <details> element.
https://developer.mozilla.org/en-US/doc ... nt/details

Basically a native toggle menu supported directly in browser that can be styled with CSS.
https://css-tricks.com/quick-reminder-t ... accordion/
https://gomakethings.com/creating-a-pro ... avascript/
https://nikitahl.com/native-html-accordion