Wydaje mi sie, ze da sie to zrobic w CSS2 (ale zapomnij wtedy o IE users), widzialem mechanizmy ktore moga to umozliwic, ale nie znam CSS2 az tak dobrze, wiec trzeba poczekac az
Dominik odwiedzi topic
---
Chociaz .... moze obejdzie sie bez niego
Kod
5.8.1 Matching attributes and attribute values
Attribute selectors may match in four ways:
[att]
Match when the element sets the "att" attribute, whatever the value of the attribute.
[...]
Example(s):
For example, the following attribute selector matches all H1 elements that specify the "title" attribute, whatever its value:
H1[title] { color: blue; }
Definiujesz wtedy 2 style, jeden dla wszystkich, np. H1, a drugi tak jak wyzej, dla calej reszty, ktory neguje to co jest w stylu dla wszystkich.