MooTools: Set Style Per Media
By Steven Snell | Published January 20th, 2009 in NewsI’d bet one of the most used MooTools methods is the “setStyle” method, which allows you to set CSS style declarations for an element. One of the limitations of MooTools’ setStyle method is that it sets the specific style for all medias. What if I want to set a style for only a specific media type? I’ve created a setStile method that allows you to specify the media for which a style is set.



