changing font for a link |
changing font for a link |
![]()
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. |
|
|
![]() |
![]()
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. |
|
|
![]()
Post
#3
|
|
![]() Mr. Brightside ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 332 Joined: Mar 2005 Member No: 114,646 ![]() |
where do i put the text?
|
|
|
![]()
Post
#4
|
|
![]() Senior Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Designer Posts: 4,591 Joined: Dec 2004 Member No: 77,305 ![]() |
I believe it's Name Of Site.
|
|
|
![]()
Post
#5
|
|
![]() Mr. Brightside ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 332 Joined: Mar 2005 Member No: 114,646 ![]() |
i mean for the first code.
|
|
|
*mipadi* |
![]()
Post
#6
|
Guest ![]() |
You don't put the link text anywhere the first block--that just defines a global style for all links.
|
|
|
![]()
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.
|
|
|
![]() ![]() |