[lug] off topic, web design
rm at mamma.varadinet.de
rm at mamma.varadinet.de
Thu Feb 8 14:39:10 MST 2001
On Thu, Feb 08, 2001 at 02:30:21PM -0700, D. Stimits wrote:
> I'm trying to use a CSS to control some web site attributes, and came
> across one item I can't find any information on, maybe someone that uses
> CSS for web devel could answer this.
>
> I'm trying to control the colors of anchors, "<A href=....>" items.
> Normally the body tag would contain a link="color" and vlink="color",
> but link and vlink seem to be ignored when placed in:
> BODY {
> link: somecolor;
> vlink: somecolor;
> }
>
> (I tried a few variations in BODY {} and also A {}, none mattered).
>
> One reference indicates that body link and vlink are deprecated
> features, but still available in transitional html. Maybe this is why it
> fails. I can specify a color in A {} that does not understand the
> concept of visited or unvisited links, and forces this color at all
> times:
> A {
> color: somecolor;
> }
>
> But this isn't what I want. What is the CSS means to control visited
> link colors versus unvisted link colors? Since strict html seems to be
> dropping the link and vlink attributes of BODY tags, does anyone know
> what the replacement is?
>
How about:
a:link { color:#FF0000; font-weight:bold }
a:visited { color:#990000; }
a:active { color:#0000FF; font-style:italic }
Ralf
P.S.: I'm _not_ a webdesigner ;-)
More information about the LUG
mailing list