Log In · Register

 
 
Closed TopicStart new topic
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.
 
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.
 
learninghowtofal...
post Nov 29 2005, 01:20 PM
Post #3


Mr. Brightside
*****

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



where do i put the text?
 
Eryi
post Nov 29 2005, 03:59 PM
Post #4


Senior Member
*******

Group: Official Designer
Posts: 4,591
Joined: Dec 2004
Member No: 77,305



I believe it's Name Of Site.
 
learninghowtofal...
post Nov 29 2005, 06:29 PM
Post #5


Mr. Brightside
*****

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



i mean for the first code.
 
*mipadi*
post Nov 29 2005, 06:34 PM
Post #6





Guest






You don't put the link text anywhere the first block--that just defines a global style for all links.
 
hi-C
post Nov 29 2005, 09:46 PM
Post #7


Amberific.
********

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



^ Right. Just to clarify a bit, when you go to make a link in the HTML, it'll take on the look of the parameters you've defined in the CSS.
 

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