Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > class in <a>

Reply
Thread Tools

class in <a>

 
 
Kelvin
Guest
Posts: n/a
 
      03-02-2005
Hi,

I use a class in <a> and it works. But if I have defined the default a style
such as a:link,a:active,a:visited {...}a:hover { ...} the class in <a> will
not work any more. How to make these work at the same time?

..tlink
{
FONT-WEIGHT:bold;
FONT-SIZE:8pt;
COLOR:EEEEF5;
FONT-FAMILY:"Verdana", "Arial", "Helvetica", "sans-serif";
TEXT-DECORATION:none;
}
..tlink:hover
{
FONT-WEIGHT:bold;
FONT-SIZE:8pt;
COLOR:#fd6a08;
FONT-FAMILY:Verdana, Arial, Helvetica, sans-serif;
}
....
<a href=make-your-own-web-site.htm class=tlink >Home</a>

Thank you a lot
Best regards,


 
Reply With Quote
 
 
 
 
Jonathan N. Little
Guest
Posts: n/a
 
      03-02-2005
Kelvin wrote:
> Hi,
>
> I use a class in <a> and it works. But if I have defined the default a style
> such as a:link,a:active,a:visited {...}a:hover { ...} the class in <a> will
> not work any more. How to make these work at the same time?
>
> .tlink
> {
> FONT-WEIGHT:bold;
> FONT-SIZE:8pt;
> COLOR:EEEEF5;
> FONT-FAMILY:"Verdana", "Arial", "Helvetica", "sans-serif";
> TEXT-DECORATION:none;
> }

<snip>

COLOR:EEEEF5;

should be 'color: #EEEEF5;' the '#' is required in hex color values in css.

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
 
Reply With Quote
 
 
 
 
Sid Ismail
Guest
Posts: n/a
 
      03-02-2005
On Wed, 2 Mar 2005 19:56:42 +0800, "Kelvin" <(E-Mail Removed)>
wrote:

: Hi,
:
: I use a class in <a> and it works. But if I have defined the default a style
: such as a:link,a:active,a:visited {...}a:hover { ...} the class in <a> will
: not work any more. How to make these work at the same time?
:
: .tlink
: {
: FONT-WEIGHT:bold;
: FONT-SIZE:8pt;
: COLOR:EEEEF5;
: FONT-FAMILY:"Verdana", "Arial", "Helvetica", "sans-serif";
: TEXT-DECORATION:none;
: }
: .tlink:hover
: {
: FONT-WEIGHT:bold;
: FONT-SIZE:8pt;
: COLOR:#fd6a08;
: FONT-FAMILY:Verdana, Arial, Helvetica, sans-serif;
: }
: ...
: <a href=make-your-own-web-site.htm class=tlink >Home</a>


Try this:
a.tlink:hover and not .tlink:hover

Sid


 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Class A contains class B, class B points to class A Joseph Turian C++ 5 12-30-2005 03:24 PM
Nested Class, Member Class, Inner Class, Local Class, Anonymous Class E11 Java 1 10-12-2005 03:34 PM
A parameterized class (i.e. template class / class template) is not a class? christopher diggins C++ 16 05-04-2005 12:26 AM
Generic class literals - e.g,, Class<Map<String, Integer>>.class Purush Java 4 04-13-2005 08:40 PM
instanciate a class in a jar file with class.forname, while my main class is in another jar cyril Java 2 08-25-2004 06:55 AM



Advertisments