CSS

Linguaggi e sistemi

Moderatori: Foto UtentePaolino, Foto Utentefairyvilje

Avatar utente
Foto Utentebob93
0 3
Messaggi: 49
Iscritto il: 23 gen 2009, 20:25
0
voti

[1] CSS

Messaggioda Foto Utentebob93 » 8 apr 2009, 11:49

Salve.....sto imparando i css....e ho un piccolo problema......devo riuscire a svolgere un esercizio inerente alle pseudo-classi...voglio che i link abbiano un colore nero prima di essere cliccati.....Ho craeto questo sorgente .....però non mi funziona, qualcuno mi saprebbe dire cosa non va....grazie in aticipo.....



Codice: Seleziona tutto

<html>
 <head>
   <title>Prova css</title>
   <style type="text/css">
   a : link {color: black } ;

   body {background:yellow} ;

    </style>
 </head>


 <body>
  <a href="http://www.electroportal.net">ELECTROPORTAL</a>
 </body>

</html>

Avatar utente
Foto Utentecampacavallo
0 3
Messaggi: 49
Iscritto il: 19 nov 2008, 18:16
0
voti

[2] Re: CSS

Messaggioda Foto Utentecampacavallo » 8 apr 2009, 12:20

<html>
<head>
<title>Prova css</title>
<style type="text/css">
a : link {color: black } ;

body {background:yellow} ;

</style>
</head>


<body>
<a href="http://www.electroportal.net">ELECTROPORTAL</a>
</body>

</html>


a:link dev'essere attaccato
ciao!

Avatar utente
Foto Utentephylum
6.191 5 7 12
G.Master EY
G.Master EY
Messaggi: 3217
Iscritto il: 9 ott 2007, 12:40
0
voti

[3] Re: CSS

Messaggioda Foto Utentephylum » 8 apr 2009, 12:54

;) concordo vorrei solo aggiungere:

1. riguardo a ";"
e' suff. usarlo SOLO per delimitare piu' props. :P

2. riguardo ai colori: consiglio di usare o la forma #rrggbb o rgb(rosso,verde,blu)

3. per il colore della pagina dovresti usar Immagine
\int_{}tella
Immagine


Torna a “PC e informatica”