Code for page??

  • Meron
  • Graduate
  • Graduate
  • Meron
  • Posts: 168

Post 3+ Months Ago

Hi,

When I make a link in HTML the link alway's show's
the begin (top) of the page.
But I know there is a code that can make the link go to
the middle of the page or the end.
Can some one help please??

Thank You
  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Posts: 3422
  • Loc: Richland, WA

Post 3+ Months Ago

where you want the link to go make a pointer like so
Code: [ Select ]
//name
<a name="name">

//link
<a href="#name">name</a>
  1. //name
  2. <a name="name">
  3. //link
  4. <a href="#name">name</a>


where ever 'name' is the link 'link' will take you to it
  • Meron
  • Graduate
  • Graduate
  • Meron
  • Posts: 168

Post 3+ Months Ago

I don't get it :oops:

where do I have to put the code??
  • Cafu
  • Student
  • Student
  • Cafu
  • Posts: 97

Post 3+ Months Ago

You put the "name" code SpooF showed you where you want the page to scoll to. For example you might have one at the top of the page like this:
Code: [ Select ]
<a name="page_top">

and one at the bottom of the page like this:
Code: [ Select ]
<a name="page_bottom">


think of them as markers in your page.

If you want to link to them in the same page do:
Code: [ Select ]
<a href="#page_bottom">go to bottom</a>


If you want to link to them from another page do:
Code: [ Select ]
<a href="homepage.html#page_bottom">go to bottom of homepage</a>



** one thing to note: Anchor links sometimes do not work correctly when they are in table elements, depending on the browser.

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 58 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.