In article <op**************@news.gmx.net>,
po**@rainer-online.de
says...
Hello,
i want format linked text with white color.
with which method can i insert this option...:
a:link { font-family: Tahoma, sans-serif; color: #FFFFFF; }
...in a normal textformat like this:
.Text {
font-family: Tahoma, Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #FFFFFF;
a:link { font-family: Tahoma, sans-serif; color: #FFFFFF; }
background-color: #8CA6CE;
text-decoration: none;
width: 100%;
; height: 22px
}
You can either use the class the link is wrapped into, or add a class to
the link itself:
..text a:link, .text a:hover (... and so on) for something like
<div class="text"><a href="...">...</a></div>
- or -
a.text:link for
<a href="..." class="text">...</a>
Your choice of "Text" seems to be a rather bad name for a CSS class, I
suppose it just served sample purpose. The fixed pixel font-size is
debatable as well and might alienate many readers.