Media queries would perhaps be a better bet... Decoupling content, behaviour and presentation is (nearly) always a good idea.
Barry van Oudtshoorn www.barryvan.com.au From: Lee Goddard Sent: 2012-10-02 6:07 PM To: verylastminute Cc: mootools-users@googlegroups.com Subject: [Moo] Re: Adjust attributes of CSS class? True, I just wanted to be able to reposition and rescale certain elements based on screen size. I can go through them manually ($$) but altering the class' definition seemed the logical step. On 02/10/2012 11:46, verylastminute wrote: > The simplest is to append a <style /> element to the document head, > containing the new styles... > > On Tuesday, October 2, 2012 11:28:00 AM UTC+2, Lee wrote: > > Is it possible to adjust the attributes of a CSS class, such that > the definition of .myClass would have 'top' set to '0px'? > > TIA Lee >