yes, i tried that but i need to have "breakable" spaces so that the text jumps to the next line if there is no enough horizontal space in the div.
On Sep 12, 11:46 pm, "Benjamin Sterling" <[EMAIL PROTECTED]> wrote: > I have you tried appending a   instead of a blank space? I can only > imagine the the blank space is being trimmed at some point. > > On 9/12/07, mrsheep <[EMAIL PROTECTED]> wrote: > > > > > > > hi, i'm trying to load tags into a tagcloud dynamically doing > > something like: > > > ... > > <div id="tagcloud"></div> > > .... > > > tags= ["first", "second", "third"]; > > $.each (tags, function (i, textval) { > > var newTag= $("<a href='#'></a>").text(textval).attr ("tagId", i); > > newTag.addClass ("tag"); > > $("#tagcloud").append(newTag).append(" "); > > }); > > > and that works fine in ff and opera but in ie (6-7) the tags appear > > without spaces in between ('firstsecondthird'). > > any suggestion? > > -- > Benjamin Sterlinghttp://www.KenzoMedia.comhttp://www.KenzoHosting.com