Issue 2439: negative margin defined when an element is floating right is causing the issue http://code.google.com/p/chromium/issues/detail?id=2439
Comment #3 by [EMAIL PROTECTED]: Based on the reductions I am afraid that IE7 and FF3 appear to be doing the wrong thing here. Look at what the standard says: http://www.w3.org/TR/CSS2/visuren.html#float- position The important point from the standard is the following, "2. If the current box is left- floating, and there are any left floating boxes generated by elements earlier in the source document, then for each such earlier box, either the left outer edge of the current box must be to the right of the right outer edge of the earlier box, or its top must be lower than the bottom of the earlier box. Analogous rules hold for right- floating boxes." In other words, the top-margin: -12px in the example is being used because IE7 and FF3 are incorrectly deciding to wrap the div to a new line. It is as if they believe that the text is to wide to accommodate the inner div on the same line. It isn't. I have attached "screenshot.PNG" that shows the result of opening the reductions in IE7, FF3, WebKit for Windows and Chromium 0.3.155.0 with top-margin: -12px. Because WebKit does not move the div to a new line the negative top margin moves that div up above the current line. The fix that would work for IE7, FF3, Safari, and Google Chrome would be this: <div style="float:left">Lead Story</div><div id="clock" style="float: right">Tue Oct. 14 2008</div> Make Lead Story an explicit div and float it to the left. Then you don't need the top- margin -12px. Would you make this change to your site and tell me if it works for you? Attachments: screenshot.PNG 111 KB Issue attribute updates: Status: Fixed Owner: [EMAIL PROTECTED] -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Chromium-bugs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/chromium-bugs?hl=en -~----------~----~----~----~------~----~------~--~---
