Posted by dorayme on 10/31/07 21:00
In article <4728df2e$1_3@news.bluewin.ch>,
Bernhard Sturm <sturmnixspam@datacomm.ch> wrote:
> Bernhard Sturm wrote:
> > Jonathan N. Little wrote:
> >>
> >>
> >> <body id="top">
> >> <div id="accessibility"> ...
> >
> > but that again would not validate as it is not allowed to have an inline
> > element without a block element.
>
> ahh forget my comment. Of course you are right :-) does that work with
> all browser? id as an anchor?
>
> bernhard
id works well enough in all modern browsers to identify a page
point. That does not mean all modern browsers do exactly the same
thing. Make yourself a test page and try it in different browsers
when the ids are in different positions. My rough impression is
that if the link is anywhere but in the bottom "less than a
browser-height-worth" of a page, clicking it will bring the id
point to the top. A good place to put such ids are in headings.
The found point then look natural.
(iCab has the clever little enhancement of briefly flashing a
subdued elegantly colour horizontal gradient background to the
point concerned - which is helpful when the point is not at the
very top of the browser window)
--
dorayme
Navigation:
[Reply to this message]
|