[SOLVED] CSS-Datei für Tabelle in Content
Posted: Sat 1. Mar 2008, 09:51
Hallo Phpwcms-lerIn
ich habe folgendes Problem:
beim einbinden eines css-bereichs für tabellen wird nicht nur wie gewünscht in dieser Tabelle, sondern im ganzen cms die tabelle geändert.
Leider finde ich hier keine Lösung
, vielleicht habt Ihr eine Idee.
Ich verwende 1.35, folgendes habe ich in der frontend.css eingefügt:
das HTML-Konstrukt:
mit Gruss aus der Schweiz
prisma
ich habe folgendes Problem:
beim einbinden eines css-bereichs für tabellen wird nicht nur wie gewünscht in dieser Tabelle, sondern im ganzen cms die tabelle geändert.
Leider finde ich hier keine Lösung

Ich verwende 1.35, folgendes habe ich in der frontend.css eingefügt:
Code: Select all
/* ++ Tabellen mit Foto */
table {
border-collapse: separate;
border-spacing: 2px 2px;
margin: 1em;
width: 97%;
float:right;
border:1px;border-color:#333399;
border-style:solid;
}
.td {
padding: 2px 15px 2px 5px;
}
td.name,
td.city,
td.email,
td.partei {
font: normal normal normal 12px/1.2em Arial, Helvetica, Sans-Serif;
text-align: center;
border-right: 1px;
border-right-style: dotted;
border-bottom:1px;
border-bottom-style:dotted;
}
th {
padding: 3px 15px 3px 5px;
}
th.pic {
padding: 5px 5px 5px 5px;
}
tbody th {
text-align: right;
}
table th.pic,
table th.name,
table th.city,
table th.email,
table th.partei {
font: italic normal normal 10px/1.2em Arial, Helvetica, Sans-Serif;
text-align: center;
border-right: 1px;
border-right-style: dotted;
border-bottom:1px;
border-bottom-style:dotted;
}
table thead tr,
table tbody tr {
background-color: #eff3f9;
}
table tr.pic,
table tr.name,
table tr.city,
table tr.email,
table tr.partei {
border-right: dotted;
background-color: #eff3f9;
border-right-color: #333399;
border-right-style:dotted;
}
table colgroup.portrait {
background-color: #eff3f9;
}
Code: Select all
<table cellspacing="2" align="right">
<colgroup> <col class="pic" /> </colgroup> <colgroup class="portrait"> <col class="name" /> <col class="city" /> <col class="email" /> <col class="partei" /> </colgroup>
<thead>
<tr class="first-child">
<th class="first-child pic">Bild</th>
<th class="name">Name/Vorname</th>
<th class="city">Wohnort</th>
<th class="email">Kontakt</th>
<th class="last-child partei">Partei</th>
</tr>
</thead>
<tbody>
<tr class="first-child partei">
<th class="first-child pic"><img width="88" height="114" src="/picture/upload/Bild_folgt.jpg" alt="Portrait" /></th>
<td class="name">Lehmann Peter</td>
<td class="city">Rodels</td>
<td class="email"><a href="mailto:kp2@domleschg.ch">kp2@domleschg.ch</a><noscript>(at)</noscript><noscript>(dot)</noscript></td>
<td class="last-child partei">SP</td>
</tr>
</tbody>
</table>
prisma