Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 02-22-2004, 09:28 PM   #1
Member (11 bit)
 
TheJackal's Avatar
 
Join Date: Aug 2002
Location: BC, Canada
Posts: 1,054
HTML Help

How do I change the color of one Link in a webpage. I have a block of text that I want to appear as a link, however I want it to be yellow.

How do I do this, but keep the rest of my links regular old blue?
TheJackal is offline   Reply With Quote
Old 02-22-2004, 09:53 PM   #2
Member (11 bit)
 
james8547's Avatar
 
Join Date: Aug 2003
Location: NJ
Posts: 1,099
Code:
(a href=yourlinkhere)(font color=yellow)hello(/font)(/a)
__________________
P4 2.6C @ 3.12 || ASUS P4C800-E Dlx || Antec SOHO File Server w/ 5 case fans || Antec TruePower 430w PSU || 2 x 512MB Crucial PC3200 DDR || 280GB of total storage 7200rpm ATA100 8mb cache || LiteOn CDRW 52x32x52 || LiteOn DVD+/-RW SOHW-812S || WinXP Pro || Solarism 15" TFT LCD || 500VA TrippLite UPS || Logitech MX-700 Duo || ATI 9800 AIW || Sennheiser HD-555
james8547 is offline   Reply With Quote
Old 02-22-2004, 10:03 PM   #3
Member (11 bit)
 
TheJackal's Avatar
 
Join Date: Aug 2002
Location: BC, Canada
Posts: 1,054
Thanks!
TheJackal is offline   Reply With Quote
Old 02-23-2004, 12:02 PM   #4
Member (7 bit)
 
Zick Boy's Avatar
 
Join Date: Feb 2004
Location: Owings Mills, MD
Posts: 95
Code:
a href="yourpage.htm" style="color:yellow;">link text

Last edited by Zick Boy; 02-23-2004 at 12:07 PM.
Zick Boy is offline   Reply With Quote
Old 02-23-2004, 12:17 PM   #5
Banned
 
morriswindgate's Avatar
 
Join Date: Jul 2000
Location: Bakersfield,CA
Posts: 7,761
Good Link for Free On-line Tutorials

http://www.w3schools.com/
morriswindgate is offline   Reply With Quote
Old 02-24-2004, 06:02 AM   #6
Member (4 bit)
 
Shiva's Avatar
 
Join Date: Feb 2004
Location: USA
Posts: 11
Send a message via AIM to Shiva
BODY LINK="######" (link)


body vlink="######"(visited link)

That's what I use to change ALL of the links on the page.
Put it in the < > though.

Last edited by Shiva; 02-24-2004 at 06:04 AM.
Shiva is offline   Reply With Quote
Old 02-24-2004, 07:02 AM   #7
Staff
Premium Member
 
mairving's Avatar
 
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
The best way is still to use external CSS stylesheets. All of the ways mentioned above work but have limitations. The font tag shouldn't be used at all since it is deprecated. Using the inline style works okay but what about visited links? Do you want them to be the same color after someone has clicked on them? Do you want them underlined or not? Do you want them to change to a different color on mouseover? You can do all this with stylesheets as well as control the font and size used on the page by using stylesheets. Look over at Alistapart for more info.
mairving is offline   Reply With Quote
Old 02-24-2004, 10:02 AM   #8
Member (11 bit)
 
TheJackal's Avatar
 
Join Date: Aug 2002
Location: BC, Canada
Posts: 1,054
Thanks folks...

This time it was just a really simple site, so it was way easier to just churn it out in HTML, but I will look into CSS.
TheJackal is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 12:47 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2