Jump to content

links within a page


ober

Recommended Posts

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
Share on other sites

Alright, here's what I've figured out: It is apparently going to the right place, but if the page isn't fully loaded when it gets there, it might actually shift the screen slightly after it finishes loading.

 

Can I avoid that somehow?

Link to comment
Share on other sites

It'd on a div that isn't absolutely positioned, so yeah. 

I haven't had a chance to delve into the code (at "real" work), but it sounds like the IE rendering engine calculates the position on the page mid-load (or jumps mid-load... same thing).

Link to comment
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.