Harlan Messinger <hmessinger.removethis@comcast.net> wrote:[color=blue]
>brucie <shit@bruciesusenetshit.info> wrote:[color=green]
>>in post: <news:bveki0$r50pj$1@ID-114100.news.uni-berlin.de>
>>"Harlan Messinger" <h.messinger@comcast.net> said:
>>[color=darkred]
>>> I can't seem to figure out how to specify that the width of a block should
>>> be "enough". For example, I've got a form on a page. With styles, I've given
>>> the form a background and a border. It takes up 100% of the width of the
>>> viewport. If the labels and controls are narrow, I've got a great light gray
>>> expanse on the right side of the form.[/color]
>>
>>URL?[/color]
>
>
http://gavelcade.com/form.asp, which validates Strict.[/color]
form {display: inline-block;}
table or table-cell would do just as well as inline-block.
However, none of the above values are supported by IE.
form {max-width: 20em; }
works well in better browsers (Opera, Mozilla, etc.), but has no
effect in IE.
A slight modification
form {width: 20em; max-width: 20em; }
body>form {width: auto;}
works just as well in better browsers, but causes horizontal scrolling
instead of wrapping at smaller window sizes in, guess what, IE.
So many ways of doing this, but IE is just useless. :-(
Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor
Steve Pugh <steve@pugh.net> <http://steve.pugh.net/>