Olaf Bosch schrieb:
> 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?
>   
A dash is illegal in a javascript identifier. In other words, use one of 
these:
css("text-align", "center")
css({"text-align": "center"})
css({textAlign: "center"})

That should do it.

-- 
Jörn Zaefferer

http://bassistance.de


_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to