1
Good afternoon, I’m doing a project site and in it has those anchor links that lead from one part to the other of the page, but it’s not working right.
I put the link as
<a href="#violao">
<div class="col s6 m3 valing-wrapper" id="">
<div id="violao" class="valign-wrapper">
<span id="cursosspan">Violão</span>
</div>
</div>
</a>
And to call the link I put:
<a name="violao"></a>
But it’s not working properly and I don’t understand the pq, can anyone help me?
Test server: http://cliente.creativecode.art.br/TriadeGospel/cursos-triade-gospel.php
Someone could also refer me a script for it to go up the link rolling the page more smoothly?
from what I’ve seen in your domain you’re using url friendlies.. have you tried to call it that in href ? http://cliente.creativecode.art.br/TriadeGospel/cursos-triade-gospel.php#violao , I did this on your website and it worked.. that was the problem?
– Diego Lela
It would be interesting to separate the questions into different questions, otherwise the answer gets too wide
– Ricardo Pontual
Pedro, the anchor is working, in this example of the guitar, I advise you to put the anchor to the image directly, this way
#imagemesquerda
– Jorge.M
Pedro, I added in the answer a basic example of smooth scrolling using jQuery.
– Sam