S
S
safbek2018-02-13 14:30:58
css
safbek, 2018-02-13 14:30:58

How can I make a certain div appear when clicking on a link?

5a82cb9e74d4d128772179.png
how to make it so that when clicking on a link, a certain div appears on the same page?
For example, I click on information1, the necessary content appears on the right...etc

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Stimulate, 2018-02-13
@safbek

jsfiddle.net/TYhnb

V
Vladislav Lyskov, 2018-02-13
@Vlatqa

tabs

X
Xenia, 2018-02-13
@TGNC

there are many options, the simplest ones are in javascript.
on css you can try like this: https://jsfiddle.net/fcdk5dyn/
it is important that the checkbox and the hidden div are inside the same parent.
Further, there are many design options, and it is not necessary to use display: none to hide. You can make it transparent, decrease/increase the height, add transitions and animations.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question