WCM - Das österreichische Computer Magazin Forenübersicht
 

Zurück   WCM Forum > Rat & Tat > Programmierung

Programmierung Rat & Tat für Programmierer

Microsoft KARRIERECAMPUS

Antwort
 
Themen-Optionen Ansicht
Alt 09.06.2003, 10:03   #1
blauesau
Hero
 
Registriert seit: 08.04.2003
Beiträge: 821


Standard Verschiedene Linkfarben

Ist es möglich mit CSS verschiedene Linkfarben zu realisieren?

Z.B.: ...

Und im CSS:

a.weiss { color:#FFFFFF }

So funktioniert es leider nicht...
blauesau ist offline   Mit Zitat antworten
Alt 09.06.2003, 10:13   #2
blauesau
Hero
 
Registriert seit: 08.04.2003
Beiträge: 821


Standard

Ach funktioniert eh, das "visited" hat mir einen Strich durch die Rechnung gemacht...
blauesau ist offline   Mit Zitat antworten
Alt 09.06.2003, 10:18   #3
_m3
Inventar
 
Registriert seit: 24.09.2001
Beiträge: 7.335


Standard

Also Im Mozilla 1.4 und im IE 6.0 tut das folgende Script genau das, was Du willst:
PHP-Code:
<html>
<
head>
<
title>Color-test</title>
<
style type="text/css">
    
BODY background-color:red; }
    
a.weiss color:#FFFFFF } 
</style>
</
head>
<
body>

[
url="http://www.wcm.at/"]WCM[/url]

</
body>
</
html
____________________________________
Weiterhin zu finden auf http://martin.leyrer.priv.at , http://twitter.com/leyrer , http://www.debattierclub.net/ , http://www.tratschen.at/ und via Instant Messaging auf Jabber: m3 <ät> cargal.org .
_m3 ist offline   Mit Zitat antworten
Alt 09.06.2003, 11:03   #4
sagi
Elite
 
Registriert seit: 08.11.2001
Alter: 42
Beiträge: 1.285


Standard

Zitat:
a.weiss { color:#FFFFFF }
Im Idealfall sollte am Ende noch ein Strichpunkt stehen:

a.weiss { color:#FFFFFF; }



mfg

c.
____________________________________
www.sagmueller.net

Freedom - use it or lose it (Lawrence Lessig)

Im übrigen bin ich der Meinung, dass Microsoft zerschlagen werden muss.
sagi ist offline   Mit Zitat antworten
Alt 11.06.2003, 12:54   #5
SNo0py
Inventar
 
Registriert seit: 08.02.2000
Beiträge: 1.696


Standard

z.B.:

Code:
/* navigation-links */
.nav_link:link {  color: #FFFFFF; text-decoration: none; font-weight: normal}
.nav_link:visited {  color: #FFFFFF; text-decoration: none; font-weight: normal}
.nav_link:hover {  color: #CC0000; text-decoration: none; font-weight: normal}
.nav_link:active { color: #CC0000; text-decoration: none; font-weight: normal}
.nav_link_act:link {  color: #FFFFFF; text-decoration: none; font-weight: bold}
.nav_link_act:visited {  color: #FFFFFF; text-decoration: none; font-weight: bold}
.nav_link_act:hover {  color: #B8B870; text-decoration: none; font-weight: bold}
.nav_link_act:active { color: #B8B870; text-decoration: none; font-weight: bold}

/* links */
a:link {  color: #003399; text-decoration: underline; font-weight: bold}
a:visited {  color: #003399; text-decoration: underline; font-weight: bold}
a:hover {  color: #CC0000; text-decoration: underline overline; font-weight: bold}
a:active { color: #CC0000; text-decoration: underline overline; font-weight: bold}
Und dann
Code:
<a href="..." class="nav_link"...>
--> Achtung auf die Reihenfolge!

mfg
____________________________________
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
SNo0py ist offline   Mit Zitat antworten
Antwort


Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
 

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.

Gehe zu


Alle Zeitangaben in WEZ +2. Es ist jetzt 18:53 Uhr.


Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Forum SEO by Zoints
© 2009 FSL Verlag