Jump to content

links within a page


ober

Recommended Posts

http://www.americanbeautytools.com/site/index.php?req=prod&cat=handpieces#10517

 

This should move the user to a link on the page (model 10517).  It works perfectly in FF or Opera but in IE it drops down to random places around the actual link.  Any idea what I can do to get it to show up properly?

Link to comment
https://forums.phpfreaks.com/topic/93348-links-within-a-page/
Share on other sites

it just depends on how your HTML is formated.

the way those links work is that it takes you

to wherever that id is called for.

 

so if i had this:

 

<html>
<head>
	<title>
		My Website
	</title>
</head>
<body>
	<div id="header">
		Header
	</div>
	<div id="content">
		Content
	</div>
	<div id="footer">
		Footer
	</div>
</body>
</html>

 

 

and then you put a link like this:

<a href="page.html#content">Content</a>

 

it will take you to the div with the id content.

 

so if its not taking you to the right place in IE,

try moving around the area that has the id of

which you are calling. Or if that ID has CSS

styling, just create a random new ID for the

place you want to link to so that IE can link

to the correct position you want it to link to.

Link to comment
https://forums.phpfreaks.com/topic/93348-links-within-a-page/#findComment-479688
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.