Answer the question
In order to leave comments, you need to log in
How to hide extra elements?
The organization has multiple phones
<span class="phone">8 (900) 123-24-01</span>
<span class="phone">8 (900) 123-24-02</span>
<span class="phone">8 (900) 123-24-03</span>
<span class="phone">8 (900) 123-24-04</span>
<span class="phone">8 (900) 123-24-05</span>
<span class="phone">8 (900) 123-24-06</span>
Answer the question
In order to leave comments, you need to log in
Mark as hidden - on the server, show - through js. Also, if support for older browsers is not of great importance to you, you can get by with just js (show) + css (hide, use nth-of-child).
.phone:nth-of-child(2n+1) {
display:none;
}
you can name the classes differently, for example phone, phone1, etc. and do .hide()
add the class "hidden" to hidden numbers, for example, with hiding via CSS. Well, and then using JS, remove the class when you click on "more"
Hide everything except the first one, show all when hovering over the parent block, or show everything when clicking on the icon.
Please describe your requirements in more detail.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question