ober Posted February 27, 2008 Share Posted February 27, 2008 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? Quote Link to comment https://forums.phpfreaks.com/topic/93348-links-within-a-page/ Share on other sites More sharing options...
Northern Flame Posted February 29, 2008 Share Posted February 29, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/93348-links-within-a-page/#findComment-479688 Share on other sites More sharing options...
ober Posted March 5, 2008 Author Share Posted March 5, 2008 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? Quote Link to comment https://forums.phpfreaks.com/topic/93348-links-within-a-page/#findComment-483922 Share on other sites More sharing options...
Northern Flame Posted March 6, 2008 Share Posted March 6, 2008 Right now I cant think of another way, but maybe if you give me a link to the page you are having trouble with I can think of an alternative. Quote Link to comment https://forums.phpfreaks.com/topic/93348-links-within-a-page/#findComment-484636 Share on other sites More sharing options...
haku Posted March 6, 2008 Share Posted March 6, 2008 There is a link in the first line of the first post. Quote Link to comment https://forums.phpfreaks.com/topic/93348-links-within-a-page/#findComment-484705 Share on other sites More sharing options...
ober Posted March 6, 2008 Author Share Posted March 6, 2008 There is a link in the first line of the first post. http://www.americanbeautytools.com/v2/index.php?req=prod&cat=handpieces#10517 Very similar to the first post, but I made a slight modification that doesn't seemed to have helped at all. Quote Link to comment https://forums.phpfreaks.com/topic/93348-links-within-a-page/#findComment-484948 Share on other sites More sharing options...
fenway Posted March 6, 2008 Share Posted March 6, 2008 Don't have IE when I'm sitting right now... is this ID on a relatively positioned element? Quote Link to comment https://forums.phpfreaks.com/topic/93348-links-within-a-page/#findComment-485028 Share on other sites More sharing options...
ober Posted March 6, 2008 Author Share Posted March 6, 2008 It'd on a div that isn't absolutely positioned, so yeah. Quote Link to comment https://forums.phpfreaks.com/topic/93348-links-within-a-page/#findComment-485253 Share on other sites More sharing options...
fenway Posted March 6, 2008 Share Posted March 6, 2008 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). Quote Link to comment https://forums.phpfreaks.com/topic/93348-links-within-a-page/#findComment-485301 Share on other sites More sharing options...
ober Posted March 6, 2008 Author Share Posted March 6, 2008 At this point I'm starting to think i'm going to just have to run a JS routine after the page has loaded to "re-position" the page. Quote Link to comment https://forums.phpfreaks.com/topic/93348-links-within-a-page/#findComment-485366 Share on other sites More sharing options...
ober Posted March 7, 2008 Author Share Posted March 7, 2008 Anyone have any better ideas? Quote Link to comment https://forums.phpfreaks.com/topic/93348-links-within-a-page/#findComment-485757 Share on other sites More sharing options...
esoltas Posted March 7, 2008 Share Posted March 7, 2008 I seem to end up in the right place with Safari. Quote Link to comment https://forums.phpfreaks.com/topic/93348-links-within-a-page/#findComment-486580 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.