Jump to content

links


searls03

Recommended Posts

It sounds like you're trying to hide content so that visitors won't see it until they click a link. If that's correct, you'll need to use something like JavaScript. The following tutorial may help:

http://www.cssnewbie.com/showhide-content-css-javascript/

 

 

On the other hand, if you're just looking to jump to the text after a link is clicked, you could look into named anchors:

http://www.google.com/search?q=html+named+anchors

Link to comment
https://forums.phpfreaks.com/topic/237260-links/#findComment-1219544
Share on other sites

<a href = "123.html#asd" ...

 

 

Note that if you want the named anchor reference (#asd) to work, you'll need to add a named anchor near the <div> tag.

 

<div id="asd"><a name="asd"></a>
Hi there
</div>

 

If you add the named anchor it will jump to the newly shown content. If you don't want the page to jump to the new content the #asd isn't needed. You could just have the href attribute set to "123.html".

Link to comment
https://forums.phpfreaks.com/topic/237260-links/#findComment-1220145
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.