Forum Moderators: open

Message Too Old, No Replies

How do I use <a name> without losing elements in page?

         

shortshire

4:31 pm on Jan 18, 2007 (gmt 0)

10+ Year Member



Hello Everyone,

I am trying to construct a list that leads from one website to another website that has a list. In my main site I have it lead to the other site through an <a href="word.html/#listword>. Whenever I go to the page with the list word, i lose all elements of my page. If I go to the page without using the list word everything is fine. When using the list word I lose my style sheet, header, everything except the content. I was wondering how I would have it work so the stylesheet is still showing.

pageoneresults

4:38 pm on Jan 18, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



<a href="word.html/#listword">

Try removing the extra forward slash in the URI...

<a href="word.html#listword">

shortshire

4:57 pm on Jan 18, 2007 (gmt 0)

10+ Year Member



Thank you, that did the trick.

pageoneresults

4:57 pm on Jan 18, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



As a side note, the name attribute has been deprecated. It is suggested that you use id instead.

<a href="" id="fragment-identifier">

And then your location on the page...

<h2 id="fragment-identifier">

Note that you can only have one unique id per page.