...

View Full Version : Anchors within DIV tags



thetroubleis
11-23-2005, 05:01 PM
Hi, i am using the div tag to create a small scrolling box within the pages on a site i am working on and i was wondering is there any way to use anchors within a div box on a MAC? when i simply use an anchor, it scrolls up or down to the <a name> just fine on a a Windows PC, but on a MAC it freaks out and scrolls the entire page around. <div style="overflow:auto;height:315px;width:468px;"> is the code for the div box i am using.

perhaps i need to name the div box? and if i do , do i simply put a name=X or how do i do that? thanks in advance to whoever helps me :)

thetroubleis
11-28-2005, 05:28 PM
does anyone have any ideas ?

_Aerospace_Eng_
11-28-2005, 06:06 PM
Add id="somename" name="somename" to the open div tag. Then your link to that div should be

<a href="#somename">Go to somename</a>

thetroubleis
11-29-2005, 07:53 PM
hi thanks for your help. that didnt work though. the problem is the content within the DIV scrolls, and the anchor links are within the DIV. on the IBM it simply takes you to the right place, but on MAC , it scrolls the entire page way down, instead of just within the DIV. what can i do about this?

thetroubleis
11-30-2005, 07:09 PM
anyone have anyideas ? has anyone ever even heard of this bug before?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum