it's textAlign!

On 11/28/06, Christof Donat <[EMAIL PROTECTED]> wrote:

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
[email protected]
http://jquery.com/discuss/




--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to