Seite 1 von 1

css-Problem

Verfasst: So 10. Jun 2007, 15:24
von willy3
Hallo
ich habe das hier mal gepostet, weil es ja recht off-tpoic ist.
Folgendes Problem:
ich habe in einem Template per css definiert:

Code: Alles auswählen

<link rel="stylesheet" type="text/css" href="http://www.drk-hannover.org/cms/cms/css/style.css">
<style type="text/css">
</style>
<h1 class="content">{TITLE}</h1>
<p>
  <!-- BEGIN:BLOCK -->
</p>
<div id="artlist">
<p><span COLOR="#FF0000">{PAGETITEL}</span>
<span class="artlistheadline">{HEADLINE}</span><br>
<span class="artlistimg">{IMG}</span> 
<span class="artlisttext">{TEXT}</span> 
<span class="artlistmore">{MORE}</span><br>
<span class="artlistdate">{DATE}</span>
</div id="artlist">

  <!-- END:BLOCK -->
und in meiner css (extern) folgendes geschrieben:

Code: Alles auswählen

/* Navigation  Artikelliste  */

/*  DIV-Bereich für die gesamte Artikelliste*/
#artlist {
         width: 460px;
        font-family: "Verdana", Arial, Helvetica, sans-serif;
}

/* Überschrift Artikel */
#artlist artlistheadline {
	font-size: 19px;
         font-color: #333333;
         font-weight: bold;
         margin-bottom: 3px;
         }

#artlist artlisttext {
	font: "Verdana", Arial, Helvetica, sans-serif;
	font-size: 1px;
	color: #000000;
}

#artlist artlistdate {
         font-size:9px;
         font-style:normal; 
         font-color: #cccccc;
}

#artlist artlistmore {
	font-size:19px;
         font-color: #999999;
}

#artlist artlistimg {
	margin-right: 2px;
	margin-bottom: 2px;
	border:10px;
	
}
leider kann ich nichts ändern, so dass ich in der css das alles man anpassen kann.
Wo liegt der Fehler?
muss ich aus dem template heraus den link zur css setzen?
oder ist es ausreichend/sinnvoll nur im template das css zu definieren?

Verfasst: So 10. Jun 2007, 16:46
von Dodger77
CSS-Fragen sind im Allgemeinen in einem HTML-/CSS-Forum (z.B. http://de.selfhtml.org) besser aufgehoben.

Aber ich will ja nicht so sein: meinst du nicht, dass die CSS-Klassen in dem Stylesheet einen voranstehenden Punkt verdient hätten? Also z. B.:

Code: Alles auswählen

#artlist .artlistheadline
statt

Code: Alles auswählen

#artlist artlistheadline

Verfasst: So 10. Jun 2007, 17:11
von willy3
jaja ich weiss... :oops:
aber ich dachte, weil Ihr doch alle hier sooooo gut seid!! :?

Vielen lieben Dank! es geht und erfreut mein Herzchen