How to minimize an article. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to minimize an article.

I'm trying to write an article which will be part of a "web page" but I actually want it to display a few sides of the article when the page is loaded and then display the full thing when you tap on it. The aim is to make the article to expand on a tap and minimize on another tap (you may have noticed that Facebook does this for long articles). I can expand it with "ID:hover" but I can't find away to minimize it back.

26th Oct 2019, 8:25 AM
SolomonDavid Akesoba
SolomonDavid Akesoba - avatar
4 Answers
+ 4
You could use for that js or maybe html <details><summary>/summary></details>
26th Oct 2019, 8:59 AM
๐Ÿ‡ Alex Tuศ™inean ๐Ÿ’œ
๐Ÿ‡ Alex Tuศ™inean ๐Ÿ’œ - avatar
26th Oct 2019, 9:50 AM
SolomonDavid Akesoba
SolomonDavid Akesoba - avatar
+ 1
๐Ÿ‡ Alex Tusinean ๐Ÿ’œ I never knew about that before. Let me try it
26th Oct 2019, 9:52 AM
SolomonDavid Akesoba
SolomonDavid Akesoba - avatar
0
show your code
26th Oct 2019, 8:34 AM
T1mun
T1mun - avatar