Topic: Differences between HTML 4.0 and 4.01
I have noticed that if I use the Doc Statement:-
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" http://www.w3.org/TR/html4/loose.dtd">, IE7 fails to recognize one ID that I have placed within another ID. FF displays correctly.
IE7 displayed the two IDs corectly when I used the Doc Statement:-
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
The IDs in question are:-
#right {
float:right;
color:#E0E0E0;
background-color:#506F89;
width:130px;
margin-left:10px;
padding:1em;
}
#inner {
float:right;
color:#000000;
background-color:9EB1C0;
width:110px;
margin:3px;
padding:0.5em;
}
While the code is:-
<div id="right">
<div id="inner">
<h2 align="center">What's New</h2>
<hr>
<?php include("whatsnew.php"); ?>
</div>
</div>
The whatsnew.php just contains text:-
<p>Exciting news on the "Walk The Y" front!</p>
<p>Check out the new <a href="WalkTheY.php">Walk the Y page !</a>
All the text is displayed correctly, just the inner box with the lighter color is missing in IE7.
The display differences can be seen in FF and IE7 at ww w.irish type3dna.o rg/About.p hp
Any clues as to why the Doc Statement is upsetting IE7? And any suggestions to correct?
