On Sat, Aug 20, 2011 at 12:27 AM, Barry Brevik <[email protected]> wrote: > Is there a way, with css, to make a FORM and a containing DIV hug the > widest form element without specifically dimensioning the widths in > pixels? Out of the box, the form and the div take up all of the > available width in the browser. > > Here is a test page demonstrating my dilemma: > > http://www.manicreader.com/testpage.html
Use float:left on the DIV#container, then on the element that follows it, use clear:left. > TIA, > > Barry Brevik -- Ghodmode http://www.ghodmode.com/blog ______________________________________________________________________ css-discuss [[email protected]] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
