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