Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Markup (HTML, XHTML, XML) _ A quick question...

Posted by: Moon Reaper Nov 1 2006, 07:33 PM

I can't remember how to change the font of a link. Can someone help me please?

Posted by: dougmanic Nov 1 2006, 08:03 PM

Best way is to use CSS to do it.

a {
color:#AAAAAA;
}

You can use font tags....

<a href="index.php"><font color="#AAAAAA">Link Here</font></a>

but I guess no one uses that anymore.

Posted by: Christian J Nov 2 2006, 07:36 AM

See http://htmlhelp.com/faq/html/design.html#fonts. Note that using only an A selector like

CODE
a {...}

will also affect named anchors like
CODE
<a name="foo">Foo</a>

To style links only you can use the :link and :visited pseudo-classes:
CODE
a:link, a:visited {...}

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)