• Jetzt anmelden. Es dauert nur 2 Minuten und ist kostenlos!

Linkeigenschaften in seperater Box ändern

Maxs

Neues Mitglied
Hi ich bins wieder ;)

Ich hab ne Frage und zwar wie ich Links in eigenen CSS Boxen ändere. Ich habe ja jetzt schon globale Linkeigenschaften, will sie aber in einem Untermenü anders. Wie bezeichne ich die?

Code:
HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>FechtUnionLinz - Kontakt</title>
<style type="text/css">
body {
font-family: Arial, Verdana, Trebuchet MS; 
}
#menue {
color: #b92023;
text-align: left;
padding-top: 60px;
word-spacing: 2.2em;
font-size: 1.0em;
}
#header {
float: left;
width: 342px;
height: 107px;
}
#cont {
background-image: url(style/images/main_back.png);
width: 980px;
height: 352px;
clear:left;
}
#contact {
width: 950px;
height: 160px solid;
background-color: gray;
margin-top: 10px;
word-spacing: 1em;
float: left;
color: white;
font-size: 1em;
text-align: right;
padding-top:100px;
padding-bottom: 30px;
padding-right: 30px;
}
image {
float: left;
width: 310px solid;
height: 352px;
}
#text {
padding-left: 50px;
width: 620px;
height: 352px;
float: right;
overflow: scroll;
}
a:link {
color: #b92023;
text-decoration: none;
border: 0px;
}
a:hover {
border-bottom: 1px dotted;
}
a:active {
color: #000;
text-decoration: none;
}
a:visited {
color: #b92023;
text-decoration: none;
}
</style>
</head>
<body>
<div id="header">
<img src="style/images/head_neu.png" />
</div>
<div id="menue">
<strong><a href="news.html">News</a> <a href="contest.html">Tuniere</a> <a href="training.html">Training</a> <a href="verein.html">Verein</a> <a href="photo.html">Fotos</a> <a href="download.html">Download</a> <a href="contact.html">Kontakt</a></strong>
</div>
<div id="cont">
<div id="txt">
</div>
<div id="img">
</div>
</div>
<div id="contact">
<a href="sitemap.html">Sitemap</a> <a href="impress.html">Impressum</a> <a href="link.html">Links</a>
</div>

</body>

</html>

Ja ich weiß der Code istnicht sehr sauber und ich hab die Dividietis aber primär gehts ja jetzt mal um die Linkeigenschaften. Genauer gehts es um den Teil mit Sitemap, impressum etc. so ändern das die Schrift weiß ist.

Hier gehts zur Datei

Mit freundlichen Grüßen
Maxs
 
Code:
#contact a {...}
spricht alle verweise an, die sich in einem Element mit der ID contact befinden.
 
Hi.

Das hier dürfte gehen:

css-code
Code:
#contact a {
color:#fff;
}
Liebe Grüße :grin:

sunoghlin

//Edit: zu langsam :grin:
 
Danke habs eingefügt und es hat geklappt.

Funktioniert das dann auch mit den Linkeigenschaften(a:link, a:visited, etc.)

Oder muss man das dann anders angehen.
 
Zurück
Oben