android
12-16-2007, 08:50 PM
I'm running IE6 and the latest version of FF.
I'm playing with CSS1 and noticed that once again a big difference but oddly, this time IE got me the desired effect.
Try it and you will notice that the margin-top in FF disregards that <p> is inside a <div> but it's correctly dispayed in IE.
Here is the code:
<html><head><style type="text/css">
<!--
body { margin: 100px 100px 100px 100px; }
div { height: 250px; letter-spacing:2pt; font-weight: bolder; color:red; }
p { margin: 30px 30px 30px 30px; }
--></style><title>Hey</title></head><body>
<font face=impact>Hey!</font><br>
<div style="background: #FFFFCC; color: #000000;">
<p>Ready, set, go!</p>
</div>
</body></html>
I'm sure there is a bypass, but is this a FF bug?
I'm playing with CSS1 and noticed that once again a big difference but oddly, this time IE got me the desired effect.
Try it and you will notice that the margin-top in FF disregards that <p> is inside a <div> but it's correctly dispayed in IE.
Here is the code:
<html><head><style type="text/css">
<!--
body { margin: 100px 100px 100px 100px; }
div { height: 250px; letter-spacing:2pt; font-weight: bolder; color:red; }
p { margin: 30px 30px 30px 30px; }
--></style><title>Hey</title></head><body>
<font face=impact>Hey!</font><br>
<div style="background: #FFFFCC; color: #000000;">
<p>Ready, set, go!</p>
</div>
</body></html>
I'm sure there is a bypass, but is this a FF bug?