xwolf: Definitionsproblem

Beitrag lesen

Hi,

ok, hier also der Code:
<style type="text/css">

a {
  font-family:Verdana,Helvetica,Arial;
  font-size:10pt;
  text-decoration:underline;
  color:#ee82ee;
}

.button {
  font-family:Verdana,Helvetica,Arial;
  font-size:10pt;
  font-weight:bold;
  background-color:#ffffff;
  color:#000000;
  border-style:solid;
  border-color:#ff0000;
  border-width:1px;
  height:25px;
  text-align:center;
  text-decoration:none;
}

Und wie sehen die Klassen
a#link {}
a#visited {}
a#active {}

aus?

IMHO solltest du es so defienieren:

a {
  font-family:Verdana,Helvetica,Arial;
   font-size:10pt;
   text-decoration:underline;
   color:#ee82ee;
 }

a.button#link {
   font-weight: bold;
   background-color: #ffffff;
   color: #000000;
   border-style: solid;
   border-color: #ff0000;
   border-width: 1px;
   height: 25px;
   text-align: center;
   text-decoration: none;
 }
a.button#visited {
   font-weight: bold;
   color: Black;
}
a.button#active {
   font-weight: bold;
   color: Red;
}

Uebrigens sollte man hinter dem Doppelpunkt immer ein Lehrzeichen lassen.

Ciao,
  WOlfgang