Joerg Andreas: CSS-Datei wie muss die aussehn

Beitrag lesen

Servus,

zuerst mal Link auf CSS richtig setzen:
<LINK href="css/style.css" type="text/css" rel="stylesheet">
CSS liegt hier im Unterverzeichnis "css" und heißt style.css

dann mit/in einem editor das stylesheet aufbauen (der einfachheit halber klebe ich Dir hier mal mein standard-css rein). Probier's mal aus. :-)

body
{
font-family: arial,helvetica,sans serif;
font-size: 12px;
font-weight: normal;
}

th
{
font-family: arial,helvetica,sans serif;
font-size: 12px;
font-weight: bold;
color: #000000;
}

td
{
font-family: arial,helvetica,sans serif;
font-size: 12px;
font-weight: normal;
color: #000000;
}

a:link
{
font-family: arial,helvetica,sans serif;
font-size: 12px;
font-weight: normal;
color: #9999CC;
}

a:hover
{
font-family: arial,helvetica,sans serif;
font-size: 12px;
font-weight: normal;
color: #92C300;
}

a:visited
{
font-family: arial,helvetica,sans serif;
font-size: 12px;
font-weight: normal;
color: #CC3300;
}

jetzt hast du style für body, tabellenkopf,tabellenfeld und links in der style.css stehen. abspeichern und ausprobieren.

Viel Erfolg, Jörg