Re: Targeting to <DIV> (or other ids)

Andrew n marshall wrote:

>Something that I just realized, thanks to my "<DIV> as Frames" example:
>
>With CSS-2's overflow:scroll there should be a way to scroll to a
>particular section of the enclosed content.  In frames, this would be done
>with the 'TARGET='.  Currently this refers to Frame names.  I recommend we
>extend this to include id's by preceding the value by a '#'.  For example:
>
><DIV id='sidebar'>
>   <A href='#sect2' target='#main'>Section 2</A>
> ...

Why the complication? In your example document, this works in IE:

  <DIV id='sidebar'>
     <A href='#sect2'>Section 2</A>
  </DIV>
  <DIV id='main'>
     . . .
     <H1 id='sect2'>Section Two</H2>
  </DIV>

David Perrell

Received on Wednesday, 26 November 1997 17:09:25 UTC