You haven't said which DIV is causing the problem. You have only one div in your snippet so it is difficult to comment.
Generally, floated elements are relatively positioned within one another. Therefore, a non floated DIV will stretch 100% while floated DIV will be positioned relatively and automatically shrink to match the width of the content inside itself. Have you got a sample page where we can have a look at to see what is going on. --- On Tue, 11/17/09, jeffrey morin <[email protected]> wrote: > I am finding an IE bug that seems odd. I have a div with > two inputs inside > of it. the div is floating right and one of the inputs is > floating left and > the other right to create some space. here's what it looks > like > > <div class="float:right"> > <input class="float:left" /> > <input class="float:right" /> > </div> > > This works fine everywhere but in IE. It stretches the > containing div to > 100% width. So I have to add a set width to make it play > nice. For some > cases I am not going to want to add a width. Does anyone > know what's causing > this? > ______________________________________________________________________ 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/
