Setting #sfh to display: table; and then removing the width from both #sfh and #sxw makes the whole thing expand only when neccessary in everything except in IE7 and below (does not support display: table;).

How about just setting the width for IE7 and below by using a conditional comment or server side solution and allowing the rest to set the width automatically?

Example of a conditional comment:
<!--[if lte IE 7]><style type="text/css">#sxw {width: 418px;}</style><![endif]-->
posted by [Old Forum guest] • 7 years and 7 months ago Link