-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark Wheeler
Sent: Tuesday, October 31, 2006 6:03 PM
To: CSS List
Subject: Re: [css-d] Can't figure this out - Center a div with variable
width

Hi Clint,

Yes, I understand that part. But the problem is that the content  
changes. Thus, I can not specify the width for the content div.  
That's where the problem is. Any other ideas?

Thanks,
Mark
---

I am really no expert on css but I try.

What about if you did something like this.

<div style="text-align:center;">
  <div style="min-width:1px;">
    CONTENT
  </div>
</div>

Of course you have to worry about IE not handling the min-width (I think
IE7 does).

Not completely tested but should give you a centered div.

Dennis Bixler

______________________________________________________________________
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