How to define multiple CSS attributes in JQuery?

Posted by Edward Tanguay on Stack Overflow See other posts from Stack Overflow or by Edward Tanguay
Published on 2009-01-15T15:35:29Z Indexed on 2010/03/24 1:03 UTC
Read the original article Hit count: 412

Filed under:
|

Is there any syntactical way in JQuery to define multiple CSS attributes without stringing everything out to the right like this:

$("#message").css("width", "550px").css("height", "300px").css("font-size", "8pt");

If you have, say, 20 of these your code will become hard to read, any solutions?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about css