W3C home > Mailing lists > Public > www-html@w3.org > November 1997

Targeting to <DIV> (or other ids)

From: Andrew n marshall <amarshal@usc.edu>
Date: Tue, 25 Nov 1997 23:18:21 -0800
Message-ID: <01BCFA02.A78856A0.amarshal@usc.edu>
To: "'www-html@w3.org'" <www-html@w3.org>

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>
</DIV>
<DIV id='main'>
   . . .
   <DIV id='sect2'>
      <H1>Section Two</H2>
      . . .
   </DIV>
</DIV>

The bigger question this brings to mind is: Does this allow embedding 
documents?  Personally, I don't like the idea of embedding documents over 
arbitrary elements.  Anyone have any other suggestions to get around this?

Andrew n marshall
  student - artist - programmer
    http://www.media-electronica.com/anm-bin/anm
      "Everyone a mentor,  Everyone a pupil"
Received on Wednesday, 26 November 1997 03:26:40 UTC

This archive was generated by hypermail 2.4.0 : Thursday, 30 April 2020 16:20:32 UTC