On Apr 10, 2012, at 2:28 PM, Ghodmode wrote:

> On Tue, Apr 10, 2012 at 12:28 PM, David Hucklesby <huckle...@gmail.com> wrote:
> ...
>> Nice one, Vince.
>> 
>> One small issue: The div.colimg (float) sitting beside div.coltxt (new
>> block formatting context) -- your second solution -- does not need the
>> 100px left margin. For some reason Webkit makes div.coltxt 100px too
>> short, and you end up with a 100px gap on the right. Remove margin-left
>> and Webkit agrees with Mozilla.
> 
> Thanks David.  That's a good catch.  That left margin is entirely unnecessary.
> I should've tested it in webkit.
> 
> I think that margin was left over from an earlier attempt in which I had the
> left block (colimg) absolutely positioned.
> 
> I think I understand why it's shorter than intended.  Since I didn't set a 
> width
> and it's not floating, div + margin should take up the width of the
> div.fourthbannertxt -100px for div.colimg...  I think.

Not really, it is a bug, still present in release Safari and (I thinkā€¦ ) 
release Chrome.
https://bugs.webkit.org/show_bug.cgi?id=79046
(bug has been fixed in nightly webkit builds)

Philippe
--
Philippe Wittenbergh
http://l-c-n.com/






______________________________________________________________________
css-discuss [css-d@lists.css-discuss.org]
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