What is the best way on an outline form webpage, to click on text and have it show underneath the text and then expand back on the next click? Is it CSS or JS or even a combination thereof?
Thank you.
What is the best way on an outline form webpage, to click on text and have it show underneath the text and then expand back on the next click? Is it CSS or JS or even a combination thereof?
Thank you.
The only way I know to do that with CSS would be with pseudo-class :target
I never liked using it because it requires ID’s and each click stays in your browser history. So if I wanted to go back to a previous page I would have to traverse back through all the :target clicks.
Best to stick with JS for click events
That you for that and your pseudo-class: target link for an example.
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.