|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (11 bit)
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? |
|
|
|
|
|
#2 |
|
Member (11 bit)
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 |
|
|
|
|
|
#3 |
|
Member (11 bit)
Join Date: Aug 2002
Location: BC, Canada
Posts: 1,054
|
Thanks!
|
|
|
|
|
|
#4 |
|
Member (7 bit)
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. |
|
|
|
|
|
#5 |
|
Banned
Join Date: Jul 2000
Location: Bakersfield,CA
Posts: 7,761
|
|
|
|
|
|
|
#6 |
|
Member (4 bit)
|
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. |
|
|
|
|
|
#7 |
|
Staff
Premium Member
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.
|
|
|
|
|
|
#8 |
|
Member (11 bit)
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. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|