Wenlong Xu wrote:
> Hi, dear all,
> I have met a float problem in IE6/7.
> 
> code:
> ----------------------------------------------------------------------------
>     <div id="1" style="background-color: #0f0;">
>         <div  style="float:left;height:30px;width:100%;">
>         </div>
>         <div style="clear:both;"></div>
>     </div>
>     <div  id="3" style="background-color: #f00;height:5px; margin: 0 
> 5px;"></div>
> ----------------------------------------------------------------------------
> it looks pretty good in FF3+/IE8, but in IE6/7  the #3 DIV seems to be inside 
> #1 DIV.
> is this a IE bug or something else? how to fix it?
> 
> any reply will be helpful, thanks.

Change id="1" to id="one" and id="3" to id="three" with the
appropriate changes to your style sheet, and then try it out
to see how it works.

If you have any other div ID's that start with numerals,
they must also be changed to start with a letter [A-Za-z].

See http://www.w3.org/TR/1999/REC-html401-19991224/types.html
section 6.2 SGML basic types.

Reese

______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to