To explain my problem, I\'m trying to make a div wide enough to accommodate a dynamically generated title without wrapping it, but the div also has other content, which I wa
A working jQuery example:
http://jsfiddle.net/8AFcv/
$(function() { $(".box").width($(".title").width()); })