1
I have this code:
<div id="text"><p>A Intertráfego está disponível a ser alcançada a qualquer momento.
Saiba <a href="pedir_cotacao.html#map">onde estamos</a> e <a
href="pedir_cotacao.html#otherQuestion"> os nossos contactos </a></p></div>
The problem is that the link to the map does not work, changes to the correct page but not to the div I want, and the other link (ask quotation#otherQuestion) works perfectly, I have tried even an invisible div on top of the map and put the link to this div and tb does not give. Any tips? Obgado
You could post your html code from this page request quote.html#map ?
– Silvio Andorinha
I think that’s the answer to your question. 
 
 http://stackoverflow.com/questions/7314990/link-a-div-to-a-particular-section-on-a-different-page-in-html
– urb
Is there enough space under the div (or enough div height) for it to be at the top of the screen? For example, imagine that the div "map" is the bottom of the page and is 200px high, if there is no space underneath for the scroll to occur and get to the top of the screen, it will only be 200px from the bottom of the screen and so it doesn’t seem to work, but it actually works. I wonder if I understood?
– Filipe Moraes
I understand, but is this the case? http://www.iwanttobesanta.com/order_quotation.html The link is being made on the home page (index)
– Miguel
http://www.iwanttobesanta.com/order_quotation.html#otherQuestion and http://www.iwanttobesanta.com/order_quotation.html#map work, what’s the problem?
– Filipe Moraes
The links are on the index. And if we click on the link to go to the map ("...where we are..") although going to the correct page does not go to the map div
– Miguel
I understand, I believe the problem lies in the fact that you’re using absolute Ivs. I noticed that the "#otherQuestion" also does not work because it is not positioning properly, although it seems. This will have to be done with Jquery: http://stackoverflow.com/questions/3972082/problem-with-html-anchor-in-absolute-div-300px-from-the-top
– Filipe Moraes
Obgado, but because it says that they are not positioned properly?
– Miguel
Because when opening with the anchor "#otherQuestion", you should position the div at the top of the screen since there is a scroll for this, but it does not contain, it is in the middle of the page, so it is not working properly.
– Filipe Moraes