Forum Moderators: not2easy
Easy question. How do I make a div's width adjust to what is inside. If I leave the width blank, IE7 makes it 100%. I need it to adjust to whatever is inside the div which in this case is a submit button. I don't want to set it manually because I use the style for other things that are different widths.
Thanks,
Louis
Well generally you just need to float it to "shrinkwrap" it, but it's not officially legal to float something without specifying a width.
Perhaps the biggest question is why do you need this div there?
Would it not be possible to just use a span instead?