[jQuery] easy/quick css inheritance?
Brice...
Do you realize that tags/objects can be assigned more than one class at a
time?
<span class="larger black">Larger than other text and with a black
background</span>
<!----------------//------
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
andy@icglink.com
615.370.1530 x737
--------------//--------->
-----Original Message-----
From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com]On
Behalf Of Brice Burgess
Sent: Friday, June 30, 2006 4:25 AM
To: jQuery Discussion.
Subject: Re: [jQuery] easy/quick css inheritance?
neytema wrote:
> There is no point in doing this :).. Just use classNames instead :)
>
Perhaps I may be wrong in my approach. I'm trying to build a function
which applies a drop shadow to all elements with a class name of "ds"...
simply put, if you apply
the class "ds" to an element, a nice alpha transparent background will
hopefully be drawn around it ;) Also, I'd like to be able to handle the
case where an element is styled via the inline styling tag (which I
often use-- bad idea?) -- e.g., <img src="..." style="position:
absolute; top: 15px; left: 40px;" class="ds">
My approach has a disadvantage in that the element to be
"dropshadowed" cannot already be assigned a class. I could perhaps
rework things so that if a div exists with class DS its PARENT element
has a drop shadow drawn around it... however, this won't work with an
<IMG> as it doesn't contain any innerHTML? Is there some other attribute
I should be using?
~ Brice
> On 6/30/06, Brice Burgess <bhb@iceburg.net>