(Joseph's reply moved to the bottom)

On 6/27/09 1:32 AM, David Hucklesby wrote:
Stevio wrote:
Is it possible to expand a container's width to fit its content?

Well, IE 6 treats "width" as "min-width" and likely does what you want. Non-IE browsers behave similarly if you add a "display: table;" declaration.

Don't know how to deal with IE 7 though... :(

Joseph Taylor wrote:
IE7 handles "min-width" just fine. You can also use a hack or conditional stylesheet to feed IE6 it's "width" style.

Perhaps I misunderstood, but I thought Stevio wanted the opposite effect
to min-width - namely, a width that expands if the content does not fit.

I don't know how to do that in IE 7.


List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org

Reply via email to