Not taking vertical space in strict mode, but is taking vertical space in quirks mode

Not taking vertical space in strict mode, but is taking vertical space in quirks mode

Post by don.hose » Sat, 21 Oct 2006 13:45:05


Here's the relevant piece of code.

<div style="position:relative;height:506;width:700; z-index:1;
background-image:url(images/Mat-Tan.png);">
<div style="position:absolute;z-index:2; height:0; width:0;">
<img src="images/Frame-Brown-Land.png" alt="" />
</div>
<div style="position:absolute;top:100px; left:125px;">
<img src="images/poster1.jpg" alt="" />
</div>
</div>

In strict mode, anything that follows this appears below the output
(and the background image isn't displayed). In quirks mode, which I'd
prefer to avoid, the output is as I expected (the basic idea is to
simulate the appearance of a framed/matted poster). Any ideas what I'm
doing wrong with my css?
 
 
 

Not taking vertical space in strict mode, but is taking vertical space in quirks mode

Post by don.hose » Sat, 21 Oct 2006 14:03:14


Found it. Duh, I need to give UNITS on that.

Never mind...