[css-d] collapsing heights/widths for inline divs

2006-09-07 Thread [EMAIL PROTECTED]
hi all - 

problem is inline divs with dimensions that collapse when div is set to
display inline - 

- http://www.fatgraffix.com/testing/test_03-inlinedivs/

i'm assuming that inline elements can't have specified widths and heights -
is this true - ?

thx to all for your help...

=fgx=


mail2web - Check your email from the web at
http://mail2web.com/ .


__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- 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/


Re: [css-d] collapsing heights/widths for inline divs

2006-09-07 Thread Ed Seehouse
On 9/7/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 problem is inline divs with dimensions that collapse when div is set to
 display inline -

Of course they do - they are supposed to.

 i'm assuming that inline elements can't have specified widths and heights -
 is this true - ?

Pretty much, though you can give an inline box a line-height which
acts a lot like vertical padding.

We often talk about the box model, but really there are *two* box
models - one for block boxes and another for inline boxes.

DIVs shouldn't be used for inline anyway - that's what SPANs are for.

-- 
Ed Seedhouse
__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- 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/


Re: [css-d] collapsing heights/widths for inline divs

2006-09-07 Thread Philippe Wittenbergh

On Sep 8, 2006, at 9:33 AM, [EMAIL PROTECTED] wrote:

 problem is inline divs with dimensions that collapse when div is  
 set to
 display inline -

 - http://www.fatgraffix.com/testing/test_03-inlinedivs/

 i'm assuming that inline elements can't have specified widths and  
 heights -
 is this true - ?

width and height do not apply to inline elements (or elements set to  
display:inline)
http://www.w3.org/TR/CSS21/visudet.html#propdef-height
http://www.w3.org/TR/CSS21/visudet.html#the-width-property

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




__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- 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/