W3C home > Mailing lists > Public > www-style@w3.org > September 1997

Absolute positioning images

From: Bjorn E. Backlund <bjorn@cooper.xanthus.se>
Date: Fri, 19 Sep 1997 14:38:24 -0100
Message-Id: <97Sep19.165859gmt-0100.28680-1@mimer.upnet.se>
To: "'www-style@w3.org'" <www-style@w3.org>

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 Friday, 19 September 1997 11:35:17 GMT

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