nonethefewer: (Default)
[personal profile] nonethefewer
In CSS/HTML, how do I set it so that the link text for one area is white?

I feel like I should be able to put CSS directly in a span tag, except (a) I don't know how and (b) I don't know if I can get that to work for links.

(no subject)

Date: 2007-09-13 04:42 pm (UTC)
From: [identity profile] veek.livejournal.com
Give the area an id. Then, in *.css, do:

#id a, #id a:hover, #id a:visited {
color:#ffffff;
}

(no subject)

Date: 2007-09-13 04:43 pm (UTC)
From: [identity profile] veek.livejournal.com
Sorry -- to give area id, go like:

...

(no subject)

Date: 2007-09-13 04:44 pm (UTC)
From: [identity profile] veek.livejournal.com
Argh!:

<span id="id">...

(no subject)

Date: 2007-09-13 04:48 pm (UTC)
djm4: (Default)
From: [personal profile] djm4
Yes, that.

But if you want to do it to more than one area, make it a class rather than an ID:

class a, .class a:hover, .class a:visited {
color:#ffffff;
}

<span class="class">

(no subject)

Date: 2007-09-13 06:14 pm (UTC)
From: [identity profile] novalis.livejournal.com
If you want to put it on the span tag, style="color: #fff;"

CSS in a span or a

Date: 2007-09-13 07:45 pm (UTC)
From: [identity profile] wolfieboy.livejournal.com
You can just use the style attribute that is attached to just about every tag. for example: This is underlined and has a help cursor.. You can also do the same for a link ().
Page generated Jun. 17th, 2025 09:17 pm
Powered by Dreamwidth Studios