Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.