css + länkar|Programmering / Grafisk formgivning|Forum|Nordichardware

Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
The forums are currently locked and only available for read only access
sp_Feed sp_TopicIcon
css + länkar
Rom Raptor
Kommer du hit ofta?
Medlem
Forum Posts: 587
Member Since:
October 14, 2002
sp_UserOfflineSmall Offline
1
February 27, 2005 - 4:03 pm
sp_Permalink sp_Print

hur gör man om man t ex vill ha detta på vissa länkar:

a:link { text-decoration: none; color: #ffffff}
a:visited { text-decoration: none; color: #ffffff}
a:active { text-decoration: none; color: #ffffff}

och detta på andra länkar i samma sida:

a:link { text-decoration: none; color: #000000}
a:visited { text-decoration: none; color: #000000}
a:active { text-decoration: none; color: #000000}

använder extern css-fil

simpn
Almost a full-blooded keyboard-warrior
Medlem
Forum Posts: 210
Member Since:
March 28, 2003
sp_UserOfflineSmall Offline
850089
February 27, 2005 - 4:17 pm
sp_Permalink sp_Print
.link1:a:link { text-decoration: none; color: #ffffff}
.link1:a:visited { text-decoration: none; color: #ffffff}
.link1:a:active { text-decoration: none; color: #ffffff}

.link2:a:link { text-decoration: none; color: #000000}
.link2:a:visited { text-decoration: none; color: #000000}
.link2:a:active { text-decoration: none; color: #000000}

Länk1

Länk2

med ".link1" och ".link2" skapar du anpassade stilar, dessa anropar du sedan med "class" i html-taggarna.

zcorpan
Kommer du hit ofta?
Medlem
Forum Posts: 848
Member Since:
December 26, 2003
sp_UserOfflineSmall Offline
850101
February 27, 2005 - 4:29 pm
sp_Permalink sp_Print

Hmm... inte riktigt.

Antingen

#foo a:link { color: blue; }

<div id="foo">


En blå länk.</p>


En annan blå länk.</p>
</div>

eller

a.bar:link { color: red; }



En röd länk.</p>

[edit] Så i ditt fall blir det

<style type="text/css">
a { text-decoration: none; color: white; background: transparent; }
#foo a { color: black; }
</style>



En del på sidan med en vanlig länk.</p>

<div id="foo">


En annan del med sidan med en annorlunda länk.</p>
</div>

🙂
[/edit]

Rom Raptor
Kommer du hit ofta?
Medlem
Forum Posts: 587
Member Since:
October 14, 2002
sp_UserOfflineSmall Offline
850134
February 27, 2005 - 5:03 pm
sp_Permalink sp_Print

tack zcorpan

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1030
Currently Online:
Guest(s) 588
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Andreas Galistel: 16287
Jonas Klar: 15897
ilg@dd: 10810
Nyhet: 10607
Mind: 10550
Ctrl: 10355
Gueno: 9881
Guest: 9344
Snorch: 8881
Callister: 8468
Newest Members:
PetrbonFU PetrbonFU
Karine Bembry
Dolores Mcdaniels
Anibal McLeish
Francisca Alt
Alfie Everhart
Lester Huitt
Orlando Jorgensen
Mikki Lundgren
Dakota Kozlowski
Forum Stats:
Groups: 11
Forums: 59
Topics: 146630
Posts: 1300967

 

Member Stats:
Guest Posters: 2
Members: 79425
Moderators: 0
Admins: 11
Administrators: nordicadmin, Henrik Berntsson, Anton Karmehed, Carl Holmberg, Joel Oscarsson, Mikael Linnér, Mikael Schwartz, Andreas Paulsson, Nickebjrk, Mattias Pettersson, EmxL