Tach ihrs.
Ich hab ein kleines Problem mit meinem CSS oder besser gesagt der Darstellung.
Ich wollte mir für das Menü meiner HP jetzt Buttons machen. Also habe ich in meine CSS Datei folgendes hinein geschrieben:
CSS
/* Hauptklasse fuer den tag <a>...</a> (Verweise) */
a {
font-family:SUSE Sans,arial,helvetica,sans serif;
text-decoration: uppercase;
color:green;
}
/* Pseudoformat fuer den tag <a>...</a> (Verweise)
Bitte die Reihenfolge beachten! -> :link, :visited, :hover, :active. */
a:link {
color:#2A8588;
text-decoration: underline;
}
a:visited {
color:#575757;
text-decoration: underline;
}
a:hover {
color:orange;
text-decoration: overline;
}
a:active {
color:darkcyan;
text-decoration: uppercase;
}
a.cssmenu:link {
width: 80px;
color: black;
background-color: #9f9f9f;
text-align: center;
text-decoration: none;
font-size: 12px;
border-top: 1px solid silver;
border-left: 1px solid silver;
border-bottom: 1px solid black;
border-right: 1px solid black;
padding-top: 2px;
padding-bottom: 2px;
padding-left: 4px;
padding-right: 4px;
margin-right: 2px;
}
a.cssmenu:visited {
width: 80px;
color: black;
background-color: #9f9f9f;
text-align: center;
text-decoration: none;
font-size: 12px;
border-top: 1px solid white;
border-left: 1px solid white;
border-bottom: 1px solid black;
border-right: 1px solid black;
padding-top: 2px;
padding-bottom: 2px;
padding-left: 4px;
padding-right: 4px;
margin-right: 2px;
}
a.cssmenu:hover {
width: 80px;
color: black;
background-color: #ffffff;
text-align: center;
text-decoration: none;
font-size: 12px;
border-top: 1px solid white;
border-left: 1px solid white;
border-bottom: 1px solid black;
border-right: 1px solid black;
padding-top: 2px;
padding-bottom: 2px;
padding-left: 4px;
padding-right: 4px;
}
Alles anzeigen
mit dem letzten Teil des Codes wollte cih die Buttons erzeugen, wenn ich jetzt aber in das a Tag class="cssmenu" schreibe, dann bleibt der einfach so und es erscheint kein Button.
Es wäre nett, wenn ihr mir helfen könntet, da ich gerne ein Menü mit Buttons hätte.
mfg yanbo
PS: ich habe auch schon versucht die Klassifizierungen für das normale a tag wegzunehmen, doch das hat auch nichts gebracht!