Drei unterschiedlich große Links

Status
Nicht offen für weitere Antworten.

Fabian

Erfahrenes Mitglied
Hi,

ich hab mir ein CSS File erstellt, in dem ich drei verschiedene Links "gemacht" habe:

* Der NORMALE Link, 10px
* Der Menue Link, 11px
* Der Bottom-Menu Link - 9px

Das sieht zur Zeit so aus:

PHP:
A {
	text-decoration: none;
}
A:link,A:visited,A:active{
	color:#000000;
	cursor:hand;
	font-size:10px;
} 
a:hover{
	color:#D6022B;
	cursor:hand;
	font-size:10px;
}
#bmenu {
	font-size:9px;
	color:#000000;
	font-family:verdana;
}
#bmenu A:link,A:visited,A:active {
	color:#000000;
	cursor:hand;
	font-size:9px;
} 
#bmenu A:hover {
	color:#D6022B;
	cursor:hand;
	font-size:9px;
}
#lmenu {
	font-size:11px;
	color:#000000;
	font-family:verdana;
}
#lmenu A:link,A:visited,A:active {
	color:#000000;
	cursor:hand;
	font-size:11px;
} 
#lmenu A:hover {
	color:#D6022B;
	cursor:hand;
	font-size:11px;
}

Wenn ich jetzt einen normalen Link anklicke, wird er nachm anklicken 11px groß, das selbe beim kleinen. Was ist daran falsch? (Sorry, habe nichts gefunden und hab das CSS einfach durch testen erstellt) ;)

Danke! :rolleyes:
 
Ich habs bis jetzt noch nicht drausen, aber für jemand der das kann ist das doch bestimmt nicht so schwer.. Bitte helft mir :-)
 
Teste bitte folgende Ergänzung:

#bmenu A, A:link,A:visited,A:active {
color:#000000;
cursor:hand;
font-size:9px;
}

#lmenu A, A:link,A:visited,A:active {
color:#000000;
cursor:hand;
font-size:11px;
}
 
Danke!

Jetzt siehts so aus, dass der "normale" Link nicht angeklickt 11px hat und bei Hover 9px :eek: .

Wie kann ich das noch "fixen"?
 
Hmmm, bei mir funktioniert es:
PHP:
A {
    text-decoration: none;
}
A:link,A:visited,A:active{
    color:#000000;
    cursor:hand;
    font-size:10px;
} 
a:hover{
    color:#D6022B;
    cursor:hand;
    font-size:10px;
}
#bmenu {
    font-size:9px;
    color:#000000;
    font-family:verdana;
}
#bmenu a,A:link,A:visited,A:active {
    color:#000000;
    cursor:hand;
    font-size:9px;
} 
#bmenu A:hover {
    color:#D6022B;
    cursor:hand;
    font-size:9px;
}
#lmenu {
    font-size:11px;
    color:#000000;
    font-family:verdana;
}
#lmenu a,A:link,A:visited,A:active {
    color:#000000;
    cursor:hand;
    font-size:11px;
} 
#lmenu A:hover {
    color:#D6022B;
    cursor:hand;
    font-size:11px;
}

Zum Testen häng ich mal mein HTML-File an.

/edit
File ist Fehlerhaft. Bitte Ergänzen:
A {
text-decoration: none;
font-size:10px;
}
 

Anhänge

Zuletzt bearbeitet:
bei mir tritt dieser fehler auch auf.

so ist es richtig... ;)

Code:
a {
    text-decoration: none;
    font-size:10px;
}
a:link, a:visited, a:active{
    color:#000000;
    cursor:hand;
    font-size:10px;
} 
a:hover{
    color:#D6022B;
    cursor:hand;
    font-size:10px;
}
#bmenu a{
    font-size:9px;
    color:#000000;
    font-family:verdana;
}
#bmenu a:link, a:visited, a:active {
    color:#000000;
    cursor:hand;
    font-size:9px;
} 
#bmenu a:hover {
    color:#D6022B;
    cursor:hand;
    font-size:9px;
}
#lmenu {
    font-size:11px;
    color:#000000;
    font-family:verdana;
}
#lmenu a:link, a:visited, a:active {
    color:#000000;
    cursor:hand;
    font-size:11px;
} 
#lmenu a:hover {
    color:#D6022B;
    cursor:hand;
    font-size:11px;
}

es wird wohl (zumindest bei mir im ie6) ein unterschied zwischen groß- und kleinschreibung im css gemacht... ;)

gruß

hook
 
Danke fuer eure Antworten. Wie ich auf Cursor:Hand gekommen bin? Hab ich in "TopStyle Lite" gesehen :-).

Jedenfalls ist es jetzt so, dass die Link nicht mehr "groß" und klein werden, aber Hover bei normalen Links funktioniert hier komischerweise nicht.
 
Status
Nicht offen für weitere Antworten.

Neue Beiträge

Zurück