I have a button that redirects to another page on my website. But I want it to send me not to the top, but to a specific part of the file. I'm putting the id in the href , but it doesn't take it (when I pull out the id it redirects perfect, so the path is correct, but at the top). What can be?
this is the link
<li><a href="cumples_y_eventos.html/#mesas">MESAS DULCES</a></li>
And this is the element where I want it to appear
<article class="articulo">
<div class="diseños" >
<figure id="mesas" class="ejemploDiseños"><img src="imagenes/el punto logo.jpg" alt=""></figure>
<div class="subeInfo">
<h4>Mesas dulces</h4><h3>divertidas</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.adipisicing Lorem ipsum dolor sit amet, consectetur adipisicing elit</p>
</div>
</div>
</article>
You have to remove the backslash from the url for it to work for you:
This is because with the slash it is interpreted as one more route.