Log In · Register

 
changing font for a link
learninghowtofal...
post Nov 28 2005, 08:29 PM
Post #1


Mr. Brightside
*****

Group: Member
Posts: 332
Joined: Mar 2005
Member No: 114,646



how do you make a link, but change the size and font of the text?

I have this code to make the link:



but I also want to change the font of the text.
 
 
Start new topic
Replies
hi-C
post Nov 28 2005, 08:42 PM
Post #2


Amberific.
********

Group: Staff Alumni
Posts: 12,913
Joined: Jul 2004
Member No: 29,772



Moved to programming

If you're using css:

CODE
<style type="text/css">
a:link, a:visited, a:active{
font-family:NAME;
font-size: __pt;
color:#HEXNUMBER;
</style>


If you want to customize it using html:

This might work, I'm not too sure.
CODE
<a href="URL OF SITE" target="_blank" style="font-family:NAME; font-size: __pt; color:#HEXNUMBER;">Name of site</a>


The CSS code I gave you will definitely work.
 

Posts in this topic
learninghowtofall   changing font for a link   Nov 28 2005, 08:29 PM
Madame C   Moved to programming If you're using css: CO...   Nov 28 2005, 08:42 PM
learninghowtofall   where do i put the text?   Nov 29 2005, 01:20 PM
Szeh   I believe it's Name Of Site.   Nov 29 2005, 03:59 PM
learninghowtofall   i mean for the first code.   Nov 29 2005, 06:29 PM
mipadi   You don't put the link text anywhere the first...   Nov 29 2005, 06:34 PM
Madame C   ^ Right. Just to clarify a bit, when you go to ma...   Nov 29 2005, 09:46 PM


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: