Brian Lowe <[EMAIL PROTECTED]> wrote:

If I use width: auto; then they all use 100% so I'm screwed again.

They don't for me, works fine.

Trouble is, auto-width-float is relatively new addition brought in with CSS 2.1 (standardising what many browsers were already doing). The spec in 2.0 says that any float *must* have a specified non-auto width, and some browsers (IE/Mac and Opera IIRC) did require that. Opera 8, on the other hand, now supports it.

What is the 'correct' syntax to tell compliant browsers that I want the
block to be as wide as the text (+padding) but no wider?

If you want to get shrink-to-fit elements on browsers that don't support CSS 2.1/auto-width-float, the only other documented way is a table (with table-layout: auto, the default). Which probably wouldn't be much use with positioned menus.

--
Andrew Clover
mailto:[EMAIL PROTECTED]
http://www.doxdesk.com/
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to