Hi,

If I understood correctly you need the background color of the div or p tag to 
change with the a link color, correct?

Even knowing that this is a CSS list, I think you can solve this using 
Javascript, or better, JQUERY. With JQUERY, at the moment the user hovers a 
link, you can apply / remove a class or apply / remove a style on a div, p tag, 
etc.

Hope it helps.



 Cristiano Diniz da Silva

________________________________
http://mcloide.wordpress.com
Web Development & Solutions
+ 1 561 809 1928
Delray Beach, Fl
PHP5 Zend Certified Engineer
Before printing, just keep in mind your commitment with the environment!





________________________________
From: Gautam Bhatia <gautam2678s...@gmail.com>
To: Tim Snadden <li...@snadden.com>
Cc: css-d@lists.css-discuss.org
Sent: Thursday, April 23, 2009 5:49:30 AM
Subject: Re: [css-d] Regarding Inline styles

On Thu, 2009-04-23 at 09:50 +1200, Tim Snadden wrote:
> Regarding Inline styles
hello tim,
         Thank for the reply , Actually it is not what i meant , what i
wanted to know was in an inline style i know it refers to  the element
that it is being applied on , but is there a way can i use the same code
on other element as well in an inline style, something along this
lines..
<div>
This is a text and it should be 
style="color:red">red</a>...</p>  </div> .Now what if i want to apply
same rec color effect on the div layers as well w/o the use of
ID/classes. Actually i'm trying to apply style to navigation bar , which
has different ul//li/div's and p's tag  using javascript, where if the
user clicks on the link  , the "current active" link changes style to
something else. I know there is a simpler way , i was just wondering if
there was a way, cause it would really help , otherwise using the
javscript i will have to get parentNode/ and other nodes through DOM
which can give me fits sometime. :).  Thank you.
Regards,
Gautam Bhatia .



______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org-- http://www.evolt.org/help_support_evolt/



      
______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to