Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Community > Tech > [css] Fogli di Stile
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
publi
.grande:maestro.

User info:
Registered: Jun 2002
Posts: 885 (0.10 al dì)
Location:
Corso:
Anno:
Time Online: 8 Days, 6:51:22 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
[css] Fogli di Stile

Ma non è possibile avere piu di uno stile per i link? Nel senso, ho questo per tutti i link:

PHP:

A:link          {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: underline}
A:active        {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: underline}
A:visited       {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: underline}
A:hover         {BACKGROUND: none; COLOR: #666666; FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: underline}



e ne vorrei creare un altro per dei link diciamo speciali, tipo:

PHP:

.special A:link          {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: underline}
.special A:active        {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: underline}
.special A:visited       {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: underline}
.special A:hover         {BACKGROUND: none; COLOR: #666666; FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: underline}



Ma lo special non me lo tiene conto, perchè?

__________________
Acchiappasogni

23-06-2005 15:40
Click Here to See the Profile for publi Click Here to See the Blog of publi Click here to Send publi a Private Message Visit publi's homepage! Find more posts by publi Add publi to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
0m4r
.grande:maestro.

User info:
Registered: Mar 2002
Posts: 7287 (0.83 al dì)
Location: Düsseldorf (DE)
Corso:
Anno: ESAMI FINITI
Time Online: 49 Days, 0:57:33 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Re: [css] Fogli di Stile

Prova cosi:

PHP:

A.special:link          {...}
A.special:active        {...}
A.special:visited       {...}
A.special:hover         {...}


__________________
http://www.twitter.com/0m4r

23-06-2005 15:53
Click Here to See the Profile for 0m4r Click Here to See the Blog of 0m4r Click here to Send 0m4r a Private Message Find more posts by 0m4r Add 0m4r to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
publi
.grande:maestro.

User info:
Registered: Jun 2002
Posts: 885 (0.10 al dì)
Location:
Corso:
Anno:
Time Online: 8 Days, 6:51:22 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ma come classe metto:

PHP:

class="special"

???

Ho provato cosi ma non va!

__________________
Acchiappasogni

23-06-2005 16:12
Click Here to See the Profile for publi Click Here to See the Blog of publi Click here to Send publi a Private Message Visit publi's homepage! Find more posts by publi Add publi to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
0m4r
.grande:maestro.

User info:
Registered: Mar 2002
Posts: 7287 (0.83 al dì)
Location: Düsseldorf (DE)
Corso:
Anno: ESAMI FINITI
Time Online: 49 Days, 0:57:33 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

strano, dovrebbe funzionare, dai cmq un'occhiata qui: http://www.w3schools.com/css/css_pseudo_classes.asp


edit:
fai attenzione che devi posizionare con un certo ordine le pseudoclassi alrimenti non funzionano!!


Anchor Pseudo-classes
A link that is active, visited, unvisited, or when you mouse over a link can all be displayed in different ways in a CSS-supporting browser:

a:link {color: #FF0000} /* unvisited link */
a:visited {color: #00FF00} /* visited link */
a:hover {color: #FF00FF} /* mouse over link */
a:active {color: #0000FF} /* selected link */

Note: a:hover MUST come after a:link and a:visited in the CSS definition in order to be effective!!

Note: a:active MUST come after a:hover in the CSS definition in order to be effective!!


Note: Pseudo-class names are not case-sensitive.

Note: IE 4 and higher supports the anchor pseudo-class. NN 4.5 and Netscape 6 support the anchor pseudo-class only partially.

__________________
http://www.twitter.com/0m4r

Last edited by 0m4r on 23-06-2005 at 16:24

23-06-2005 16:20
Click Here to See the Profile for 0m4r Click Here to See the Blog of 0m4r Click here to Send 0m4r a Private Message Find more posts by 0m4r Add 0m4r to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
publi
.grande:maestro.

User info:
Registered: Jun 2002
Posts: 885 (0.10 al dì)
Location:
Corso:
Anno:
Time Online: 8 Days, 6:51:22 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ce l'ho fatta... è corretto quello che mi avevi dato tu, sbagliavo io a mettere la class, la mettevo nel <font class="">abc</font> anziche nella <a class="">abc</a>.

Grazie :)

__________________
Acchiappasogni

23-06-2005 19:49
Click Here to See the Profile for publi Click Here to See the Blog of publi Click here to Send publi a Private Message Visit publi's homepage! Find more posts by publi Add publi to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
DeepBlue
tired guy

User info:
Registered: Sep 2003
Posts: 4258 (0.52 al dì)
Location: CSN
Corso: Info tlc
Anno:
Time Online: 52 Days, 8:40:31 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

se usi i css potresti anche fare a meno del deprecatissimo <font> ;)

__________________
~ get Debian! ~ get FreeBSD! ~ get OpenBSD! ~

23-06-2005 19:56
Click Here to See the Profile for DeepBlue Click Here to See the Blog of DeepBlue Click here to Send DeepBlue a Private Message Find more posts by DeepBlue Add DeepBlue to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
N@RV1
www.narv1.net

User info:
Registered: Jan 2004
Posts: 759 (0.09 al dì)
Location: Garbagnate Milanese
Corso: TICOM
Anno: Primo
Time Online: 9 Days, 9:55:12 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

una curiosità

hover = "quando gli passo sopra"
active = "quando clicco su"
visited = "quando è già stato visitato!" giusto?! è x questo che vedo sempre lo stile visited e mai lo stile link!? {link = "quando lo vedo!?" }

thx

__________________
.:N@RV!:.

23-06-2005 20:05
Click Here to See the Profile for N@RV1 Click here to Send N@RV1 a Private Message Visit N@RV1's homepage! Find more posts by N@RV1 Add N@RV1 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
0m4r
.grande:maestro.

User info:
Registered: Mar 2002
Posts: 7287 (0.83 al dì)
Location: Düsseldorf (DE)
Corso:
Anno: ESAMI FINITI
Time Online: 49 Days, 0:57:33 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

link lo vedi quando, appunto, il link non è mai stato cliccato.
Per rimediare basta che cancelli la cronologia, almeno dovrebbe

P.S.
Active: "quando il link è, diciamo, selezionato"

__________________
http://www.twitter.com/0m4r

23-06-2005 20:19
Click Here to See the Profile for 0m4r Click Here to See the Blog of 0m4r Click here to Send 0m4r a Private Message Find more posts by 0m4r Add 0m4r to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
N@RV1
www.narv1.net

User info:
Registered: Jan 2004
Posts: 759 (0.09 al dì)
Location: Garbagnate Milanese
Corso: TICOM
Anno: Primo
Time Online: 9 Days, 9:55:12 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by 0m4r
link lo vedi quando, appunto, il link non è mai stato cliccato.
Per rimediare basta che cancelli la cronologia, almeno dovrebbe

P.S.
Active: "quando il link è, diciamo, selezionato"



ah ecco ... link conviene metterlo uguale a visited .. se no uno dopo che ha visto tutto il sito si ritrova con tutti i link stile visited!:)

active noto che nel momento in cui tengo premuto si attiva lo stile....(poi se tengo premuto e trascino resta dello stile active altrimenti torna visited ...questa nn lho ben capita!)
thx ciao

__________________
.:N@RV!:.

23-06-2005 20:27
Click Here to See the Profile for N@RV1 Click here to Send N@RV1 a Private Message Visit N@RV1's homepage! Find more posts by N@RV1 Add N@RV1 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
0m4r
.grande:maestro.

User info:
Registered: Mar 2002
Posts: 7287 (0.83 al dì)
Location: Düsseldorf (DE)
Corso:
Anno: ESAMI FINITI
Time Online: 49 Days, 0:57:33 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

http://www.w3.org/TR/REC-CSS2/selec...-pseudo-classes


The :active pseudo-class applies while an element is being activated by the user. For example, between the times the user presses the mouse button and releases it.

__________________
http://www.twitter.com/0m4r

23-06-2005 20:42
Click Here to See the Profile for 0m4r Click Here to See the Blog of 0m4r Click here to Send 0m4r a Private Message Find more posts by 0m4r Add 0m4r to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
N@RV1
www.narv1.net

User info:
Registered: Jan 2004
Posts: 759 (0.09 al dì)
Location: Garbagnate Milanese
Corso: TICOM
Anno: Primo
Time Online: 9 Days, 9:55:12 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

:D quello che volevo dire io :D

__________________
.:N@RV!:.

23-06-2005 20:51
Click Here to See the Profile for N@RV1 Click here to Send N@RV1 a Private Message Visit N@RV1's homepage! Find more posts by N@RV1 Add N@RV1 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 22:33.    Post New Thread    Post A Reply
  Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.051 seconds (71.90% PHP - 28.10% MySQL) con 23 query.