-1
Hello, I have a series of cards that I have already put the respective ids, but when I click on the menu option that I want it just scrolls to the card with the id, but actually I would like all the others to disappear and only the ones of the id called stay. Can you help me? :)
<div class="list-group menu-casos" style="float: left">
<a href="#varejo" class="list-group-item active">Varejo</a>
<a href="#industria" class="list-group-item">Indústria</a>
<a href="#marketing" class="list-group-item">Marketing</a>
<a href="#seguro" class="list-group-item">Seguro</a>
<a href="#educacao" class="list-group-item">Educação</a>
<a href="#saude" class="list-group-item">Saúde</a>
<a href="#financas" class="list-group-item">Finanças</a>
<a href="#telecom" class="list-group-item">Telecom</a>
</div>
<div class="card2 shadow" id="varejo" style="margin-top: 50px">
<h2>E-commerce</h2>
<pre>Texto</pre>
<a href="#support" class="btn btn-primary">Saiba mais</a>
</div>
<div class="card2 shadow" id="varejo">
<h2>Lojas Físicas</h2>
<pre>Texto</pre>
<a href="#support" class="btn btn-primary">Saiba mais</a>
</div>
<div class="card2 shadow" id="varejo">
<h2>Serviços de Consumo</h2>
<pre>Texto</pre>
<a href="#support" class="btn btn-primary">Saiba mais</a>
</div>
Dude you have to put the full code there, at least in a way that simulates your problem, only with this block of code can not help you much
– hugocsl
If you don’t show the javascript you’re using to change the behavior of the page it will be difficult to help you.
– fernandosavio
@hugocsl Pus
– Thales Vinicius
@fernandosavio am not using js, only HTML
– Thales Vinicius
I strongly suggest you take a look at the link to get an idea of what you can and cannot do with Html: https://developer.mozilla.org/en-US/docs/Web/HTML
– LeAndrade
If you’re not using JS you can’t expect a different behavior than HTML provides (maybe some magic with CSS, but it’s not ideal). I mean, you have nothing to change the default behavior.
– fernandosavio