Reply to Re: css selectors

Your name:

Reply:


Posted by Ben C on 04/17/07 22:06

On 2007-04-17, Jon Slaughter <Jon_Slaughter@Hotmail.com> wrote:
> Is it possible to refer to an a parent element and modify its attributes?
>
> Say I have a ul with some links in it:
>
><ul>
> <li>
> SomeText
> <a href="...">Link</a>
> </li>
></ul
>
>
> Now I want to change the color of SomeText depending on if a is hovered.

Not possible with pseudos. Change in pseudo-state can only affect styles
that apply to descendents, the adjacent sibling, and the descendents of
the adjacent sibling. Never ancestors.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация