By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,640 Members | 2,167 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,640 IT Pros & Developers. It's quick & easy.

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

P: n/a
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?

Oct 20 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a

do*******@gmail.com wrote:
<div style="position:relative;height:506;width:700; z-index:1;
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?
Found it. Duh, I need to give UNITS on that.

Never mind...

Oct 20 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.