On Aug 5, 2007, at 4:08 PM, oliver wrote:
When using CSS properties with hyphens, you must convert them to
camelCase, e.g, "textAlign".
This is not true. If you want to use hyphenated CSS properties, all
you have to do is wrap them in quotation marks.
This won't work:
$('.aDiv').css({float
When using CSS properties with hyphens, you must convert them to
camelCase, e.g, "textAlign". It might also work if you use the two-
argument version of the css function, e.g. .css("text-align",
"center")
o
On Aug 5, 5:45 am, jayturley <[EMAIL PROTECTED]> wrote:
> I am having a bit of a problem
Erik is correct, but I would also add that it only when you do
css({fontWeight:'bold',textAlign:'left'}) but not when you do
css('font-weight','bold')
On 8/5/07, Erik Beeson <[EMAIL PROTECTED]> wrote:
>
> I'm surprised this isn't addressed in the Docs for CSS or in the FAQ. I
> think this page sho
I'm surprised this isn't addressed in the Docs for CSS or in the FAQ. I
think this page should say something about it:
http://docs.jquery.com/CSS#css.28_properties_.29
Anyways, use textAlign and fontFamily. Same is true for any property with a
hyphen in it.
--Erik
On 8/5/07, jayturley <[EMAIL P
4 matches
Mail list logo