Adjust attributes of CSS class?

36 views
Skip to first unread message

Lee Goddard

unread,
Oct 2, 2012, 5:27:50 AM10/2/12
to mootool...@googlegroups.com
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

verylastminute

unread,
Oct 2, 2012, 5:46:25 AM10/2/12
to mootool...@googlegroups.com, l...@leegoddard.net
The simplest is to append a <style /> element to the document head, containing the new styles...

Lee Goddard

unread,
Oct 2, 2012, 6:07:50 AM10/2/12
to verylastminute, mootool...@googlegroups.com
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.

Barry van Oudtshoorn

unread,
Oct 2, 2012, 7:34:05 AM10/2/12
to mootool...@googlegroups.com
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: mootool...@googlegroups.com
Subject: [Moo] Re: Adjust attributes of CSS class?

Lee

unread,
Oct 2, 2012, 8:47:08 AM10/2/12
to mootool...@googlegroups.com

Decoupling almost always good - quite agree.

Media Queries - I've not seen that RFC before, a whole, exciting world
awaits me... thanks!
Reply all
Reply to author
Forward
0 new messages