Rolf B: CSS-Selector für <td>

Beitrag lesen

Hallo Tom,

bei diesem HTML hier

<h2>Foo</h2>
<table>
  ...
</table>

wird es mit CSS schwierig, wenn Du nur die Table im Abschnitt Foo formatieren willst.

Es müsste schon

<h2 id="foo">Foo</h2>
<table>
  ...
</table>

sein (dann geht der Nachbarselektor #foo+table) oder besser noch

<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...

Ohne JavaScript setzt das wohl eine klasse Mitarbeit der Fuzzies voraus. Aber: kannst Du JavaScript auf die Seite bringen?

Rolf

--
sumpsi - posui - obstruxi