On Sep 5, 2007, at 8:45 AM, =fatgraffix= wrote:

> this has always bugged me -
>
> why don't spans allow margin-top, margin-bottom, or padding-top,  
> padding-bottom, yet seem to allow left and right margins + padding:
>
> - http://www.fatgraffix.com/clients/stickecreative/stickecreative/ 
> liveaction-question.html

But your padding is applied. Only, it doesn't have the effect you  
expect.
have a look at a more radical testcase (and resize window for fun):
<http://dev.l-c-n.com/_temp/span-padding.html>
Padding on inline non-replaced elements does not affect the  
surrounding line-box. The spans will cover the text below/above in  
the same block.

As for margins: vertical margins on non-replaced inline elements  
(like span) have no effects.
<http://www.w3.org/TR/CSS21/box.html#margin-properties>

Philippe
---
Philippe Wittenbergh
<http://emps.l-c-n.com>




______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to