That's the complete page (minus html/body and doctype tags). What I deleted by accident prior to posting is placing "nowrap" within the inner div -- that changes the behavior between the two browsers. My intent here is to have a div that doens't wrap content based on the width of the div.
I understand the 'em' solution works.. however, I thought the em unit was based on the font size of the container. I don't know how feasible that solution is for a div. Basically I'm trying to animate a div to 'close' and 'open' and not have the content wrap is what I'm after.. Any other ideas? On 1/23/06, Adam Kuehn <[EMAIL PROTECTED]> wrote: > Well Damn wrote: > >When the outer div is smaller than the larger div, i'd like it to hide > >the text -- not wrap. The code below works fine in IE, can anyone > >suggest what I'm doing wrong for firefox? > > > ><div id="testdiv" style="border:1px solid blue; width:200px; > >overflow:hidden"> > > <div width="100%"> > > <ul> > > <li> A test div.A test div.A test div.A test div.A test > >div.A test div.A test div.</li> > > <li> A test div.A test div.A test div.A test div.A test div.A > > test > >div.A test div.</li> > > <li> A test div.A test div.A test div.A test div.A test div.A > > test > >div.A test div.</li> > > <li> A test div.A test div.A test div.A test div.A test div.A > > test > >div.A test div.</li> > > <li> A test div.A test div.A test div.A test div.A test div.A > > test > >div.A test div.</li> > > </ul> > > </div> > ></div> > > > That code looks the same to me in FF 1.5 and IE6, even if I write it > so the inner div uses a style declaration instead of a width > attribute. The inner div holds at the 198px content width and > expands vertically to accommodate the wrapping list items. This is > the behavior I would expect. If I make the inner div a width of > 100em (instead of 100%) then the list items don't wrap and the > content to the right is hidden. But this behavior, too, is identical > in both browsers. What differences do you see? Perhaps you might > post a complete page, in case something else is interfering. > > > > -Adam Kuehn > > ______________________________________________________________________ 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/