Einzelne Transparente Tabellenspalten (CSS)
ajburk
- css
Hi, ich möchte eine Tabelle über einen Hintergrund machen. Die Tabelle hat eine beliebige Farbe und ist zu 20% durchlässig, sodass das Hintergrundbild durchscheint.
Wenn ich dies in den head schreibe, also mit
<style type="text/css">
td {
background-color: #FF8A00;
color: black;
filter:alpha(opacity=80);
-moz-opacity:80%;
...
(hab ich in diesem Forum gefunden), gilt diese Anweisung ja für alle Tabellenspalten im gesamten Html-Dokument. Ich möchte allerdings nur einzelne Zellen transparent machen. Wie kann ich das machen?
Optimal wäre sowas wie
<table>
<tr>
<td background-color: #FF8A00 color: black filter: alpha(opacity=80) -moz-opacity:80%>
...
allerdings funktioniert das nicht so.
Kann mir jemand weiter helfen?
Hi,
[...], gilt diese Anweisung ja für alle Tabellenspalten im gesamten Html-Dokument.
Jain, es gilt für alle Zellen.
<table>
<tr>
<td background-color: #FF8A00 color: black filter: alpha(opacity=80) -moz-opacity:80%>
...
allerdings funktioniert das nicht so.
Ist klar. du musst:
<td style="background-color: #FF8A00 color: black filter: alpha(opacity=80) -moz-opacity:80%">
machen
Kann mir jemand weiter helfen?
ich kanns wie du siehst und bin sicher nicht der einzigste
MfG
Hi,
<td style="background-color: #FF8A00 color: black filter: alpha(opacity=80) -moz-opacity:80%">
verdammt, copy&paste fehler. muss natürlich
<td style="background-color: #FF8A00; color: black; filter: alpha(opacity=80); -moz-opacity:80%;">
heißen
MfG
Super, klappt alles.
Vielen Dank!!