Pfade sind jetzt OK, da hattest du recht! 
Jetzt zum CSS, schau mal bitte hier
Sieht hoffentlich ganz frisch aus, das ist http://domain.xx
der Kalender ist aber wirklich hier, http://domain.xx/calendar
In dieser, http://domain.xx/calendar/index.php, ist folgender Code:
////////////////////////////////////////////////////////////////
// CSS for the calender ///////////////////////////////////////
//
echo "<STYLE type=\"text/css\">
<!--
.A {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
font-style: normal;
line-height: normal;
font-weight: bold;
font-variant: normal;
text-transform: none;
text-decoration: none;
vertical-align: middle;
text-align: center;
color: $numberTextColor;
}
.sel {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
font-style: normal;
line-height: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
text-decoration: none;
text-align: center;
vertical-align: middle;
cursor: default;
color: $selTextColor;
background-color: $selBGColor;
}
.event {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
font-style: normal;
line-height: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
text-decoration: none;
cursor: default;
vertical-align: middle;
text-align: center;
color: $numberTextColor;
background-color: $numberBGColor;
}
.empty {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
font-style: normal;
line-height: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
text-decoration: none;
cursor: default;
vertical-align: middle;
text-align: center;
color: $emptyTextColor;
background-color: $emptyBGColor;
}
.today {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
font-style: normal;
line-height: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
text-decoration: none;
cursor: default;
vertical-align: middle;
text-align: center;
color: $todayTextColor;
background-color: $todayBGColor;
}";
if($act == "event") {
echo "table {
width: 250px;
border-style: none;
padding: 0px;
margin: 0px;
vertical-align: middle;
}
td {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10;
font-weight: normal;
font-style: normal;
text-align: center;
vertical-align: middle;
padding: 2 2 2 2;
text-align: left;
vertical-align: top;
vertical-align: middle;
}\n";
} else {
echo ".table {
border-style: none;
border-collapse: $spacing;
empty-cells: hide;
}
.td {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
font-style: normal;
line-height: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
text-decoration: none;
text-align: center;
vertical-align: middle;
}";
}
echo "-->\n</STYLE>\n\n";
// End of CSS
////////////////////////////////////////////////////////////////
Wie kann ich das extern gestalten, also der index.php sagen, hol dir die CSS-Datei von http://domain.xx/calendar/calendar.css?
Das überwirft sich nämlich mit meinem CSS, habe schon einiges geändert, bin aber noch nicht ganz zufrieden, zumal das mit dem CSS so nicht valide ist.
Zuletzt bearbeitet von B. Scheuert (2005-10-04 06:05:35)
Entschuldigt mein schlechtes Deutsch.
Besucht auch mal
mein PunBB Forum.