You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Joerg Heinicke <jo...@gmx.de> on 2004/04/23 09:40:42 UTC

Re: cvs commit: cocoon-2.1/src/blocks/linotype/samples/styles main.css

On 23.04.2004 09:18, ugo@apache.org wrote:

> ugo         2004/04/23 00:18:28
> 
>   Modified:    src/blocks/linotype/samples/styles main.css
>   Log:
>   Added CSS workaround for missing suppor of position:fixed in IE6.

Just yesterday I came across the same thing and found probably an easier 
workaround:

http://www.w3.org/Style/banner.css

Instead of using

div.banner {
   position: fixed;
}

you write

div.banner {
   position: absolute;
}

* > div.banner {
   position: fixed;
}

As IE also ignores the selector, position: fixed is never applied.

 From what I can see with the current workaround position:fixed is 
neither used in other browsers, is it?

Joerg

Re: cvs commit: cocoon-2.1/src/blocks/linotype/samples/styles main.css

Posted by Ugo Cei <u....@cbim.it>.
Joerg Heinicke wrote:
> As IE also ignores the selector, position: fixed is never applied.
> 
>  From what I can see with the current workaround position:fixed is 
> neither used in other browsers, is it?

Don't ask me how it works, I just found it doing a Google search for 
"CSS IE position: fixed". It looks fine in Mozilla/IE 6/Safari, but IE 
5.2 for the Mac does not recognize the "@media screen" rule and does not 
  apply any style.

If you think your solution is easier, please apply it. I'm not a purist, 
so it's fine as long as it works.

	Ugo