[Javascript] chaning CSS properties

Aaron Bassett aaronbassett at gmail.com
Tue Nov 14 05:07:48 CST 2006


IMHO you really should be modifying the elements class.
Same as you shouldn't be inserting CSS within your markup using the style
attribute you shouldnt be mixing it in to your javascript



On 11/14/06, Abyss - Information <Info at abyss.ws> wrote:
>
>  Hi,
>
> Could someone please suggest what would be a "best practice" for chaning
> css properties?
>
> eg?
>
> If i had a background image and wanted to change that depending on the
> screen resolution, would it be wise to change it in a class? or in a
> propertie itself?
>
> Regards
> Abyss
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20061114/ca2bc17b/attachment.htm>


More information about the Javascript mailing list