Hi, > Hi @all, > i will a DIV appand to ID test and give test a little bit of CSS, this > works fine > > $("#test").css({overflow:"hidden"}).append("<div ...................... > > This fails: > > $("#test").css({text-align:"center"}).append("<div ...................... > > what is to do?
$("#test").css({"text-align":"center"}).append("<div ...................... The '-' is interpreted as an operator when it is used outside of a string. Christof _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/