You are here: Re: css selectors « HTML « IT news, forums, messages
Re: css selectors

Posted by Jon Slaughter on 04/18/07 19:48

I have no idea why css can't have an selector algebra? Why not (li>a) +
(ul -li div a)

with - selecting the elements where the expression evaluates to true. I
suppose it could be a drag on the system in some cases but it would be nice.

So the above expression would select all list elements who has a list
element above it with a link in it and who itself is of a child of a user
list and contains a div which contains a link.

This would allow one to get very specific selection but still retains
backwards compatibility. I'm not sure about the complexity involved as there
might be traversal issues but I'm sure it could be very useful.

Jon

 

Navigation:

[Reply to this 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

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