On 10/31/06, Mark Wheeler <[EMAIL PROTECTED]> wrote:
> to css) - Can you have a div (content) centered inside another div
> (container) BUT, the content div's width may be different because of
> content (thus you can't set the width) AND the div width must
> collapse around the content (so if a border was used, it would
> collapse around the content)? I can't figure this out. I'm sure there
> is a simple solution, but I can't seem to get there. Any help would
> be appreciative.

As far as I understand, if you don't set a width for the content div,
it will grow to fit the parent's width (in this case the container
div).

So I'm not sure what you mean by centering it. I'm not an expert in
CSS though, so someone might correct me! :)

Grey
______________________________________________________________________
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