... ma continuo a sbagliare da qualche parte!
Se hai tempo e voglia, questo è quello che faccio e che non funziona.
QUESTA E' LA PAGINA HTML
.....
<link rel="stylesheet" href="stile.css" type="text/css">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p class="titolo">file 1.htm</p>
<p class="testo">testo file 1.htm</p>
<p class="testo">link normale file 2.htm</p>
....
....
....
....
....
<p class="bianco">testo con altri attributi</p>
</body>
</html>
E QUESTO E' IL FOGLIO DI STILE
.titolo { font-family: Verdana; font-size: medium; font-style: normal; line-height: normal; font-weight: bold; font-variant: normal; text-transform: none; color: #666666}
.testo { font-family: Verdana; font-size: x-small; font-style: normal; line-height: normal; font-weight: normal; font-variant: normal; text-transform: none; color: #666666}
.bianco { font-family: Verdana; font-size: x-small; font-style: normal; line-height: normal; font-weight: normal; font-variant: normal; text-transform: none; color: #FF0000}
a:link { font-family: Verdana; font-size: x-small; color: #999999}
a:active { font-family: Verdana; font-size: x-small; font-style: normal; color: #999999; text-decoration: underline}
a:active { line-height: normal; font-weight: normal; font-variant: normal; text-transform: none}
a:hover { font-family: Verdana; font-weight: normal; color: #999999; font-size: x-small; font-style: normal; line-height: normal; font-variant: normal; text-transform: none; text-decoration: underline}
a:link { font-style: normal; line-height: normal; font-weight: normal; font-variant: normal}
a:visited { font-family: Verdana; font-size: x-small; font-style: italic; line-height: normal; font-weight: normal; font-variant: normal; text-transform: none; color: #999999}
Fino a quando scrivo il testo del link, vengono usati gli attributi di .bianco; quando associo il link, diventa un link come gli altri ...
Grazie![]()

Rispondi quotando