- From: Chris Wilson (PSD) <cwilso@MICROSOFT.com>
- Date: Mon, 22 Sep 1997 09:01:05 -0700
- To: "'Bjorn E. Backlund'" <bjorn@cooper.xanthus.se>, "'www-style@w3.org'" <www-style@w3.org>
I would say (a) should be displayed on top of (b), because its z-index is larger. And incidentally, it should be irrelevant that you cook up the surrounding <P>...</P> in this case, because it is the IMAGE that is being absolutely positioned. If you position the surrounding paragraph instead of the image, you're asking for trouble - e.g., if an author sets up padding for the paragraph, it will throw the image location off in your system. -Chris Chris Wilson cwilso@microsoft.com *** > -----Original Message----- > From: Bjorn E. Backlund [SMTP:bjorn@cooper.xanthus.se] > Sent: Friday, September 19, 1997 8:38 AM > To: 'www-style@w3.org' > Subject: Absolute positioning images > > > We're currently implementing the CSS positioning stuff in Intranet > Writer (www.xanthus.se) and > I have a question regarding the z-order of elements? > > We treat all <IMG>s as text level objects, so the file > > <HTML> > <IMG> > </HTML> > > is parsed as > > <HTML> > <P><IMG></P> > </HTML> > > Assume the following doc: > > <HTML> > <IMG id=a style="position: absolute; left: 10; right: 10; > z-index: 2"> > <DIV id=b style="position: absolute; left: 10; right: 10; > z-index: 1"> > <P>Hello</P> > </DIV> > </HTML> > > Should (a) be displayed ontop of (b)? > > We treat <IMG>s as text level tags and put them into <P>s > => (a) will be within a <P> > => it won't be on the same level as (b) > => it will be displayed beneath (b)... > > Any comments? > > ---Bjorn > >
Received on Monday, 22 September 1997 12:02:27 UTC