On Jan 21, 2008, at 3:08 PM, Kim Brooks Wei wrote:
>> What do you mean ?
>> The div is explicitly set to be 100% wide (that is, as wide as the
>> parent block element, in this case <body>). It does that, correctly.
>
> Philippe, the div expands to the body width whether I set the width
> to 100% or not. The width is now not specified and the same thing
> happens.
That is normal and the default behaviour for a block level element.
<http://www.w3.org/TR/CSS21/visudet.html#propdef-width>
I suspect that what you want is for the div to be as wide as its
content, behaving like a table would do: shrink-wrapping. That div
won't do that be itself, though. Without declaring a width:
You could set it to 'display:table':
#artbody {display:table;}
but that won't work in iExploder.
Or you could float it, but then it won't centre.
Or you could declare a width on it, but no 100%. e.g
#artbody {width: 50em; margin:auto;}
>> #artbody has 'layout'
>>
>
> I'm sorry, I didn't get this reference.
<http://www.satzansatz.de/cssd/onhavinglayout.html>
Philippe
---
Philippe Wittenbergh
<http://l-c-n.com/>
______________________________________________________________________
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/