Avatar billede sux Nybegynder
06. maj 2001 - 12:15 Der er 13 kommentarer og
1 løsning

Nye defineringer af links effekter enkelte steder

Hejsa
Her kommer et rimelig basic spørgsmål. Jeg har et alm stylesheet med alt, hvad der skal tilhøre, herunder alle a-effekterne (fx a:hover).

Meen, hvordan derfinerer jeg fx bare 5 links på en side til at opføre sig / se anderledes ud end det som er angivet på det linkede stylesheet???
Det kunne være fedt hvis du gad eksemplificere det!!


Derfor er her er et ex. på mit stylesheet:

BODY  {scrollbar-face-color: #000000; scrollbar-shadow-color: #D0E5FF; scrollbar-highlight-color: #D0E5FF; scrollbar-3dlight-color: #000000; scrollbar-darkshadow-color: #000000; scrollbar-track-color: #D0E5FF; scrollbar-arrow-color: #D0E5FF;}

BODY  {font-size: 9pt; text-decoration: none; color: #666666; font-family:Verdana, Arial; line-height: 150%; margin-top: 0; margin-bottom: 0}


TD    {font-size: 9pt; text-decoration: none; color: #666666; font-family:Verdana, Arial; line-height: 150%; margin-top: 0; margin-bottom: 0}

p    {font-size: 9pt; text-decoration: none; color: #666666; font-family: Verdana, Arial; line-height: 150%; margin-top: 0; margin-bottom: 0}

A:link    {text-decoration: none; color: #B87A3D; font-family:  Verdana, Arial ;}

A:visited  {bold; text-decoration: none; color: #B87A3D; font-family:  Verdana, Arial ;}

A:hover    {text-decoration: underline; color: #B87A3D; font-family:  Verdana, Arial ;}

.tabel {  font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9pt; line-height: 100%; margin-top: 0px; margin-bottom: 0px}
.ForsideBjaelke {  font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9pt; line-height: 100%; color: #FFFFFF; margin-top: 0px; margin-bottom: 0px}
.Links {  line-height: 250%}
.Nyhedsbrev {  font-size: 5px; line-height: 200%}
a:active {  font-weight: bold; color: #FFFFFF}

Avatar billede annikadk Nybegynder
06. maj 2001 - 12:18 #1
lav en der hedder .link2 a:hover {sådan skal den være}

og i linket self. skrive <a href=\"\" class=\"link2\">
Avatar billede netsrac Praktikant
06. maj 2001 - 12:18 #2
a.myclaas:link { text-decoration: none; color: #B87A3D; font-family:  Verdana, Arial ;}


<A HREF=\"link.html\" CLASS=\"myclass\">bla</A>

Du gør det ganske simpelt ved at indsætte en class.
Avatar billede sux Nybegynder
06. maj 2001 - 12:35 #3
VIL DET SIGE NOGET I RETNING AF SÅDAN HER I STYLESHEETET???:

BODY  {scrollbar-face-color: #000000; scrollbar-shadow-color: #D0E5FF; scrollbar-highlight-color: #D0E5FF; scrollbar-3dlight-color: #000000; scrollbar-darkshadow-color: #000000; scrollbar-track-color: #D0E5FF; scrollbar-arrow-color: #D0E5FF;}

BODY  {font-size: 9pt; text-decoration: none; color: #666666; font-family:Verdana, Arial; line-height: 150%; margin-top: 0; margin-bottom: 0}


TD    {font-size: 9pt; text-decoration: none; color: #666666; font-family:Verdana, Arial; line-height: 150%; margin-top: 0; margin-bottom: 0}

p    {font-size: 9pt; text-decoration: none; color: #666666; font-family: Verdana, Arial; line-height: 150%; margin-top: 0; margin-bottom: 0}



A:link    {color: #666666 font-weight: bold; text-decoration: none}

A:visited  {color: #666666 font-weight: bold; text-decoration: none}

A:hover    {color: #666666 font-weight: bold; text-decoration: underline}

A:active  {color: #666666 font-weight: bold; text-decoration: none}



.tabel {  font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9pt; line-height: 100%; margin-top: 0px; margin-bottom: 0px}

.ForsideBjaelke {  font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9pt; line-height: 100%; color: #FFFFFF; margin-top: 0px; margin-bottom: 0px}

.Nyhedsbrev {  font-size: 5px; line-height: 200%}



.Link2

A:link    {color: #ffffff; text-decoration: none}

A:visited  {color: #ffffff; text-decoration: none}

A:hover    {color: #ffffff; text-decoration: underline}

A:active  {color: #ffffff; text-decoration: none}


Avatar billede netsrac Praktikant
06. maj 2001 - 12:39 #4
A.link2:link    {color: #ffffff; text-decoration: none}

A.link2:visited  {color: #ffffff; text-decoration: none}

A.link2:hover    {color: #ffffff; text-decoration: underline}

A.link2:active  {color: #ffffff; text-decoration: none}

sådan i stylesheatet og linket sådan her:

<A HREF=\"link.html\" CLASS=\"link2\">bla</A>


Avatar billede sux Nybegynder
06. maj 2001 - 12:48 #5
Jeg kan ikke få det til at virke arghhh!
Avatar billede sux Nybegynder
06. maj 2001 - 12:49 #6
Pludselig får jeg helt andre farver og stylesheet reagerer helt underligt...(blå farve)
Avatar billede netsrac Praktikant
06. maj 2001 - 12:50 #7
Har du et link til det ?
Avatar billede sux Nybegynder
06. maj 2001 - 12:52 #8
Jeg føler mig helt til grin....:

http://www.surfersinfo.dk/udvikling/udvikling.htm
Avatar billede sux Nybegynder
06. maj 2001 - 12:53 #9
Jeg bruger Dreamweaver, hvor alt skal være så smart...
Avatar billede netsrac Praktikant
06. maj 2001 - 12:58 #10
Jeg kan ikke lige umiddelbart se fejlen...
Avatar billede sux Nybegynder
06. maj 2001 - 13:02 #11
Problemet er at den kun bruger den første definition.
Jeg kan ikke rigtig få den anden til at virke...
Men det er da ok at bruge span class ikke??
Avatar billede netsrac Praktikant
06. maj 2001 - 13:05 #12
Nej det skal bruges på A tagget <A HREF=\"#\" CLASS=\"link2\">
Avatar billede sux Nybegynder
06. maj 2001 - 13:16 #13
Der var den!!!!!
Thanx!
Avatar billede netsrac Praktikant
06. maj 2001 - 13:17 #14
Så lidt :-)
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Vi tilbyder markedets bedste kurser inden for webudvikling

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester