Linking to anchor on another page

User 2193598 Photo


Registered User
2 posts

This may be a very simple question, and one I might already have the answer to, but I need to ask. I am trying to link to an anchor on another page from the one where the link will be in VSD, and the question is, where do I get the link or code for the other page? Can I preview the page I wanted to end up on and use that as the destination page link?

Thanks for the help.

Bill
User 187934 Photo


Senior Advisor
20,271 posts

Set your link on the page like this
http://mysite.com/mypage.html#anchor1

The anchor that you just linked to looks like this. Put this in an HTML box. Body HTML
<a name="anchor" id="anchor1"></a>
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2193598 Photo


Registered User
2 posts

Thanks for the quick reply. That works fine. I guess my confusion came because I am doing this in VSD and linking to pages not yet published.

Thanks again.
:)
User 2241737 Photo


Registered User
18 posts

Hi Sir,

Please help me with my problem. I am new to VSD. I want to create link to different section of the same page. I found that i need to do the following
<a href="#targetname">Your Link Text</a>
then
<a href="#jsmith">Click here to learn about John Smith.</a>

but how to set the font size, color, type. Please help.

User 187934 Photo


Senior Advisor
20,271 posts

I would use an HTML box and use this.
Header HTML
<style type="text/css">
<!--
a.mylink { color:#0000FF; }
a:visited.mylink { color:#800080; }
a:hover.mylink { color:#008000; }
a:active.mylink { color:#FF0000; }
.mylink{
font-family: sans-serif;
font-size: 20px;
}
-->
</style>

Body HTML
<a href="#jsmith" class="mylink">Click here to learn about John Smith.</a>

Now if you want to link another anchor to another anchor you would set your links like this.
<a href="#anchor1" class="mylink">link text 1</a>
<a href="#anchor2" name="anchor" id="anchor1" class="mylink">link text 2</a>
<a href="#anchor3" name="anchor" id="anchor2" class="mylink">Link text 3</a>
<a name="anchor" id="anchor3" class="mylink">Link text 4</a>
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2241737 Photo


Registered User
18 posts

Hi sir,

Thank you for your reply. I have followed your instruction and it works great.

How can i add the bold and italic? please help.

Thank you
Gunaseelan
User 187934 Photo


Senior Advisor
20,271 posts

Add the additional styling rules.:)
<style type="text/css">
<!--
a.mylink { color:#0000FF; }
a:visited.mylink { color:#800080; }
a:hover.mylink { color:#008000; }
a:active.mylink { color:#FF0000; }
.mylink{
font-family: sans-serif;
font-size: 20px;
font-style: italic;
font-weight: bold;
}
-->
</style>
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 464893 Photo


Ambassador
1,611 posts

Well done Eric you are nearly qualified as an Aussie ;)
The Guy from OZ


User 187934 Photo


Senior Advisor
20,271 posts

I'm looking up tickets to Australia right now.;)
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2241737 Photo


Registered User
18 posts

Hi Eric,

Thank you for your great help.

Gunaseelan

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.