[thelist] CSS: question about @import
Jim Dabell
jim-lists.evolt.org at jimdabell.com
Thu Jul 25 14:49:00 CDT 2002
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thursday 25 July 2002 8:37 pm, Means, Eric D wrote:
[snip]
> Even in cases where the browser *does* correctly ignore the unknown CSS
> it can cause problems, however. For instance, Internet Explorer 6 for
> Windows doesn't understand position: fixed. If you have position: fixed
> in your stylesheet, IE6 will treat it as if it is the default (position:
> relative). This causes problems because inevitably the "fixed" element
> ends up somewhere the designer never intended it to be. In this case the
> only option is to somehow hide the "position: fixed" from IE6 and show it
> "position: absolute" instead, while still serving position: fixed to UAs
> which can understand it (like Mozilla).
Actually, I don't think "hiding" is necessary in this case - you can just
specify one rule after another:
#mydiv {
position: absolute;
position: fixed;
}
Browsers that don't understand 'fixed' should retain 'absolute' (at least as
far as I understand it - does anybody know of a browser this doesn't work
for?).
- --
Jim
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE9QFMX3tJNldoQhi8RAkcyAJ4/bb14E0HxjhCMvMX8WSmhceVYyQCgqKbr
nrRGuhXIryYm1gq/o7+uH+E=
=iLgC
-----END PGP SIGNATURE-----
More information about the thelist
mailing list