CSS-Selector für <td>
bearbeitet von
Hallo Tom,
bei diesem HTML hier
~~~html
<h2>Foo</h2>
<table>
...
</table>
~~~
wird es mit CSS schwierig, wenn Du nur die Table im Abschnitt Foo formatieren willst.
Es müsste schon
~~~html
<h2 id="foo">Foo</h2>
<table>
...
</table>
~~~
sein (dann geht der Nachbarselektor #foo+table) oder besser noch
~~~html
<section id="foo">
<h2>Foo</h2>
<table>
...
</table>
</section>
~~~
für `#foo table`, dann bist Du nicht auf direkte Nachbarschaft angewiesen.
> Und wenn ich eine Zelle, wenn sie einen negativen Zahlenwert enthält, auch noch rot einfärben könnte...
Kannst Du JavaScript auf die Seite bringen?
_Rolf_
--
sumpsi - posui - obstruxi