HighDots Forums  

format linked text

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss format linked text in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Rainer Nopper
 
Posts: n/a

Default format linked text - 08-20-2003 , 02:19 PM







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
}

I need different formats for linked text.
How can i do that?

Rainer

--
Antworten bitte immer in Newsgroup und nicht an Mail-Adresse posten -
Danke.

Reply With Quote
  #2  
Old   
Philipp Lenssen
 
Posts: n/a

Default Re: format linked text - 08-21-2003 , 06:24 AM






In article <oprt7uiwpiord05a (AT) news (DOT) gmx.net>, post (AT) rainer-online (DOT) de
says...
Quote:
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.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.