W3C home > Mailing lists > Public > www-style@w3.org > April 2002

Re: About fixed position

From: Andrew Clover <and@doxdesk.com>
Date: Mon, 22 Apr 2002 15:10:44 +0000
To: www-style@w3.org
Message-ID: <20020422151044.A13879@doxdesk.com>
Alex Herlas <alexherlas@yahoo.com> wrote:

> anybody... can tell me why?

Clearly a browser issue, though you do not say which browser you are using.

For authoring matters, please use Usenet or one of the many web design
mailing lists. Questions specifically about CSS usage are suited to
css-discuss <http://two.pairlist.net/mailman/listinfo/css-discuss>
but off-topic here where issues to do with the CSS spec itself are
discussed.

> <div style="position:fixed;top:10;left:10">

You will want 'px' units on those co-ordinates.

> <img src="img.jpg"></img>

For best compatibility with HTML, use:

  <img src="img.jpg"" />

(you will also need an 'alt' attribute for it to be valid.)

> but when an scrolling the html document down... the
> event like mouseover or  mouse out don't work...

I'm guessing you are using IE5/Mac. There is a known bug where hover
effects don't work in scrolled fixed-position element, I guess this is
the same thing. Other browsers (Mozilla, Opera, IE/Win when fixed with
http://and.doxdesk.com/software/js/fixed.html ) do not exhibit this
behaviour. Still, it is worth avoiding DHTML elements that rely on
hover effects in fixed-position elements at this time.

-- 
Andrew Clover
mailto:and@doxdesk.com
http://and.doxdesk.com/
Received on Monday, 22 April 2002 11:14:01 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:14 GMT